From cf77c93cb4c1d8a1f941b94b8e5a9e30eb0ae179 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Sat, 6 Dec 2008 00:51:03 +0000 Subject: [PATCH] Added several useful hooks to the Issue sidebar * :view_issues_sidebar_issues_bottom * :view_issues_sidebar_planning_bottom * :view_issues_sidebar_queries_bottom git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2093 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/_sidebar.rhtml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/issues/_sidebar.rhtml b/app/views/issues/_sidebar.rhtml index 788f0b947..9b7643ba9 100644 --- a/app/views/issues/_sidebar.rhtml +++ b/app/views/issues/_sidebar.rhtml @@ -2,8 +2,9 @@ <%= link_to l(:label_issue_view_all), { :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 } %>
<% if @project %> <%= link_to l(:field_summary), :controller => 'reports', :action => 'issue_report', :id => @project %>
-<%= link_to l(:label_change_log), :controller => 'projects', :action => 'changelog', :id => @project %> +<%= link_to l(:label_change_log), :controller => 'projects', :action => 'changelog', :id => @project %>
<% end %> +<%= call_hook(:view_issues_sidebar_issues_bottom) %> <% planning_links = [] planning_links << link_to(l(:label_calendar), :action => 'calendar', :project_id => @project) if User.current.allowed_to?(:view_calendar, @project, :global => true) @@ -12,6 +13,7 @@ <% unless planning_links.empty? %>

<%= l(:label_planning) %>

<%= planning_links.join(' | ') %>

+<%= call_hook(:view_issues_sidebar_planning_bottom) %> <% end %> <% unless sidebar_queries.empty? -%> @@ -20,4 +22,5 @@ <% sidebar_queries.each do |query| -%> <%= link_to query.name, :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %>
<% end -%> +<%= call_hook(:view_issues_sidebar_queries_bottom) %> <% end -%> -- 2.39.5