diff --git a/app/views/additional_content_boxes/_article_box.html.erb b/app/views/additional_content_boxes/_article_box.html.erb index 3bfc8bb37..def7d1305 100644 --- a/app/views/additional_content_boxes/_article_box.html.erb +++ b/app/views/additional_content_boxes/_article_box.html.erb @@ -1,20 +1,20 @@
| cell-label--<%= collection_presenter.ordered_html_class(attr_name) %>" - scope="col" - role="columnheader" - aria-sort="<%= sort_order(collection_presenter.ordered_html_class(attr_name)) %>"> + scope="col" + role="columnheader" + aria-sort="<%= sort_order(collection_presenter.ordered_html_class(attr_name)) %>"> <%= link_to(sanitized_order_params( page, collection_field_name ).merge( @@ -45,59 +45,59 @@ to display a collection of resources in an HTML table. <% end %> <% end %> - | - <% end %> - <% [valid_action?(:edit, collection_presenter.resource_name), - valid_action?(:destroy, collection_presenter.resource_name)].count(true).times do %> -- <% end %> - | + <% end %> + - <% resources.each do |resource| %> - | |
|---|---|---|---|
| - <% if show_action? :show, resource -%> - - <%= render_field attribute %> - - <% end -%> - | - <% end %> + <% resources.each do |resource| %> +|||
| + <% if show_action? :show, resource -%> + + <%= render_field attribute %> + + <% end -%> + | + <% end %> - <% if valid_action? :edit, collection_presenter.resource_name %> -- <% if show_action? :edit, resource %> - <%= link_to( - t("administrate.actions.edit"), - [:edit, namespace, resource], - class: "action-edit", - ) %> - <% end %> - | - <% end %> + <% if valid_action? :edit, collection_presenter.resource_name %> ++ <% if show_action? :edit, resource %> + <%= link_to( + t("administrate.actions.edit"), + [:edit, namespace, resource], + class: "action-edit", + ) %> + <% end %> + | + <% end %> - <% if valid_action? :destroy, collection_presenter.resource_name %> -- <% if show_action? :destroy, resource %> - <%= link_to( - t("administrate.actions.destroy"), - [namespace, resource], - class: "text-color-red", - method: :delete, - data: { confirm: t("administrate.actions.confirm") }, - ) %> - <% end %> - | - <% end %> -+ <% if show_action? :destroy, resource %> + <%= link_to( + t("administrate.actions.destroy"), + [namespace, resource], + class: "text-color-red", + method: :delete, + data: { confirm: t("administrate.actions.confirm") }, + ) %> + <% end %> + | + <% end %> + + <% end %>
<%= note.created_at.strftime("%d %B %Y %H:%M UTC") %> by <%= note.author_id ? User.find(note.author_id).username : "No Author" %> - <%= note.content %>
++ <%= note.created_at.strftime("%d %B %Y %H:%M UTC") %> by <%= note.author_id ? User.find(note.author_id).username : "No Author" %> - <%= note.content %> +
<% end %> <% end %> @@ -27,20 +29,21 @@ Originally Published <%= article.published_at&.strftime("%b %d, %Y") %> <% elsif article.crossposted_at? %> -- Crossposted <%= article.crossposted_at.strftime("%b %d, %Y") %> & Published <%= article.published_at&.strftime("%b %d, %Y") %> -
++ Crossposted <%= article.crossposted_at.strftime("%b %d, %Y") %> & Published <%= article.published_at&.strftime("%b %d, %Y") %> +
<% else %> -- Published <%= article.published_at&.strftime("%b %d, %Y") %> -
++ Published <%= article.published_at&.strftime("%b %d, %Y") %> +
<% end %> <% if article.main_image.present? %> -
<%= pluralize(@html_variant.errors.count, "error") %> prohibited this block from being saved:
- <% @html_variant.errors.full_messages.each do |message| %> -- <%= message %>
- <% end %>
+ <% @html_variant.errors.full_messages.each do |message| %>
+ - <%= message %>
+ <% end %>