Files
codeocean/app/views/shared/_new_button.html.slim
Hauke Klement 8787a21c3d minor change
2015-03-18 10:35:35 +01:00

5 lines
200 B
Plaintext

- if policy(model).new?
a.btn.btn-success href=local_assigns.fetch(:path, send(:"new_#{model.model_name.singular}_path"))
i.fa.fa-plus
= t('shared.new_model', model: model.model_name.human)