From 53ac5fd213be38abf044fa589410df8b94e782f9 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Thu, 13 Dec 2012 19:37:41 +0000 Subject: [PATCH] Encapsulate user code --- app/views/layouts/_user.html.erb | 24 ++++++++++++++++++++++++ app/views/layouts/application-ng.rhtml | 27 ++------------------------- 2 files changed, 26 insertions(+), 25 deletions(-) create mode 100644 app/views/layouts/_user.html.erb diff --git a/app/views/layouts/_user.html.erb b/app/views/layouts/_user.html.erb new file mode 100644 index 0000000..357401c --- /dev/null +++ b/app/views/layouts/_user.html.erb @@ -0,0 +1,24 @@ +
+ + +
+ +
<%=_('Press Enter to send the search query.')%>
+ <%= javascript_tag 'jQuery("#user form input").hint();' %> +
+
diff --git a/app/views/layouts/application-ng.rhtml b/app/views/layouts/application-ng.rhtml index 69174b0..5afa648 100644 --- a/app/views/layouts/application-ng.rhtml +++ b/app/views/layouts/application-ng.rhtml @@ -37,31 +37,8 @@
<%= theme_header %>
-
-
- - -
- -
<%=_('Press Enter to send the search query.')%>
- <%= javascript_tag 'jQuery("#user form input").hint();' %> -
-
+
' + <%= render :partial => 'layouts/user' %>

<%= theme_site_title %> -- libgit2 0.21.2