Sha256: a7f503a3e8f65929e04e0cdaa1f0e069529007f0dcc2a0b6f7f515e86b573a48

Contents?: true

Size: 816 Bytes

Versions: 5

Compression:

Stored size: 816 Bytes

Contents

- klass = remote ? "modal" : "."
- i18n_scope = remote ? ".modal" : ""

.snippets(class=klass)
  .modal-header
    h1= t("#{i18n_scope}.page_title")

    = render "renalware/shared/modal_close_link" if remote

  - unless remote
    .columns.small-12
      =link_to "Create new", new_snippet_path, class: "button create-snippet right"

  ul.tabs
    li(class= "#{'active' if author == :me}")
      =link_to snippets_path, remote: remote do
        i.fa.fa-user
        | Mine
    li(class= "#{'active' if author == :anyone}")
      =link_to snippets_path(author: :anyone), remote: remote do
        i.fa.fa-users
        | Everyone's

  = render "search_form", search: search, author: author, remote: remote
  = render "table", snippets: snippets, author: author, search: search, remote: remote
  = paginate snippets

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta12 app/views/renalware/snippets/snippets/_list.html.slim
renalware-core-2.0.0.pre.beta11 app/views/renalware/snippets/snippets/_list.html.slim
renalware-core-2.0.0.pre.beta10 app/views/renalware/snippets/snippets/_list.html.slim
renalware-core-2.0.0.pre.beta9 app/views/renalware/snippets/snippets/_list.html.slim
renalware-core-2.0.0.pre.beta8 app/views/renalware/snippets/snippets/_list.html.slim