Sha256: afc2efd3e401d43514199f8922011bbdf47de23cf09e8655b6e6f4ca58d51add

Contents?: true

Size: 1.17 KB

Versions: 6

Compression:

Stored size: 1.17 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= link_to 'Add event', new_manage_trackable_event_path(trackable_tag_id: @trackable_tag.id)

= area_chart @trackable_tag.trackable_events.group_by_minute(: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

6 entries across 6 versions & 1 rubygems

Version Path
hackathon_manager-0.13.5 app/views/manage/trackable_tags/show.html.haml
hackathon_manager-0.13.4 app/views/manage/trackable_tags/show.html.haml
hackathon_manager-0.13.3 app/views/manage/trackable_tags/show.html.haml
hackathon_manager-0.13.2 app/views/manage/trackable_tags/show.html.haml
hackathon_manager-0.13.1 app/views/manage/trackable_tags/show.html.haml
hackathon_manager-0.13.0 app/views/manage/trackable_tags/show.html.haml