Sha256: b417a3bf17ece9026dc6c8417118263fe47afdeb439b80243985ba545d411289

Contents?: true

Size: 1.53 KB

Versions: 2

Compression:

Stored size: 1.53 KB

Contents

- @page_title = _('Articles')

.page__actions
  = link_to _('New Article'), new_member_article_path, class: 'btn btn--new'

- if @articles.length.zero?
  = render 'elabs/member/layouts/empty', link: new_member_article_path
- else
  %table.articles-list
    %thead
      %tr
        %th= member_order_by_link _('Title'), 'title'
        %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= _('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
            = license_icon article.license
            = 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
            .btn-group
              = member_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/member/articles/index.html.haml
elabs-2.0.0.pre app/views/elabs/member/articles/index.html.haml