fix for backend

This commit is contained in:
Harry Bomrah 2016-04-06 15:49:30 +08:00
parent b97742b6db
commit 6cd6549ac4
1 changed files with 2 additions and 2 deletions

View File

@ -4,11 +4,11 @@
<ul class="current-fields"> <ul class="current-fields">
<% if @page.custom_array_field.blank? %> <% if @page.custom_array_field.blank? %>
<% @default_fields_to_show.each do |fs| %> <% @default_fields_to_show.each do |fs| %>
<li data-attrib-key="<%= fs %>" class="clearfix"><span class="field-value"><%= t("personal.honor.#{fs}") %></span><span class="remove-field"><i class="icon-remove-sign"></i></span></li> <li data-attrib-key="<%= fs %>" class="clearfix"><span class="field-value"><%= fs == "authors" ? t("users.name") : t("personal_honor.#{fs}") %></span><span class="remove-field"><i class="icon-remove-sign"></i></span></li>
<% end %> <% end %>
<% else %> <% else %>
<% @page.custom_array_field.each do |fs| %> <% @page.custom_array_field.each do |fs| %>
<li data-attrib-key="<%= fs %>" class="clearfix"><span class="field-value"><%= t("personal.honor.#{fs}") %></span><span class="remove-field"><i class="icon-remove-sign"></i></span></li> <li data-attrib-key="<%= fs %>" class="clearfix"><span class="field-value"><%= fs == "authors" ? t("users.name") : t("personal_honor.#{fs}") %></span><span class="remove-field"><i class="icon-remove-sign"></i></span></li>
<% end %> <% end %>
<% end %> <% end %>
</ul> </ul>