Sha256: 51c78b6d9587d7fb727bd247a33f44af7398b910290ce521ab3893dff4d9765b

Contents?: true

Size: 748 Bytes

Versions: 8

Compression:

Stored size: 748 Bytes

Contents

.simple-text
  h1= t('simple_text.index.title')
  =link_to t('simple_text.create'), new_document_path
  table.styled
    thead
      tr
        th name
        th title
        th Last edit
        th By
        th Total edits
        th Actions
    tbody
      -if @documents.present?
        -@documents.each do |e|
          tr
            td= e.name
            td= e.title
            td= last_edit_at e
            td= last_edit_by e
            td= total_edits_on e
            td= link_to t('simple_text.edit_document'), edit_document_path(e.name)
      -else
        tr
          td
          td
          td
            strong= t('simple_text.no_documents')
          td
          td
    -if @documents.present?
      =paginate @documents

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
simple_text-0.0.23 app/views/documents/index.html.slim
simple_text-0.0.22 app/views/documents/index.html.slim
simple_text-0.0.21 app/views/documents/index.html.slim
simple_text-0.0.20 app/views/documents/index.html.slim
simple_text-0.0.19 app/views/documents/index.html.slim
simple_text-0.0.18 app/views/documents/index.html.slim
simple_text-0.0.17 app/views/documents/index.html.slim
simple_text-0.0.9 app/views/documents/index.html.slim