Project

General

Profile

Actions

Patch #21587

closed

Additional view hook for body_top

Added by Tobias Fischer almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Hook requests
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Any chance to add the following one-liner to add another hook at the beginning of the body element like we have it at the bottom?
Let's call it view_layouts_base_body_top (analogous to view_layouts_base_body_bottom).

</head>
<body class="<%=h body_css_classes %>">
<%= call_hook :view_layouts_base_body_top %>
<div id="wrapper">

It's a one-liner, it doesn't need tests, it doesn't break anything – please merge this in the next minor release.

This could be used by plugin authors like me to display additional information at the top of the page...


This is a duplicate of #17454 which doesn't seem to draw attention to the developers as it's just another Feature Request among 20.000 others and can't be changed to the tracker "Patch" to appear in the patch queue...
If someone of the Redmine team ever reads this, please considder changing permissions for ticket authors to allow them to switch the Tracker for their tickets...


Files

0001-Additional-view-hook-body_top.patch (766 Bytes) 0001-Additional-view-hook-body_top.patch Tobias Fischer, 2015-12-23 00:23
Additional-view-hook-body_top_v2.patch (416 Bytes) Additional-view-hook-body_top_v2.patch patch against 3.2.0.devel.15067 Go MAEDA, 2016-01-18 12:27

Related issues

Related to Redmine - Feature #17454: Additional view hook for body_topClosed

Actions
Actions

Also available in: Atom PDF