mirror of
https://github.com/anteo/redmine_custom_workflows.git
synced 2026-01-26 00:04:20 +00:00
Missing command icons
This commit is contained in:
parent
d35102b88c
commit
a3d3544191
@ -27,7 +27,7 @@ def custom_workflows_init
|
||||
# Administration menu extension
|
||||
Redmine::MenuManager.map :admin_menu do |menu|
|
||||
menu.push :custom_workflows, { controller: 'custom_workflows', action: 'index'},
|
||||
caption: :label_custom_workflow_plural, html: { class: 'icon icon-workflow workflows'}
|
||||
caption: :label_custom_workflow_plural, html: { class: 'icon icon-workflows workflows'}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@ -42,13 +42,16 @@
|
||||
<%= reorder_handle(workflow, url: url_for(action: 'reorder', id: workflow) ) %>
|
||||
</td>
|
||||
<td class="buttons">
|
||||
<div class="icon"></div>
|
||||
<% if workflow.active? %>
|
||||
<%= link_to(l(:button_custom_workflow_deactivate), custom_workflow_status_path(workflow, :active => false), :class => 'icon icon-inactive', :method => :post) %>
|
||||
<%= link_to(l(:button_custom_workflow_deactivate), custom_workflow_status_path(workflow, active: false), class: 'icon icon-lock', method: :post) %>
|
||||
<% else %>
|
||||
<%= link_to(l(:button_custom_workflow_activate), custom_workflow_status_path(workflow, :active => true), :class => 'icon icon-active', :method => :post) %>
|
||||
<%= link_to(l(:button_custom_workflow_activate), custom_workflow_status_path(workflow, active: true), class: 'icon icon-unlock', method: :post) %>
|
||||
<% end %>
|
||||
<%= link_to(l(:label_custom_workflow_export), export_custom_workflow_path(workflow), :class => 'icon icon-export', :method => :get) %>
|
||||
<%= link_to(l(:button_delete), workflow, :class => 'icon icon-del', :data => {:confirm => l(:text_are_you_sure)}, :confirm => l(:text_are_you_sure), :method => :delete) %>
|
||||
<br/>
|
||||
<%= link_to(l(:label_custom_workflow_export), export_custom_workflow_path(workflow), class: 'icon icon-export', method: :get) %>
|
||||
<br/>
|
||||
<%= link_to(l(:button_delete), workflow, class: 'icon icon-del', data: { confirm: l(:text_are_you_sure) }, confirm: l(:text_are_you_sure), method: :delete) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 316 B |
Binary file not shown.
|
Before Width: | Height: | Size: 265 B After Width: | Height: | Size: 247 B |
Binary file not shown.
|
Before Width: | Height: | Size: 279 B After Width: | Height: | Size: 259 B |
Binary file not shown.
|
Before Width: | Height: | Size: 330 B |
@ -57,7 +57,10 @@ table.list.custom-workflows tr.disabled {
|
||||
}
|
||||
|
||||
/* Icons */
|
||||
.icon-export { background-image: url(../images/export.png); }
|
||||
.icon-import { background-image: url(../images/import.png); }
|
||||
.icon-active { background-image: url(../images/active.png); }
|
||||
.icon-inactive { background-image: url(../images/inactive.png); }
|
||||
.icon-import {
|
||||
background-image: url(../images/export.png);
|
||||
}
|
||||
|
||||
.icon-export {
|
||||
background-image: url(../images/import.png);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user