Refactor the title locale display
This commit is contained in:
parent
090176dcd2
commit
aa180dcf7e
|
@ -23,13 +23,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="btn-group" data-toggle="buttons-radio">
|
||||
<% if I18n.locale == :zh_tw %>
|
||||
<a class="btn change-title active" href="${'#'+_title_translations[2]+'_zh_tw'}" data-toggle="tab"><%= I18nVariable.from_locale('zh_tw') %></a>
|
||||
<a class="btn change-title" href="${'#'+_title_translations[2]+'_en'}" data-toggle="tab"><%= I18nVariable.from_locale('en') %></a>
|
||||
<% else %>
|
||||
<a class="btn change-title active" href="${'#'+_title_translations[2]+'_en'}" data-toggle="tab"><%= I18nVariable.from_locale('en') %></a>
|
||||
<a class="btn change-title" href="${'#'+_title_translations[2]+'_zh_tw'}" data-toggle="tab"><%= I18nVariable.from_locale('zh_tw') %></a>
|
||||
<% end %>
|
||||
<a class="btn change-title active" href="${'#'+_title_translations[2]+'_<%= @primary_locale %>'}" data-toggle="tab"><%= I18nVariable.from_locale(@primary_locale) %></a>
|
||||
<a class="btn change-title" href="${'#'+_title_translations[2]+'_<%= @secondary_locale %>'}" data-toggle="tab"><%= I18nVariable.from_locale(@secondary_locale) %></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -39,13 +34,8 @@
|
|||
<div class="controls">
|
||||
<div class="tab-content textarea-lang">
|
||||
<div class="btn-group" data-toggle="buttons-radio">
|
||||
<% if I18n.locale == :zh_tw %>
|
||||
<a class="btn active" href="${'#'+_description_translations[2]+'_zh_tw'}" data-toggle="tab"><%= I18nVariable.from_locale('zh_tw') %></a>
|
||||
<a class="btn" href="${'#'+_description_translations[2]+'_en'}" data-toggle="tab"><%= I18nVariable.from_locale('en') %></a>
|
||||
<% else %>
|
||||
<a class="btn active" href="${'#'+_description_translations[2]+'_en'}" data-toggle="tab"><%= I18nVariable.from_locale('en') %></a>
|
||||
<a class="btn" href="${'#'+_description_translations[2]+'_zh_tw'}" data-toggle="tab"><%= I18nVariable.from_locale('zh_tw') %></a>
|
||||
<% end %>
|
||||
<a class="btn active" href="${'#'+_description_translations[2]+'_<%= @primary_locale %>'}" data-toggle="tab"><%= I18nVariable.from_locale(@primary_locale) %></a>
|
||||
<a class="btn" href="${'#'+_description_translations[2]+'_<%= @secondary_locale %>'}" data-toggle="tab"><%= I18nVariable.from_locale(@secondary_locale) %></a>
|
||||
</div>
|
||||
<div class="tab-pane fade active in" id="${_description_translations[2]+'_<%= @primary_locale %>'}">
|
||||
<textarea class="resizable" id="${_description_translations[0]+'_<%= @primary_locale %>'}" name="${_description_translations[1]+'[<%= @primary_locale %>]'}" rows="3">${_description_translations[3].<%= @primary_locale %>}</textarea>
|
||||
|
|
Loading…
Reference in New Issue