diff options
Diffstat (limited to 'app/views/layouts/_head.html.erb')
-rw-r--r-- | app/views/layouts/_head.html.erb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/views/layouts/_head.html.erb b/app/views/layouts/_head.html.erb index 183a615..e6b5080 100644 --- a/app/views/layouts/_head.html.erb +++ b/app/views/layouts/_head.html.erb @@ -1,4 +1,9 @@ -<div id="head"> +<% head = "head_top" %> +<% if current_user != nil && current_user.header_scroll == true %> + <% head = "head_scroll" %> +<% end %> + +<div id="<%= head %>"> <div id="menu"> <%= link_to "", root_path, id: "logo" %> <ul> @@ -41,4 +46,4 @@ <% end %> </div> </div> -</div>
\ No newline at end of file +</div> |