Sha256: 866168921cf38cd9e6776e874bf8109973a23593bbb83978dd9f1ed1797abdce

Contents?: true

Size: 1.59 KB

Versions: 2

Compression:

Stored size: 1.59 KB

Contents

- @page_title = _('Albums')

.page__actions
  = link_to _('New Album'), new_member_album_path, class: 'btn btn--new'

- if @albums.length.zero?
  = render 'elabs/member/layouts/empty', link: new_member_album_path
- else
  %table.albums-list
    %thead
      %tr
        %th= member_order_by_link _('Name'), 'name'
        %th= member_order_by_link _('SFW'), 'sfw'
        %th= member_order_by_link _('Pub.'), 'published'
        %th= member_order_by_link _('Lock.'), 'locked'
        %th= member_order_by_link _('Skip hist.'), 'hidden_in_history'
        %th= member_order_by_link _('Published at'), 'published_at'
        %th= _('Language')
        %th= _('License')
        %th= member_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.language.name
          %td
            = license_icon album.license
            = album.license.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
            .btn-group
              = member_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/member/albums/index.html.haml
elabs-2.0.0.pre app/views/elabs/member/albums/index.html.haml