Moves the locale switcher to its own shared view

This commit is contained in:
kikito
2015-08-19 21:39:57 +02:00
parent 961a317c9b
commit 5205ac99e3
3 changed files with 12 additions and 18 deletions

View File

@@ -1,15 +1,7 @@
<header class="<%= header_css %>">
<section class="top-links">
<div class="row">
<div class="language">
<span id="locale-switcher">
<%= t("layouts.header.language") %>
[
<% available_locales_to_switch.each do |locale| %>
<%= link_to(locale, params.merge(locale: locale), id: "locale-link-#{locale}") %>
<% end %>
]
</div>
<%= render 'shared/locale_switcher' %>
</div>
</section>