lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/show.html.erb in bootstrap-generators-1.4.0 vs lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/show.html.erb in bootstrap-generators-2.0.0
- old
+ new
@@ -1,7 +1,13 @@
<div class="page-header">
- <%%= link_to 'Back', <%= index_helper %>_path, :class => 'btn' %>
- <%%= link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), :class => 'btn primary' %>
+ <%%= link_to <%= index_helper %>_path, :class => 'btn' do %>
+ <i class="icon-list-alt"></i>
+ Back
+ <%% end %>
+ <%%= link_to edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), :class => 'btn btn-primary' do %>
+ <i class="icon-pencil icon-white"></i>
+ Edit
+ <%% end %>
<h1>Listing <%= plural_table_name %></h1>
</div>
<dl>
<%- attributes.each do |attribute| -%>