lib/generators/scaffold_admin/templates/views/show.html.erb in zscaffold_admin-0.0.3 vs lib/generators/scaffold_admin/templates/views/show.html.erb in zscaffold_admin-0.0.4

- old
+ new

@@ -1,23 +1,15 @@ - <%%= outgoing_menssage %> - <article class="module width_full"> - <header><h3><%%= I18n.t :showing %></h3></header> - <div class="tab_container"> - <div id="tab1" class="tab_content"> - <table class="tablesorter" cellspacing="0"> - <%- model_attributes.each do |attribute| -%> - <tr> - <td><b><%%= I18n.t :<%= attribute.name %> %></b></th> - <td><%%= @<%= singular_name %>.<%= attribute.name %> %></td> - </tr> - <%- end -%> - </table> - </div> - </div> +<%%= outgoing_menssage %> +<div class="page-header"> + <h2><%%= I18n.t :showing %></h2> +</div> +<table class="table table-bordered table-striped"> + <%- model_attributes.each do |attribute| -%> + <tr> + <td><b><%%= I18n.t :<%= attribute.name %> %></b></td> + <td><%%= @<%= singular_name %>.<%= attribute.name %> %></td> + </tr> + <%- end -%> +</table> - <footer> - <div class="submit_link"> - <%%= link_to image_tag("/assets/icn_edit_article.png", :alt => I18n.t(:edit), :title => I18n.t(:edit)), edit_<%= singular_name %>_path(@<%= singular_name %>) %> - <%%= link_to image_tag("/assets/icn_jump_back.png", :alt => I18n.t(:back), :title => I18n.t(:back)), <%= plural_name %>_path %> - </div> - </footer> - </article> +<%%= link_to arrow_left, <%= plural_name %>_path %> +<%%= link_to I18n.t(:edit), edit_<%= singular_name %>_path(@<%= singular_name %>), class: 'btn btn-primary' %>