Sha256: 63ae447d12f775dbe1756cc6ccbba49db08e10252026468889bc233520def54d
Contents?: true
Size: 1.33 KB
Versions: 8
Compression:
Stored size: 1.33 KB
Contents
= render "layouts/manage/page_title", title: @trackable_tag.name, subtitle: "Trackable Tag" do .btn-group = link_to 'Edit', edit_manage_trackable_tag_path(@trackable_tag), class: 'btn btn-sm btn-outline-secondary' = link_to 'Delete', manage_trackable_tag_path(@trackable_tag), method: :delete, data: { confirm: "Are you sure? The trackable tag \"#{@trackable_tag.name}\" will be permanently erased. This action is irreversible." }, class: 'btn btn-sm btn-outline-secondary' %p %b Name: = @trackable_tag.name %p %b Allow duplicate band IDs: - if @trackable_tag.allow_duplicate_band_events %span.text-success Allow duplicates - else %span.text-danger Block duplicates %p %b= link_to 'Add event', new_manage_trackable_event_path(trackable_tag_id: @trackable_tag.id) = area_chart @trackable_tag.trackable_events.group_by_hour(:created_at).count %table.table.table-striped %thead %tr %th Date %th Band %th Entered by %th %tbody - @trackable_tag.sorted_events.each do |trackable_event| %tr %td= display_datetime(trackable_event.created_at) %td= trackable_event.band_id %td= trackable_event.user.email %td - if current_user.admin? || current_user == trackable_event.user = link_to 'Edit', edit_manage_trackable_event_path(trackable_event)
Version data entries
8 entries across 8 versions & 1 rubygems