Sha256: a9f397e8dc824ffb589a94232137adbe8ba4b0c87fac587c536a41d1303cf07c

Contents?: true

Size: 1.6 KB

Versions: 1

Compression:

Stored size: 1.6 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= short_date 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

1 entries across 1 versions & 1 rubygems

Version Path
elabs-3.0.0 app/views/elabs/member/albums/index.html.haml