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

Version Path
hackathon_manager-0.14.1 app/views/manage/trackable_tags/show.html.haml
hackathon_manager-0.14.0 app/views/manage/trackable_tags/show.html.haml
hackathon_manager-0.13.12 app/views/manage/trackable_tags/show.html.haml
hackathon_manager-0.13.11 app/views/manage/trackable_tags/show.html.haml
hackathon_manager-0.13.10 app/views/manage/trackable_tags/show.html.haml
hackathon_manager-0.13.9 app/views/manage/trackable_tags/show.html.haml
hackathon_manager-0.13.8 app/views/manage/trackable_tags/show.html.haml
hackathon_manager-0.13.7 app/views/manage/trackable_tags/show.html.haml