diff options
author | spag <spag@golwen.net> | 2013-01-28 11:58:06 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-28 11:58:06 +0100 |
commit | 7153a04a09db1b163ecf51c00f7471552f94722c (patch) | |
tree | 2a2c3ed7333faacbda4aea7b74694858aaef9912 /app/views/shared/_create_link.html.haml | |
parent | 5d17b4b7e41a62d2c7f1dabae8ad7376211e921a (diff) | |
parent | bcdd0a3584f23438257619ee4081949c1e653c91 (diff) |
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/views/shared/_create_link.html.haml')
-rw-r--r-- | app/views/shared/_create_link.html.haml | 3 |
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 |