This commit is contained in:
Harry Bomrah 2016-04-06 15:46:19 +08:00
parent 8b2e73a948
commit 7ce95b75ba
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_technology_transfer.#{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_technology_transfer.#{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_technology_transfer.#{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_technology_transfer.#{fs}") %></span><span class="remove-field"><i class="icon-remove-sign"></i></span></li>
<% end %>
<% end %>
</ul>