summaryrefslogtreecommitdiffstats
path: root/app/views/wiki
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-30 07:38:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-30 07:38:48 +0000
commite930ee8e98acbe14438c9c314077a9f7ee198269 (patch)
tree2d2cac223b4dd0194c1930f30ac1f3809662cb96 /app/views/wiki
parent6bc9f3d10dfc22cf7dd1f0e1d0226d8dbec689e7 (diff)
downloadredmine-e930ee8e98acbe14438c9c314077a9f7ee198269.tar.gz
redmine-e930ee8e98acbe14438c9c314077a9f7ee198269.zip
Adds a checkbox to set a page as the wiki start page (#26579).
git-svn-id: http://svn.redmine.org/redmine/trunk@16915 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/wiki')
-rw-r--r--app/views/wiki/rename.html.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/wiki/rename.html.erb b/app/views/wiki/rename.html.erb
index ac88fd4bf..377e1717c 100644
--- a/app/views/wiki/rename.html.erb
+++ b/app/views/wiki/rename.html.erb
@@ -9,6 +9,9 @@
:html => { :method => :post } do |f| %>
<div class="box tabular">
<p><%= f.text_field :title, :required => true, :size => 100 %></p>
+<% if @page.safe_attribute? 'is_start_page' %>
+<p><%= f.check_box :is_start_page, :label => :field_start_page, :disabled => @page.is_start_page %></p>
+<% end %>
<p><%= f.check_box :redirect_existing_links %></p>
<p><%= f.select :parent_id,
content_tag('option', '', :value => '') +