Permalink
Browse files

fix handicraft theme

  • Loading branch information...
1 parent fabec74 commit f6f1b6c7899bbdf3b1d6100e5554e7f238382ffd @weijen committed Dec 24, 2011
@@ -39,13 +39,7 @@
</div>
</div>
<div class="grid_16">
- <div class="hd">
- <%= content_tag :h1, yield(:title), :class => "page-title" if show_title? %>
- </div>
- <div class="section">
- <div class="bd">
<%= yield %>
- </div>
</div>
</div>
</div>
@@ -1,6 +1,15 @@
-<%% title :model => <%= class_name %>.model_name.human, :name => @<%= singular_name %>.<%= attributes.first.name %> %>
+<div class="hd">
+ <h1>
+ <%%= t(".title") %>
+ </h1>
+</div>
-<%%= render 'form' %>
+<div class="section">
+ <div class="bd">
+ <%%= render 'form' %>
+
+ <%%= link_to t('links.show'), @<%= singular_name %> %> |
+ <%%= link_to t('links.index'), <%= plural_name %>_path %>
+ </div>
+</div>
-<%%= link_to t('links.show'), @<%= singular_name %> %> |
-<%%= link_to t('links.index'), <%= plural_name %>_path %>
@@ -1,30 +1,39 @@
-<%% title :model => <%= class_name %>.model_name.human %>
+<div class="hd">
+ <h1>
+ <%%= t(".title") %>
+ </h1>
+</div>
-<table class="table">
- <tr>
- <%- for attribute in attributes -%>
- <th><%%= <%= class_name %>.human_attribute_name(:<%= attribute.name %>) %></th>
- <%- end -%>
- <th></th>
- <th></th>
- <th></th>
- </tr>
- <%% @<%= plural_name %>.each do |<%= singular_name %>| -%>
- <tr>
- <%- for attribute in attributes -%>
- <td><%%= <%= singular_name %>.<%= attribute.name %> %></td>
- <%- end -%>
- <td>
- <ul>
- <li><%%= link_to t('links.show'), <%= singular_name %> %></li>
- <li><%%= link_to t('links.edit'), edit_<%= singular_name %>_path(<%= singular_name %>) %></li>
- <li><%%= link_to t('links.destroy'), <%= singular_name %>, :confirm => t('links.are_you_sure'), :method => :delete %></li>
- </ul>
- </td>
- </tr>
- <%% end %>
-</table>
+<div class="section">
+ <div class="bd">
-<br>
+ <table class="table">
+ <tr>
+ <%- for attribute in attributes -%>
+ <th><%%= <%= class_name %>.human_attribute_name(:<%= attribute.name %>) %></th>
+ <%- end -%>
+ <th></th>
+ <th></th>
+ <th></th>
+ </tr>
+ <%% @<%= plural_name %>.each do |<%= singular_name %>| -%>
+ <tr>
+ <%- for attribute in attributes -%>
+ <td><%%= <%= singular_name %>.<%= attribute.name %> %></td>
+ <%- end -%>
+ <td>
+ <ul>
+ <li><%%= link_to t('links.show'), <%= singular_name %> %></li>
+ <li><%%= link_to t('links.edit'), edit_<%= singular_name %>_path(<%= singular_name %>) %></li>
+ <li><%%= link_to t('links.destroy'), <%= singular_name %>, :confirm => t('links.are_you_sure'), :method => :delete %></li>
+ </ul>
+ </td>
+ </tr>
+ <%% end %>
+ </table>
-<%%= link_to t('links.new', :model => <%= class_name %>.model_name.human), new_<%= singular_name %>_path %>
+ <br>
+
+ <%%= link_to t('links.new', :model => <%= class_name %>.model_name.human), new_<%= singular_name %>_path %>
+ </div>
+</div>
@@ -1,5 +1,14 @@
-<%% title :model => <%= class_name %>.model_name.human %>
+<div class="hd">
+ <h1>
+ <%%= t(".title") %>
+ </h1>
+</div>
-<%%= render 'form' %>
+<div class="section">
+ <div class="bd">
+ <%%= render 'form' %>
+
+ <%%= link_to t('links.index'), <%= plural_name %>_path %>
+ </div>
+</div>
-<%%= link_to t('links.index'), <%= plural_name %>_path %>
@@ -1,12 +1,21 @@
-<%% title :model => <%= class_name %>.model_name.human, :name => @<%= singular_name %>.<%= attributes.first.name %> %>
+<div class="hd">
+ <h1>
+ <%%= t(".title") %>
+ </h1>
+</div>
-<% for attribute in attributes -%>
-<p>
- <b><%%= <%= class_name %>.human_attribute_name(:<%= attribute.name %>) %>:</b>
- <%%= @<%= singular_name %>.<%= attribute.name %> %>
-</p>
+<div class="section">
+ <div class="bd">
+ <% for attribute in attributes -%>
+ <p>
+ <b><%%= <%= class_name %>.human_attribute_name(:<%= attribute.name %>) %>:</b>
+ <%%= @<%= singular_name %>.<%= attribute.name %> %>
+ </p>
-<% end -%>
+ <% end -%>
+
+ <%%= link_to t('links.edit'), edit_<%= singular_name %>_path(@<%= singular_name %>) %> |
+ <%%= link_to t('links.index'), <%= plural_name %>_path %>
+ </div>
+</div>
-<%%= link_to t('links.edit'), edit_<%= singular_name %>_path(@<%= singular_name %>) %> |
-<%%= link_to t('links.index'), <%= plural_name %>_path %>

0 comments on commit f6f1b6c

Please sign in to comment.