Project

General

Profile

Patch #7975 » add_wiki_sidebar_hooks.patch

okkez _, 2017-08-24 02:44

View differences:

app/views/wiki/_sidebar.html.erb
1
<%= call_hook(:view_wiki_show_sidebar_top, :wiki => @wiki, :page => @page) %>
2

  
1 3
<% if @wiki && @wiki.sidebar -%>
2 4
  <div class="wiki">
3 5
    <%= textilizable @wiki.sidebar.content, :text %>
......
12 14
                  {:controller => 'wiki', :project_id => @project,
13 15
                   :action => 'date_index'}) %></li>
14 16
</ul>
17

  
18
<%= call_hook(:view_wiki_show_sidebar_bottom, :wiki => @wiki, :page => @page) %>
(2-2/2)