summaryrefslogtreecommitdiff
path: root/app/views/shared/_create_link.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-28 11:09:16 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-28 11:09:16 +0100
commitcdde455a50df5de70ee3d84ce66733e8769db05f (patch)
tree7ddced06e862b9f50776994e85a7733b9e98066c /app/views/shared/_create_link.html.haml
parente500814c387818938bfe76299a25a04de7e1cbfb (diff)
Fixed HTML bug.
Diffstat (limited to 'app/views/shared/_create_link.html.haml')
-rw-r--r--app/views/shared/_create_link.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/shared/_create_link.html.haml b/app/views/shared/_create_link.html.haml
index b1eef1f..53e9dbc 100644
--- a/app/views/shared/_create_link.html.haml
+++ b/app/views/shared/_create_link.html.haml
@@ -8,8 +8,7 @@
- else
%a.btn.btn-small.btn-default{:href => method( :"new_#{parent.class.name.underscore}_#{child_class.name.underscore}_path" ).(parent) }
%i.icon-plus
- / =t("#{child_class.name.underscore.pluralize}.index.actions.create_for", :resource => parent.to_s)
- =t("#{child_class.name.underscore.pluralize}.index.actions.create")
+ =t("#{child_class.name.underscore.pluralize}.index.actions.create")
- elsif !(defined? child_class).nil?
- if can? :create, child_class