diff options
author | Christopher Baines <mail@cbaines.net> | 2015-08-09 13:57:42 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2015-08-09 13:57:42 +0100 |
commit | 2f089488d7f795b3b2aec371b87fe0d8b9313954 (patch) | |
tree | df711fb83cf2ac458a0a50ba314985a120b68694 /web | |
parent | 6cb4f503a0bef9c1fb7c37dcd76e6ff94e8f993d (diff) | |
download | taginfo-2f089488d7f795b3b2aec371b87fe0d8b9313954.tar taginfo-2f089488d7f795b3b2aec371b87fe0d8b9313954.tar.gz |
Move header logo to the top of the page
Diffstat (limited to 'web')
-rw-r--r-- | web/views/layout.erb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/web/views/layout.erb b/web/views/layout.erb index f09f543..6e920f8 100644 --- a/web/views/layout.erb +++ b/web/views/layout.erb @@ -19,6 +19,15 @@ </head> <body> <div id="header"> + <div id="header_logo"> + <a href="/"><img width="49" height="49" src="<%= TaginfoConfig.get('instance.icon', '/img/logo/world.png') %>" alt="taginfo"/></a> +<% if @section %> + <a href="/"><img width="136" height="49" src="/img/logo/taginfo_with_bar.png" alt="taginfo"/></a> + <a class="section" href="/<%= @section %>"><%= @section_title %></a> +<% else %> + <a href="/"><img width="129" height="49" src="/img/logo/taginfo.png" alt="taginfo"/></a> +<% end %> + </div> <div id="header_date" title="<%= h(t.taginfo.data_from_description) %>" tipsy="ne"><%= h(t.taginfo.data_from) %>: <%= @data_until %> UTC</div> <div id="header_forms" class="no-print"> <form id="set_language" action="/switch_locale"> @@ -33,15 +42,6 @@ <form id="search_form" action="/search"><input type="text" id="search" name="q" value="<%= h(params[:q]) %>"/></form> <% end %> </div> - <div id="header_logo"> - <a href="/"><img width="49" height="49" src="<%= TaginfoConfig.get('instance.icon', '/img/logo/world.png') %>" alt="taginfo"/></a> -<% if @section %> - <a href="/"><img width="136" height="49" src="/img/logo/taginfo_with_bar.png" alt="taginfo"/></a> - <a class="section" href="/<%= @section %>"><%= @section_title %></a> -<% else %> - <a href="/"><img width="129" height="49" src="/img/logo/taginfo.png" alt="taginfo"/></a> -<% end %> - </div> </div> <% unless @nosearch %> <ul id="menu"> |