summaryrefslogtreecommitdiff
path: root/app/views/shared/_create_link.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-21 21:30:48 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 00:02:50 +0100
commitd8fe3b636cab1504cb5d3cb5dc57ed818749ccf5 (patch)
tree8da5973505763a836e59d59c7604f1b381891973 /app/views/shared/_create_link.html.haml
parentc8973406e83861f593af33c959abd4529a855437 (diff)
Twitter Bootstrap stuff.
Diffstat (limited to 'app/views/shared/_create_link.html.haml')
-rw-r--r--app/views/shared/_create_link.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/shared/_create_link.html.haml b/app/views/shared/_create_link.html.haml
index e5bc840..0711ddf 100644
--- a/app/views/shared/_create_link.html.haml
+++ b/app/views/shared/_create_link.html.haml
@@ -8,7 +8,8 @@
- else
%a.btn.btn-mini.btn-primary{:href => method( :"new_#{parent.class.name.underscore}_#{child_class.name.underscore}_path" ).(parent) }
%i.icon-plus.icon-white
- =t("#{child_class.name.underscore.pluralize}.index.actions.create_for", :resource => parent)
+ / =t("#{child_class.name.underscore.pluralize}.index.actions.create_for", :resource => parent.to_s)
+ =t("#{child_class.name.underscore.pluralize}.index.actions.create")
- elsif !(defined? child_class).nil?
- if can? :create, child_class