Sha256: 9c9a22c6cc1b07e7fbbf8d864bc887e5493bcd6d792d2acf35c5b28b5401b748
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
<%- model_class = Content.new.class -%> <div class="page-header"> </div> <table class="table table-striped"> <thead> <tr> <th><%= model_class.human_attribute_name(:slug) %></th> <th><%= model_class.human_attribute_name(:title) %></th> <th><%=t '.actions', :default => t("helpers.actions") %></th> </tr> </thead> <tbody> <% @contents.each do |content| %> <tr> <td><%= link_to content.slug, content_path(content) %></td> <td><%= content.title %></td> <td> <%= link_to t('.edit', :default => t("helpers.links.edit")), edit_content_path(content), :class => 'btn btn-mini' %> <%= link_to t('.destroy', :default => t("helpers.links.destroy")), content_path(content), :method => :delete, :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')), :class => 'btn btn-mini btn-danger' %> </td> </tr> <% end %> </tbody> </table> <%= link_to t('.new', :default => t("helpers.links.new")), new_content_path, :class => 'btn btn-primary' %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
common-content-0.0.5 | app/views/contents/index.html.erb |