Sha256: 570d4f27d947b5d9d8189ee7a49c5e552a23a125c102c36e50dcca0af01bdc41
Contents?: true
Size: 890 Bytes
Versions: 4
Compression:
Stored size: 890 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_user.role.upcase.split(',').include?("A") - next unless article.user - next unless current_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
4 entries across 4 versions & 1 rubygems