transferred Code Ocean from original repository to GitHub
This commit is contained in:
4
app/views/shared/_new_button.html.slim
Normal file
4
app/views/shared/_new_button.html.slim
Normal file
@@ -0,0 +1,4 @@
|
||||
- if policy(model).new?
|
||||
a.btn.btn-success href=(local_assigns.has_key?(:path) ? path : send(:"new_#{model.model_name.singular}_path"))
|
||||
i.glyphicon.glyphicon-plus
|
||||
= t('shared.new_model', model: model.model_name.human)
|
Reference in New Issue
Block a user