Sha256: c1696f0385a902d744fa4976037d5bfc333bbcb6ccc0624c4f02d74b1aae2236
Contents?: true
Size: 1.82 KB
Versions: 1
Compression:
Stored size: 1.82 KB
Contents
<div class="block"> <div class="secondary-navigation"> <ul> <li class="first active"><%%= link_to 'List', <%= controller_routing_path %>_path %></li> <li><%%= link_to 'New', new_<%= singular_controller_routing_path %>_path %></li> </ul> <div class="clear"></div> </div> <div class="content"> <h2 class="title">All <%= plural_model_name %></h2> <div class="inner"> <table class="table"> <tr> <th class="first">ID</th> <th><%= columns.first.name.capitalize %></th> <th>Created at</th> <th class="last"> </th> </tr> <%% @<%= plural_resource_name %>.each do |<%= resource_name %>| -%> <tr> <td> <%%= <%= resource_name %>.id %> </td> <td> <%%= link_to <%= resource_name %>.<%= columns.first.name %>, <%= singular_controller_routing_path %>_path(<%= resource_name %>) %> </td> <td> <%%= <%= resource_name %>.created_at %> </td> <td class="last"> <%%= link_to 'show', <%= singular_controller_routing_path %>_path(<%= resource_name %>) %> | <%%= link_to 'edit', edit_<%= singular_controller_routing_path %>_path(<%= resource_name %>) %> | <%%= link_to 'destroy', <%= singular_controller_routing_path %>_path(<%= resource_name %>), :method => :delete, :confirm => 'Are you sure?' %> </td> </tr> <%% end -%> </table> <div class="actions-bar"> <div class="actions"> </div> <% if options[:will_paginate] %> <%%= will_paginate @<%= resource_name %> %> <% end %> <div class="clear"></div> </div> </div> </div> </div> <%% content_for :sidebar, render(:partial => 'sidebar') -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
base_rails_app-0.0.1 | lib/vendor/plugins/web-app-theme/rails_generators/themed/templates/view_tables.html.erb |