fix for backend
This commit is contained in:
parent
b97742b6db
commit
6cd6549ac4
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue