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">
<% if @page.custom_array_field.blank? %>
<% @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 %>
<% else %>
<% @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 %>
</ul>