summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-02-24 15:36:25 +0000
committerGo MAEDA <maeda@farend.jp>2019-02-24 15:36:25 +0000
commit554a09af503a430dc89b9d4635539007c0cb50a5 (patch)
tree895cc0a6eb60b135fe22d4a9ca8dfba6b85793a8 /app/views
parentd7c0a2bc5343a5017f4d0ca4eb428cdb3303fa8a (diff)
downloadredmine-554a09af503a430dc89b9d4635539007c0cb50a5.tar.gz
redmine-554a09af503a430dc89b9d4635539007c0cb50a5.zip
Show warning when no workflow is defined for the role (#30853).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17899 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/roles/index.html.erb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/roles/index.html.erb b/app/views/roles/index.html.erb
index ab0bbe8da..bc8cc9cc7 100644
--- a/app/views/roles/index.html.erb
+++ b/app/views/roles/index.html.erb
@@ -9,11 +9,19 @@
<thead><tr>
<th><%=l(:label_role)%></th>
<th></th>
+ <th></th>
</tr></thead>
<tbody>
<% for role in @roles %>
<tr class="<%= role.builtin? ? "builtin" : "givable" %>">
<td class="name"><%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, edit_role_path(role))) %></td>
+ <td>
+ <% unless role.builtin? || role.workflow_rules.exists? %>
+ <span class="icon icon-warning">
+ <%= l(:text_role_no_workflow) %> (<%= link_to l(:button_edit), workflows_edit_path(:role_id => role) %>)
+ </span>
+ <% end %>
+ </td>
<td class="buttons">
<%= reorder_handle(role) unless role.builtin? %>
<%= link_to l(:button_copy), new_role_path(:copy => role), :class => 'icon icon-copy' %>