% content_for :doc_title, t('intro.admin.tour_list') %> <% content_for :box_class, 'intro-admin__box-tours' %> <% content_for :box_title, t('intro.admin.tour_list') %> <% content_for :box_actions do %> <%= link_to t('intro.admin.add_tour'), new_admin_tour_path %> <% end%> <%= render layout: 'intro/admin/tours/container' do %> <% if @tours.blank? %>
<% else %>ID | <%= t('intro.admin.tour.ident') %> | <%= t('intro.admin.tour.simple_route') %> | <%= t('intro.admin.tour.created_time') %> | <%= t('intro.admin.tour.expired_time') %> | <%= t('intro.admin.actions') %> |
---|---|---|---|---|---|
<%= tour.id %> | <%= tour.ident %> | <%= tour.simple_route %> | <%= tour.created_at.strftime('%F') %> | <%= tour.expired_at.try(:strftime, '%F') %> | <%= link_to t('intro.admin.edit'), edit_admin_tour_path(tour) %> <%= link_to (tour.published? ? t('intro.admin.unpublish') : t('intro.admin.publish')), publish_admin_tour_path(tour, published: !tour.published), method: :put %> <%= link_to t('intro.admin.delete'), admin_tour_path(tour), method: :delete, data: { confirm: t('intro.admin.tips.delete_tour_confirm') } %> |