Sha256: 6f8935c0fd36970c320b260e5af8a18fea3aa3fbec5e5ceefd163f88247735e7

Contents?: true

Size: 1.9 KB

Versions: 4

Compression:

Stored size: 1.9 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
                = raw article.content_either
          %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

4 entries across 4 versions & 1 rubygems

Version Path
pages_cms-2.1.1 app/views/pages_cms/admin/articles/index.html.haml
pages_cms-2.1.0 app/views/pages_cms/admin/articles/index.html.haml
pages_cms-2.0.1 app/views/pages_cms/admin/articles/index.html.haml
pages_cms-2.0.0 app/views/pages_cms/admin/articles/index.html.haml