Patch #6050 ยป view_issues_show_sidebar_hooks.diff
app/views/issues/show.rhtml (working copy) | ||
---|---|---|
113 | 113 |
<% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %> |
114 | 114 | |
115 | 115 |
<% content_for :sidebar do %> |
116 | ||
117 |
<%= call_hook(:view_issues_show_sidebar_top, :issue => @issue) %> |
|
118 | ||
116 | 119 |
<%= render :partial => 'issues/sidebar' %> |
117 | 120 | |
121 |
<%= call_hook(:view_issues_show_sidebar_before_watchers, :issue => @issue) %> |
|
122 | ||
118 | 123 |
<% if User.current.allowed_to?(:add_issue_watchers, @project) || |
119 | 124 |
(@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %> |
120 | 125 |
<div id="watchers"> |
121 | 126 |
<%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %> |
122 | 127 |
</div> |
123 | 128 |
<% end %> |
129 | ||
130 |
<%= call_hook(:view_issues_show_sidebar_bottom, :issue => @issue) %> |
|
124 | 131 |
<% end %> |
125 | 132 | |
126 | 133 |
<% content_for :header_tags do %> |