summaryrefslogtreecommitdiffstats
path: root/app/views/issue_statuses
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-08-31 13:21:34 +0000
committerGo MAEDA <maeda@farend.jp>2023-08-31 13:21:34 +0000
commitfe9ef2fc27189d2d3c2ef7726c15e7c2a712cefa (patch)
treed1a22c1532e80225e8832ca6534f1d19eee215ec /app/views/issue_statuses
parent2415c9f5d780c3b47e5b76cbd6207f361facb026 (diff)
downloadredmine-fe9ef2fc27189d2d3c2ef7726c15e7c2a712cefa.tar.gz
redmine-fe9ef2fc27189d2d3c2ef7726c15e7c2a712cefa.zip
Add description for issue statuses and display them in issue new/edit form (#2568).
Patch by Takenori TAKAKI. git-svn-id: https://svn.redmine.org/redmine/trunk@22288 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issue_statuses')
-rw-r--r--app/views/issue_statuses/_form.html.erb1
-rw-r--r--app/views/issue_statuses/index.api.rsb1
-rw-r--r--app/views/issue_statuses/index.html.erb2
3 files changed, 4 insertions, 0 deletions
diff --git a/app/views/issue_statuses/_form.html.erb b/app/views/issue_statuses/_form.html.erb
index 2c333a304..8f06451c6 100644
--- a/app/views/issue_statuses/_form.html.erb
+++ b/app/views/issue_statuses/_form.html.erb
@@ -2,6 +2,7 @@
<div class="box tabular">
<p><%= f.text_field :name, :required => true %></p>
+<p><%= f.text_area :description, :rows => 4 %></p>
<% if Issue.use_status_for_done_ratio? %>
<p><%= f.select :default_done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }), :include_blank => true, :label => :field_done_ratio %></p>
<% end %>
diff --git a/app/views/issue_statuses/index.api.rsb b/app/views/issue_statuses/index.api.rsb
index 4f3b732d8..e1d85c78d 100644
--- a/app/views/issue_statuses/index.api.rsb
+++ b/app/views/issue_statuses/index.api.rsb
@@ -4,6 +4,7 @@ api.array :issue_statuses do
api.id status.id
api.name status.name
api.is_closed status.is_closed
+ api.description status.description
end
end
end
diff --git a/app/views/issue_statuses/index.html.erb b/app/views/issue_statuses/index.html.erb
index c9f120cbd..509abd831 100644
--- a/app/views/issue_statuses/index.html.erb
+++ b/app/views/issue_statuses/index.html.erb
@@ -12,6 +12,7 @@
<th><%=l(:field_done_ratio)%></th>
<% end %>
<th><%=l(:field_is_closed)%></th>
+ <th><%=l(:field_description)%></th>
<th></th>
<th></th>
</tr></thead>
@@ -23,6 +24,7 @@
<td><%= status.default_done_ratio %></td>
<% end %>
<td><%= checked_image status.is_closed? %></td>
+ <td class="description"><%= status.description %></td>
<td>
<% unless WorkflowTransition.where('old_status_id = ? OR new_status_id = ?', status.id, status.id).exists? %>
<span class="icon icon-warning">