Sha256: ae891376e5fe60c4f5e8929448b3227b28d74a23eb105e01b9c4d515da70c9a6

Contents?: true

Size: 1.33 KB

Versions: 2

Compression:

Stored size: 1.33 KB

Contents

- @page_title = _('Albums')

%table.albums-list
  %thead
    %tr
      %th= admin_order_by_link _('Name'), 'name'
      %th= admin_order_by_link _('SFW'), 'sfw'
      %th= admin_order_by_link _('Pub.'), 'published'
      %th= admin_order_by_link _('Lock.'), 'locked'
      %th= admin_order_by_link _('Skip hist.'), 'hidden_in_history'
      %th= admin_order_by_link _('Published at'), 'published_at'
      %th= _('User')
      %th= _('License')
      %th= _('Language')
      %th= admin_order_by_link _('Uploads'), 'uploads_count'
      %th= _('Projects')
      %th= _('Tags')
      %th

  %tbody
    - @albums.each do |album|
      %tr.album
        %td= album.name
        %td.is-icon= boolean_icon_tag album.sfw
        %td.is-icon= boolean_icon_tag album.published
        %td.is-icon= boolean_icon_tag album.locked, 'lock', 'unlock'
        %td.is-icon= boolean_icon_tag album.hidden_in_history
        %td= album.published_at
        %td= album.user.username
        %td= album.license.name
        %td= album.language.name
        %td.is-counter= album.uploads_count
        %td.relations
          - album.projects.each do |p|
            %span.project= p.name
        %td.relations
          - album.tags.each do |t|
            %span.tag= t.name
        %td.actions
          .btn-group
            = admin_action_links 'album', album

= paginate @albums

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
elabs-2.0.0 app/views/elabs/admin/albums/index.html.haml
elabs-2.0.0.pre app/views/elabs/admin/albums/index.html.haml