Sha256: c438db5b92866abf547d84060863bb2f7dfc0e97983cb0c25bf3da3cc19ef372

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

- @page_title = _('Notes')

%table.notes-list
  %thead
    %tr
      %th= _('Content')
      %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
    - @notes.each do |note|
      %tr.note
        %td= note.content[0...100]
        %td.is-icon= boolean_icon_tag note.sfw
        %td.is-icon= boolean_icon_tag note.published
        %td.is-icon= boolean_icon_tag note.locked
        %td.is-icon= boolean_icon_tag note.hidden_in_history
        %td= note.published_at
        %td= note.user.username
        %td= note.license.name
        %td= note.language.name
        %td.relations
          - note.projects.each do |p|
            %span.project= p.name
        %td.relations
          - note.tags.each do |t|
            %span.tag= t.name
        %td.actions
          .btn-group
            = admin_action_links 'note', note
= paginate @notes

Version data entries

2 entries across 2 versions & 1 rubygems

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