Sha256: aaf22bb373bd7e0188479aae3303d34962ed66371c22ca00a6a13ae7332b091e

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

- @page_title = _('Uploads')

%table.uploads-list
  %thead
    %tr
      %th= admin_order_by_link _('Title'), 'title'
      %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= _('Albums')
      %th= _('Projects')
      %th= _('Tags')
      %th

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

= paginate @uploads

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elabs-3.0.0 app/views/elabs/admin/uploads/index.html.haml