summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2008-05-27 16:46:14 -0700
committerEric Davis <edavis@littlestreamsoftware.com>2008-07-23 17:26:53 -0700
commit00659ab8c5c1f08f2e3f16e3404eed35ce5c4786 (patch)
tree1e0b5d574ddbbdfa465604c071ee53e5d2ee4078
parent404e6164cb31f4840d890ec6eb2d0e50396d87af (diff)
downloadredmine-00659ab8c5c1f08f2e3f16e3404eed35ce5c4786.tar.gz
redmine-00659ab8c5c1f08f2e3f16e3404eed35ce5c4786.zip
Added hooks to issue_edit, issue_bulk_edit, and issue_show. #1147
-rw-r--r--app/views/issues/_form.rhtml4
-rw-r--r--app/views/issues/bulk_edit.rhtml3
-rw-r--r--app/views/issues/show.rhtml4
3 files changed, 11 insertions, 0 deletions
diff --git a/app/views/issues/_form.rhtml b/app/views/issues/_form.rhtml
index 9bb74fd34..f933a7c35 100644
--- a/app/views/issues/_form.rhtml
+++ b/app/views/issues/_form.rhtml
@@ -48,4 +48,8 @@
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
<% end %>
+<% if Redmine::Plugin::Hook.hook_registered?(:issue_edit) %>
+ <%= Redmine::Plugin::Hook.call_hook(:issue_edit, {:project => @project, :issue => @issue, :form => f }) %>
+<% end %>
+
<%= wikitoolbar_for 'issue_description' %>
diff --git a/app/views/issues/bulk_edit.rhtml b/app/views/issues/bulk_edit.rhtml
index 86bc76765..92a340a93 100644
--- a/app/views/issues/bulk_edit.rhtml
+++ b/app/views/issues/bulk_edit.rhtml
@@ -38,6 +38,9 @@
<label><%= l(:field_done_ratio) %>:
<%= select_tag 'done_ratio', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></label>
</p>
+<% if Redmine::Plugin::Hook.hook_registered?(:issue_bulk_edit) %>
+ <%= Redmine::Plugin::Hook.call_hook(:issue_bulk_edit, {:project => @project, :issue => @issues }) %>
+<% end %>
</fieldset>
<fieldset><legend><%= l(:field_notes) %></legend>
diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml
index b71a02ee7..f72ac6d24 100644
--- a/app/views/issues/show.rhtml
+++ b/app/views/issues/show.rhtml
@@ -53,6 +53,10 @@
<%end
end %>
</tr>
+<% if Redmine::Plugin::Hook.hook_registered?(:issue_show) %>
+ <%= Redmine::Plugin::Hook.call_hook(:issue_show, {:project => @project, :issue => @issue}) %>
+<% end %>
+
</table>
<hr />