Vote #69557
完了Hook for adding content to the side bar of Wiki page
0%
説明
I believe it can be useful to have an ability to add some content (e.g. Facebook Like button) to the side bar of a Wiki page.
Attached patch adds hook @:view_wiki_show_sidebar_top@ to the @app/views/wiki/_sidebar.rhtml@.
~/app/views/wiki$ patch < _sidebar.rhtml.patch
journals
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
I want to add some features to wiki sidebar via my plugin.
So I want to add hooks to extend wiki sidebar.
I attach a patch to add hooks to extend wiki sidebar.
This patch can be applied to 3.4-stable branch and current master HEAD.
--------------------------------------------------------------------------------
I think it is reasonable to have a new hook @:view_wiki_show_sidebar_bottom@ as well as the following existing hooks.
* @:view_issues_sidebar_issues_bottom@
* @:view_issues_sidebar_planning_bottom@
* @:view_issues_sidebar_queries_bottom@
* @:view_projects_show_sidebar_bottom@
--------------------------------------------------------------------------------
Since there is no '.*_sideber_.*bottom' hook, I suggest adding only @:view_wiki_show_sidebar_bottom@.
--------------------------------------------------------------------------------
Added :view_wiki_show_sidebar_bottom in r18117. Thank you all for your contribution.
--------------------------------------------------------------------------------