Sha256: c4fa3273e685a2cc3133890ce2934ca56cbd33abdd01cfcedbc74ed597a5d34d

Contents?: true

Size: 1.27 KB

Versions: 2

Compression:

Stored size: 1.27 KB

Contents

- @page_title = _('Articles')

%table.articles-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= _('Projects')
      %th= _('Tags')
      %th

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

= paginate @articles

Version data entries

2 entries across 2 versions & 1 rubygems

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