- @page_title = t('workarea.admin.activities.show.admin_activity') .view .view__header .view__heading = link_to "↑ #{t('workarea.admin.activities.main_dashboard')}", root_path %h1= t('workarea.admin.activities.show.admin_activity') - if params[:id].present? %p= link_to t('workarea.admin.activities.show.view_all_admin_activity'), activity_path .view__container .browsing-controls.browsing-controls--with-divider.browsing-controls--center.browsing-controls--filters-displayed = form_tag activity_path, method: 'get', id: 'activity_form', class: 'browsing-controls__form' do .browsing-controls__sort .property.property--inline %span.property__name= t('workarea.admin.activities.show.show') = select_tag 'type', options_for_select(@activity.type_options, params[:type]), data: { form_submitting_control: '' } .browsing-controls__search .property.property--inline-with-label %span.property__name= t('workarea.admin.activities.show.activity_by') = select_tag 'admin', options_for_select(@activity.admin_options, params[:admin]), data: { form_submitting_control: '' } = render 'workarea/admin/shared/creation_date', search: @activity, form_path: catalog_categories_path %p.browsing-controls__count= t('workarea.admin.activities.show.activity', count: @activity.entries.count) .view__container .section - if @activity.entries.present? - @activity.days.each_with_index do |(day, entries), index| .activity-group .grid .grid__cell.grid__cell--20 .date-marker - if day == Date.today .date-marker__annotation= t('workarea.admin.timeline.today') .date-marker__month= local_time(day, format: '%b') .date-marker__day= local_time(day, format: '%e') .grid__cell.grid__cell--80 .activity-group__activities - entries.each do |entry| = render_activity_entry(entry) - else .align-center %p.heading.heading--3= t('workarea.admin.activities.show.no_activity') - if @activity.entries.total_pages > 1 = render 'workarea/admin/shared/pagination', collection: @activity.entries