summaryrefslogtreecommitdiff
path: root/lib/generators/nifty/scaffold/templates/views/haml/index.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generators/nifty/scaffold/templates/views/haml/index.html.haml')
-rw-r--r--lib/generators/nifty/scaffold/templates/views/haml/index.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/generators/nifty/scaffold/templates/views/haml/index.html.haml b/lib/generators/nifty/scaffold/templates/views/haml/index.html.haml
new file mode 100644
index 0000000..86c6b9e
--- /dev/null
+++ b/lib/generators/nifty/scaffold/templates/views/haml/index.html.haml
@@ -0,0 +1,6 @@
+- title t("<%= plural_name %>.index.page_title")
+
+- if @<%= instances_name %> && @<%= instances_name %>.count > 0
+ = render "index_core", :<%= instances_name %> => @<%= instances_name %>
+
+= render :partial => 'shared/create_link', :locals => {:child_class => <%= instances_name.classify %>} \ No newline at end of file