fix language order in structure page_part form

This commit is contained in:
manson 2014-08-01 20:11:43 +08:00
parent 766b1482b6
commit 36648d51a2
1 changed files with 3 additions and 3 deletions

View File

@ -25,14 +25,14 @@
<strong><%= t(:language) %></strong>
</div>
<ul class="nav nav-pills language-nav">
<% I18n.available_locales.each_with_index do |locale, i| %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
<li class="<%= 'active' if i == 0 %>">
<a href=".<%= locale %>" data-toggle="tab"><%= t(locale.to_s) %></a>
</li>
<% end %>
</ul>
<div class="tab-content language-area">
<% I18n.available_locales.each_with_index do |locale, i| %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
<div class="tab-pane fade <%= locale %> <%= 'active in' if i == 0 %>">
<div class="control-group input-content">
<label class="control-label muted"><%= t(:content) %></label>
@ -48,7 +48,7 @@
</div>
<div id="module_widget" class="tab-pane fade in <%= @subpart.kind == "module_widget" ? 'active' : '' rescue nil %>">
<% I18n.available_locales.each do |locale| %>
<% @site_in_use_locales.each do |locale| %>
<div class="control-group input-content">
<label class="control-label muted">Widget <%= t(:name) %>(<%= t(locale.to_s) %>) :</label>
<div class="controls">