#350 delete_link

This commit is contained in:
Karel Pičman 2024-11-21 15:19:19 +01:00
parent 8a4218fa11
commit 8654a4b21b
2 changed files with 4 additions and 3 deletions

View File

@ -76,6 +76,8 @@ After download:
cd redmine
bundle install
RAILS_ENV=production bundle exec rake redmine:plugins:migrate NAME=redmine_custom_workflows
RAILS_ENV=production bundle exec rake assets:precompile
chown -R www-data:www-data redmine
systemctl restart apache2
```
@ -201,4 +203,4 @@ fall into infinite loop.
Compatibility
-------------
This plug-in is compatible with Redmine 4.1.x., 4.2.x. and 5.0.x.
Redmine 6.x required.

View File

@ -59,8 +59,7 @@
<% end %>
<%= link_to sprite_icon('download', l(:label_custom_workflow_export)),
export_custom_workflow_path(workflow), class: 'icon icon-download', method: :get %>
<%= link_to sprite_icon('del', l(:button_delete)), workflow, class: 'icon icon-del',
data: { confirm: l(:text_are_you_sure) }, confirm: l(:text_are_you_sure), method: :delete %>
<%= delete_link custom_workflow_path(workflow) %>
</td>
</tr>
<% end %>