Sha256: 0069153083e0a5670ab02b8acdd7295d5534e38c63bd90f6c7ea340bc3130785

Contents?: true

Size: 799 Bytes

Versions: 4

Compression:

Stored size: 799 Bytes

Contents

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

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

    = render "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

4 entries across 4 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta7 app/views/renalware/snippets/snippets/_list.html.slim
renalware-core-2.0.0.pre.beta6 app/views/renalware/snippets/snippets/_list.html.slim
renalware-core-2.0.0.pre.beta5 app/views/renalware/snippets/snippets/_list.html.slim
renalware-core-2.0.0.pre.beta4 app/views/renalware/snippets/snippets/_list.html.slim