summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2015-08-09 14:52:47 +0100
committerChristopher Baines <mail@cbaines.net>2015-08-09 14:52:47 +0100
commit9619c867396de3406e8d1143abb195d686982cf1 (patch)
tree04865ed040aad1790122666b82f4d47a16431781
parent6e686ca398953e548acf85c8b5badcc342149911 (diff)
downloadtaginfo-9619c867396de3406e8d1143abb195d686982cf1.tar
taginfo-9619c867396de3406e8d1143abb195d686982cf1.tar.gz
Put the language selector in the menu
-rw-r--r--web/views/layout.erb18
1 files changed, 10 insertions, 8 deletions
diff --git a/web/views/layout.erb b/web/views/layout.erb
index c1fa12b..a22f695 100644
--- a/web/views/layout.erb
+++ b/web/views/layout.erb
@@ -29,14 +29,6 @@
<% end %>
</div>
<div id="header_forms" class="no-print">
- <form id="set_language" action="/switch_locale">
- <input type="hidden" id="url" name="url" value="<%= request.path %>"/>
- <select id="locale" name="locale">
-<% r18n.available_locales.sort{ |a,b| a.title <=> b.title }.each do |locale| %>
- <option value="<%= locale.code %>"<%= locale.code == r18n.locale.code ? ' selected="selected"' : ''%>><%= h(::Language[locale.code].native_name) %></option>
-<% end %>
- </select>
- </form>
</div>
</div>
<% unless @nosearch %>
@@ -60,6 +52,16 @@
</form>
</li>
<% end %>
+ <li>
+ <form id="set_language" action="/switch_locale">
+ <input type="hidden" id="url" name="url" value="<%= request.path %>"/>
+ <select id="locale" name="locale">
+<% r18n.available_locales.sort{ |a,b| a.title <=> b.title }.each do |locale| %>
+ <option value="<%= locale.code %>"<%= locale.code == r18n.locale.code ? ' selected="selected"' : ''%>><%= h(::Language[locale.code].native_name) %></option>
+<% end %>
+ </select>
+ </form>
+ </li>
</ul>
</div>
<% end %>