Sha256: eab85cc86645e79052909c6b19223a1afafb49711deb8da6c496b14a9a372dab

Contents?: true

Size: 911 Bytes

Versions: 14

Compression:

Stored size: 911 Bytes

Contents

- @title= "All Articles"
= paginate @articles
%table{:id=>"pending-table", :width=>"100%"}
  %tr{:style=>"color:black; background-color:#97BF60;"}
    %th User
    %th Title
    %th Description
    %th Created
    %th Updated
    %th Delete
  - @articles.each do |article|
    %tr
      %td= article.user.code if article.user
      %td= link_to article.title, :controller=>"articles", :action=>"show", :article_id=>article.id
      %td= article.text
      %td= article.created_at
      %td= article.updated_at
      %td(align='center')
        - next unless login?
        - unless current_ma_user.role.upcase.split(',').include?("A")
          - next unless article.user
          - next unless current_ma_user == article.user
        = link_to image_tag('delete.png', style:'border:none; float:none;'), {controller: "articles", action: "destroy",  article_id: article.id}, data: { confirm: "Please Confirm" }

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
jinda-0.7.0 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.6.9 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.6.8 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.6.7 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.6.5 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.6.4 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.6.3 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.6.2 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.6.1 lib/generators/jinda/templates/app/views/articles/index.haml
jinda_engine-0.6.0 app/views/jinda_engine/articles/index.haml
jinda-0.6.0 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.5.9 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.5.8 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.5.7 lib/generators/jinda/templates/app/views/articles/index.haml