Sha256: 7c3b4699c3ea9add5213bb5b30f8ff34cff4b8d557b9cabb1a4248fb01586f32

Contents?: true

Size: 1.95 KB

Versions: 6

Compression:

Stored size: 1.95 KB

Contents

.comable-page
  .comable-page-heading
    ul.pull-right.list-inline
      li
        = link_to Comable.t('admin.actions.new'), comable.new_admin_page_path, class: 'btn btn-default'
    h1.page-header
      = Comable.t('admin.nav.page')
      small<
        | #{@pages.size} #{Comable.t('admin.results')}

  .comable-page-body
    .comable-search
      = search_form_for @q, url: comable.admin_pages_path do |f|
        .input-group
          span.input-group-btn
            button.btn.btn-default.dropdown-toggle type="button" data-toggle="dropdown"
              i.fa.fa-search
              span.caret<
            ul.dropdown-menu role="menu"
              li
                = link_to Comable.t('admin.advanced_search'), 'javascript:void(0)', 'data-toggle' => 'collapse', 'data-target' => '#comable-advanced-search'
              li
                = link_to Comable.t('admin.clear_search_conditions'), comable.admin_pages_path
          = f.text_field :title_cont, class: 'form-control'
          span.input-group-btn
            = f.submit Comable.t('admin.search'), class: 'btn btn-default'

        = render 'comable/admin/shared/advanced_search', f: f

    section
      - if @pages.empty?
        = Comable.t('admin.not_found')
      - else
        table.table.table-striped
          thead
            th
              = sort_link [:comable, @q], :title
            th
              = sort_link [:comable, @q], :content
            th
              = sort_link [:comable, @q], :published_at
          tbody
            - @pages.each do |page|
              tr
                td
                  = link_to page.title, comable.admin_page_path(page)
                  small.text-muted<
                    | #{comable.page_path(page)}
                td
                  = page.content.truncate(50)
                td
                  - if page.published_at
                    = l page.published_at
                  - else
                    = Comable.t('admin.nav.pages.unpublished')

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
comable-backend-0.7.1 app/views/comable/admin/pages/index.slim
comable-backend-0.7.0 app/views/comable/admin/pages/index.slim
comable-backend-0.7.0.beta2 app/views/comable/admin/pages/index.slim
comable-backend-0.7.0.beta1 app/views/comable/admin/pages/index.slim
comable-backend-0.6.0 app/views/comable/admin/pages/index.slim
comable_backend-0.5.0 app/views/comable/admin/pages/index.slim