Sha256: 49be8f99f6da34b4119bd1558319b172a16f3d3ea73a059e32d58c8af872f9b9

Contents?: true

Size: 1.93 KB

Versions: 7

Compression:

Stored size: 1.93 KB

Contents

<br />
= render 'pages_cms/admin/shared/tabs', active: 'Articles'

%div.container-fluid.back
  %div.row
    %div.col-md-4
      = form_tag '#', method: :get do
        = text_field_tag :search, params[:search], class: 'form-control inline-form', placeholder: 'search'
        = select_tag(:status, options_for_select(%w"Archived Published Drafts", params[:status]), include_blank: 'Status', class: 'form-control inline-form')
        <button class="btn btn-default btn-sm inline-form" type="submit"><span class="glyphicon glyphicon-search"></span></button>
      %div.page-height-2
        - @articles.each do |article|
          %div
            %h4.relative
              = link_to article.title, admin_articles_path(edit: article.id)
              %div.hard-right
                = link_to raw('<span class="glyphicon glyphicon-remove"></span>'), admin_article_path(article), method: :delete
                = link_to raw('<span class="glyphicon glyphicon-pencil"></span>'), admin_articles_path(edit: article.id)
                = link_to raw('<span class="glyphicon glyphicon-search"></span>'), article_path(article)
            %span
              %small
                %strong
                  = article.article_status
                |
                = article.created_at.strftime("%B %d %Y")
                |
                - article.tags.each do |tag|
                  = link_to tag, blog_path(current_site, tag)
            %div.mess
              %small
                = truncate(strip_tags(article.content_either), length: 200)
          %hr
    %div.col-md-8
      - if @article && @new
        = render 'form', article: @article, method: :post, url: admin_articles_path
      - elsif @article && @edit
        = render 'form', article: @article, method: :patch, url: admin_article_path(@article)
      - else
        %h1 Click on an article to edit it here.
      = link_to 'New Article', admin_articles_path(new: true), class: 'btn btn-xs btn-default'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pages_cms-2.4.2 app/views/pages_cms/admin/articles/index.html.haml
pages_cms-2.3.2 app/views/pages_cms/admin/articles/index.html.haml
pages_cms-2.3.1 app/views/pages_cms/admin/articles/index.html.haml
pages_cms-2.3.0 app/views/pages_cms/admin/articles/index.html.haml
pages_cms-2.2.3 app/views/pages_cms/admin/articles/index.html.haml
pages_cms-2.2.2 app/views/pages_cms/admin/articles/index.html.haml
pages_cms-2.2.1 app/views/pages_cms/admin/articles/index.html.haml