app/views/stachio/templates/index.html.erb in stachio-0.0.3 vs app/views/stachio/templates/index.html.erb in stachio-0.0.4

- old
+ new

@@ -1,24 +1,24 @@ <h1>Listing templates</h1> <table> <tr> <th>Template name</th> - <th>Content</th> + <th>Description</th> <th></th> - <th></th> - <th></th> </tr> <% @templates.each do |template| %> <tr> - <td><%= template.template_name %></td> - <td><%= template.content %></td> - <td><%= link_to 'Show', template %></td> - <% unless readonly %> - <td><%= link_to 'Edit', edit_template_path(template) %></td> - <td><%= link_to 'Destroy', template, method: :delete, data: { confirm: 'Are you sure?' } %></td> - <% end %> + <td style="border: 1px solid grey; padding: 1ex; margin: 1ex;"><%= template.template_name %></td> + <td style="border: 1px solid grey; padding: 1ex; margin: 1ex;"><%= template.describe %></td> + <td style="border: 1px solid grey; padding: 1ex; margin: 1ex;"> + <%= link_to 'Show', template %> + <% unless readonly %> + <%= link_to 'Edit', edit_template_path(template) %> + <%= link_to 'Destroy', template, method: :delete, data: { confirm: 'Are you sure?' } %> + <% end %> + </td> </tr> <% end %> </table> <br />