Home Page Highlights

N.B. Highlights are shown in creation date order (latest first) by default, but this can be overriden using the position field.

<% if @highlights.present? %> <% @highlights.each do |highlight| %> <% end %>
Title Created At Actions
<%= highlight.title %> <%= l(highlight.created_at, format: :cms) %> <%= link_to(t('link.edit'), edit_admin_highlight_path(highlight), class: 'btn btn--warning') %> <%= link_to(t('link.remove'), admin_highlight_path(highlight), data: { confirm: t('notice.highlight.destroy_confirmation') }, method: :delete, class: 'btn btn--danger') %>
<% else %>

You don't have any highlights yet. Click the 'Add Highlight' button to create a new highlight.

<% end %>