lib/generators/admin/scaffold_controller/templates/views/erb/show.html.erb.erb in admin_help-0.1.4 vs lib/generators/admin/scaffold_controller/templates/views/erb/show.html.erb.erb in admin_help-0.1.5
- old
+ new
@@ -1,23 +1,22 @@
-<div class="panel">
- <table class="table table--vertical">
- <thead>
- <tr>
- <th style="width:30%">属性</th>
- <th>值</th>
- </tr>
- </thead>
+<table>
+ <thead>
+ <tr>
+ <th style="width:30%">属性</th>
+ <th>值</th>
+ </tr>
+ </thead>
- <tbody>
- <% attributes.reject(&:password_digest?).each do |attribute| %>
- <tr>
- <th><%%= <%= singular_table_name.classify %>.human_attribute_name(:<%= attribute.name %>) %>:</th>
- <td><%%= @<%= singular_table_name %>.<%= attribute.name %> %></td>
- </tr>
- <% end %>
- </tbody>
- </table>
- <div class="actions">
- <%%= link_to t('actions.edit'), edit_<%= prefixed_plain_model_url %>_path(@<%= singular_table_name %>), class: "button button--primary" %>
- <%%= link_to t('buttons.back'), <%= prefixed_index_helper %>_path, class: "button button--info" %>
- </div>
+ <tbody>
+<% attributes.reject(&:password_digest?).each do |attribute| %>
+ <tr>
+ <th><%%= <%= singular_table_name.classify %>.human_attribute_name(:<%= attribute.name %>) %>:</th>
+ <td><%%= @<%= singular_table_name %>.<%= attribute.name %> %></td>
+ </tr>
+<% end %>
+ </tbody>
+</table>
+<div class="actions">
+ <%%= link_to t('actions.edit'), edit_<%= prefixed_plain_model_url %>_path(@<%= singular_table_name %>), class: "ui button primary" %>
+ <%%= link_to t('buttons.back'), <%= prefixed_index_helper %>_path, class: "ui button" %>
</div>
+