Sha256: 179522cb0e67dcfb8bac43702f24366dd0799c0655c5af9dc97f030a4bdb584e
Contents?: true
Size: 1.09 KB
Versions: 80
Compression:
Stored size: 1.09 KB
Contents
<!-- Main Content --> <div class="wrapper wrapper-content"> <div class="panel panel-default"> <div class="panel-heading"> <i class="fa fa-newspaper-o"></i> News Post List </div> <div class="panel-body"> <table class="table table-bordered table-striped table-hover"> <thead> <tr> <th>Post Name</th> <th>Post Text</th> <th>Post Status</th> <th></th> </tr> </thead> <tbody> <% @news_posts.each do |news_post| %> <tr> <td><%= news_post.newspsttitle %></td> <td><%= truncate(news_post.newspsttext, :length => 80) %></td> <td><%= news_post.pststatus %></td> <td><div class="btn-group" role="group" aria-label="News Articles"> <%= link_to 'Edit', edit_news_post_path(news_post), class: "btn btn-primary btn-xs" %> <%= link_to 'Destroy', news_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %> </div></td> </tr> <% end %> </tbody> </table> <%= link_to 'New Post', new_news_post_path, class: "btn btn-primary" %> </div> </div> </div>
Version data entries
80 entries across 80 versions & 2 rubygems