Sha256: 4ca17526a82938c27693a5e72605b81fd81eec0d432320257cb07afdbf0c366e

Contents?: true

Size: 1.45 KB

Versions: 2

Compression:

Stored size: 1.45 KB

Contents

- @page_title = _('Notes')

.page__actions
  = link_to _('New Note'), new_member_note_path, class: 'btn btn--new'

- if @notes.length.zero?
  = render 'elabs/member/layouts/empty', link: new_member_note_path
- else
  %table.notes-list
    %thead
      %tr
        %th= _('Content')
        %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
      - @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, 'lock', 'unlock'
          %td.is-icon= boolean_icon_tag note.hidden_in_history
          %td= note.published_at
          %td
            = license_icon note.license
            = 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
            .btn-group
              = member_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/member/notes/index.html.haml
elabs-2.0.0.pre app/views/elabs/member/notes/index.html.haml