Sha256: 4657631a398447dd2831a69b5b256c407004ef183fdc231047202bebbab56577

Contents?: true

Size: 1.56 KB

Versions: 2

Compression:

Stored size: 1.56 KB

Contents

- @page_title = _('Projects')

%table.projects-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 _('Albums'), 'albums_count'
      %th= admin_order_by_link _('Articles'), 'articles_count'
      %th= admin_order_by_link _('Notes'), 'notes_count'
      %th= admin_order_by_link _('Uploads'), 'uploads_count'
      %th= _('Tags')
      %th

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

= paginate @projects

Version data entries

2 entries across 2 versions & 1 rubygems

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