diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 52cdd75..cb85539 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -893,7 +893,8 @@ module ApplicationHelper end end html_title args.reverse.map {|s| (s.is_a?(Array) ? s.first : s).to_s} - content_tag('h2', strings.join(' » ').html_safe) + content_tag('h2', strings.join(' » ').html_safe) + + call_hook(:view_layouts_base_title_after, :title => args) end # Sets the html title @@ -1807,13 +1808,18 @@ module ApplicationHelper end def sidebar_content? - content_for?(:sidebar) || view_layouts_base_sidebar_hook_response.present? + content_for?(:sidebar) || view_layouts_base_sidebar_hook_response.present? || + view_layouts_base_sidebar_top_hook_response.present? end def view_layouts_base_sidebar_hook_response @view_layouts_base_sidebar_hook_response ||= call_hook(:view_layouts_base_sidebar) end + def view_layouts_base_sidebar_top_hook_response + @view_layouts_base_sidebar_top_hook_response ||= call_hook(:view_layouts_base_sidebar_top) + end + def email_delivery_enabled? !!ActionMailer::Base.perform_deliveries end diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index 3b5a19d..c240fbe 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -4,6 +4,7 @@ <% if @issue.is_private? %> <%= l(:field_is_private) %> <% end %> +<%= call_hook(:view_issues_show_top, :issue => @issue) %>
<% if @prev_issue_id || @next_issue_id %> @@ -143,8 +144,9 @@ end %> <%= render :partial => 'relations' %> <% end %> <% end %> - +<%= call_hook(:view_issues_show_details_end, :issue => @issue) %>
+<%= call_hook(:view_issues_show_bottom, :issue => @issue) %> <%= render partial: 'action_menu_edit' if User.current.wants_comments_in_reverse_order? %> diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb index e4ffb42..a1302a7 100644 --- a/app/views/layouts/base.html.erb +++ b/app/views/layouts/base.html.erb @@ -88,6 +88,7 @@ <% end %> + <%= call_hook :view_layouts_base_header_bottom %>