lib/generators/bootstrap/themed/templates/index.html.erb in bootstrap-sass-extras-0.0.5 vs lib/generators/bootstrap/themed/templates/index.html.erb in bootstrap-sass-extras-0.0.6
- old
+ new
@@ -14,22 +14,24 @@
</tr>
</thead>
<tbody>
<%% @<%= plural_resource_name %>.each do |<%= resource_name %>| %>
<tr>
- <td><%%= link_to <%= resource_name %>.id, <%= singular_controller_routing_path %>_path(<%= resource_name %>) %></td>
+ <td><%%= <%= resource_name %>.id %></td>
<%- columns.each do |column| -%>
- <td><%%= <%= resource_name %>.<%= column.name %> %></td>
+ <td><%%= <%= resource_name %>.<%= column.name %> %></td>
<%- end -%>
- <td><%%=l <%= resource_name %>.created_at %></td>
+ <td><%%=l <%= resource_name %>.created_at, format: :long %></td>
<td>
- <%%= link_to t('.edit', :default => t("helpers.links.edit")),
- edit_<%= singular_controller_routing_path %>_path(<%= resource_name %>), :class => 'btn btn-mini' %>
- <%%= link_to t('.destroy', :default => t("helpers.links.destroy")),
- <%= singular_controller_routing_path %>_path(<%= resource_name %>),
- :method => :delete,
- :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
- :class => 'btn btn-mini btn-danger' %>
+ <%%= link_to <%= singular_controller_routing_path %>_path(<%= resource_name %>), :class => 'btn btn-xs', :title => "#{ t('.show', :default => t('helpers.links.show')) }" do %>
+ <%%= glyph 'info-sign' %>
+ <%%- end -%>
+ <%%= link_to edit_<%= singular_controller_routing_path %>_path(<%= resource_name %>), :class => 'btn btn-xs', :title => "#{ t('.edit', :default => t('helpers.links.edit')) }" do %>
+ <%%= glyph 'pencil' %>
+ <%%- end -%>
+ <%%= link_to <%= singular_controller_routing_path %>_path(<%= resource_name %>), :method => :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, :class => 'btn btn-xs', :title => "#{ t('.destroy', :default => t('helpers.links.destroy')) }" do %>
+ <%%= glyph 'remove' %>
+ <%%- end -%>
</td>
</tr>
<%% end %>
</tbody>
</table>