summaryrefslogtreecommitdiffstats
path: root/app/views/wiki
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-04-11 12:56:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-04-11 12:56:18 +0000
commit58792737394c59ecac08db2cea0eeebb836f160a (patch)
tree20356d7c4801a53e47df1273d7c011441beee62c /app/views/wiki
parent3979224693c796b162e3bf815fa33265869f1b18 (diff)
downloadredmine-58792737394c59ecac08db2cea0eeebb836f160a.tar.gz
redmine-58792737394c59ecac08db2cea0eeebb836f160a.zip
Makes the wiki sidebar editable (#5208).
The content of the wiki page named 'Sidebar' is rendered in the sidebar if it exists. Permission to edit protected pages is required to create this page. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3632 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/wiki')
-rw-r--r--app/views/wiki/_sidebar.rhtml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/wiki/_sidebar.rhtml b/app/views/wiki/_sidebar.rhtml
index 20c087123..ad4b1d250 100644
--- a/app/views/wiki/_sidebar.rhtml
+++ b/app/views/wiki/_sidebar.rhtml
@@ -1,3 +1,7 @@
+<% if @wiki && @wiki.sidebar -%>
+ <%= textilizable @wiki.sidebar.content, :text %>
+<% end -%>
+
<h3><%= l(:label_wiki) %></h3>
<%= link_to l(:field_start_page), {:action => 'index', :page => nil} %><br />