Sha256: 277d87df25eeebbb6cbad432d7feea079014737e003e1bd1f875f2fd448ba35f
Contents?: true
Size: 964 Bytes
Versions: 6
Compression:
Stored size: 964 Bytes
Contents
- @title= "My Articles" %p - @page_title = 'All Articlces' = paginate @articles %table{:id=>"pending-table", :width=>"100%"} %tr{:style=>"color:white; background-color:#97BF60;"} %th Title %th Description %th Created %th Updated %th Delete %th Edit - @articles.each do |article| %tr %td= link_to article.title, :controller=>"articles", :action=>"show", :id=>article.id %td= article.text.html_safe %td= article.created_at.strftime('%m/%d/%Y') %td= article.updated_at.strftime('%m/%d/%Y') %td(align='center')= link_to image_tag('delete.png', style:'border:none; float:none;'), "#", :onclick=>"if (confirm('Please Confirm')) {location.hash='/articles/destroy/#{article.id}';}" %td(align='center')= link_to image_tag('pencil.png', style:'border:none; float:none;'), {controller: "mindapp", action: "init", s: 'articles:xedit_article', article_id: article.id}, data: { confirm: "Please Confirm" }
Version data entries
6 entries across 6 versions & 1 rubygems