lib/rid/generators/list/templates/index.mustache in rid-0.4.1 vs lib/rid/generators/list/templates/index.mustache in rid-0.5.0
- old
+ new
@@ -4,16 +4,20 @@
<th>ID</th>
<% attributes.each do |attribute| -%>
<th><%= attribute.humanize %></th>
<% end -%>
<th></th>
+ <th></th>
+ <th></th>
</tr>
{{#rows}}
<tr>
<td>{{id}}</td>
<% attributes.each do |attribute| -%>
<td>{{<%= attribute %>}}</td>
<% end -%>
- <td><a href="{{path}}/_show/<%= model_name %>/{{id}}">Show <%= model_name.humanize %></a></td>
+ <td><a href="{{path}}/_show/<%= model_name %>/{{id}}">Show</a></td>
+ <td><a href="{{path}}/_show/<%= model_name %>/{{id}}?edit">Edit</a></td>
+ <td><a href="{{path}}/_show/<%= model_name %>/{{id}}?delete">Delete</a></td>
</tr>
{{/rows}}
</table>