To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / projects / settings / _overview.html.erb @ 1245:d8e15cc24494
History | View | Annotate | Download (1010 Bytes)
| 1 | 351:ebf53b46f3f3 | chris | |
|---|---|---|---|
| 2 | 1245:d8e15cc24494 | luis | <%= form_for @project,
|
| 3 | :url => { :action => 'overview', :id => @project.id },
|
||
| 4 | 351:ebf53b46f3f3 | chris | :html => {:id => 'overview-form'} do |f| %>
|
| 5 | |||
| 6 | <div class="box tabular"> |
||
| 7 | |||
| 8 | 354:8c804ce943db | chris | <p><%= l(:text_has_welcome_page_info, { :overview_link => link_to(l(:label_overview), { :controller => 'projects', :action => 'show' } ) } ) %></p> |
| 9 | |||
| 10 | <% if @project.module_enabled? :wiki %>
|
||
| 11 | |||
| 12 | <p><%= link_to(l(:button_welcome_page_edit), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %> |
||
| 13 | |||
| 14 | <% else %>
|
||
| 15 | |||
| 16 | <p><%= l(:text_has_welcome_page_wiki_disabled, { :modules_link => link_to(l(:label_module_plural), { :controller => 'projects', :action => 'settings', :tab => 'modules' } ) } ) %></p> |
||
| 17 | |||
| 18 | <% end %>
|
||
| 19 | |||
| 20 | 351:ebf53b46f3f3 | chris | <p><label for="has_welcome_page"><%= l(:label_has_welcome_page) %></label> |
| 21 | <%= check_box_tag 'has_welcome_page', 1, @project.has_welcome_page? -%>
|
||
| 22 | 354:8c804ce943db | chris | <br/><em><%= l(:setting_has_welcome_page) %></em> |
| 23 | |||
| 24 | 351:ebf53b46f3f3 | chris | </p>
|
| 25 | |||
| 26 | </div>
|
||
| 27 | |||
| 28 | <%= submit_tag l(:button_save) %>
|
||
| 29 | |||
| 30 | <% end %> |