Sha256: f971c19d1a921064668a316e0867d1cba3951248ab7f77ee2e5afe4137e0c390

Contents?: true

Size: 896 Bytes

Versions: 66

Compression:

Stored size: 896 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", :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;'), "#", :onclick=>"if (confirm('Please Confirm')) {location.hash='/articles/destroy/#{article.id}';}"

Version data entries

66 entries across 66 versions & 4 rubygems

Version Path
jinda_adminlte-0.7.0.4 lib/generators/jinda_adminlte/templates/app/views/articles/index.haml
jinda_adminlte-0.7.0.3 lib/generators/jinda_adminlte/templates/app/views/articles/index.haml
jinda_adminlte-0.7.0.1 lib/generators/jinda_adminlte/templates/app/views/articles/index.haml
jinda_adminlte-0.7.0 lib/generators/jinda_adminlte/templates/app/views/articles/index.haml
jinda_adminlte-0.6.0.1 lib/generators/jinda_adminlte/templates/app/views/articles/index.haml
jinda_adminlte-0.6.0 lib/generators/jinda_adminlte/templates/app/views/articles/index.haml
jinda_adminlte-0.5.9 lib/generators/jinda_adminlte/templates/app/views/articles/index.haml
jinda_adminlte-0.5.8 lib/generators/jinda_adminlte/templates/app/views/articles/index.haml
jinda-0.5.6 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.5.5 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.5.4 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.5.3 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.5.2 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.5.1 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.5.0 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.4.9 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.4.8 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.4.7 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-0.4.6 lib/generators/jinda/templates/app/views/articles/index.haml
jinda-5-0.4.5 lib/generators/jinda/templates/app/views/articles/index.haml