annotate app/views/projects/settings/_overview.rhtml @ 1452:d6b9fd02bb89
feature_36_js_refactoring
Deprecated develoment branch.
author |
luisf <luis.figueira@eecs.qmul.ac.uk> |
date |
Fri, 11 Oct 2013 17:01:24 +0100 |
parents |
8c804ce943db |
children |
|
rev |
line source |
chris@351
|
1
|
chris@351
|
2 <% form_for :project, @project,
|
chris@351
|
3 :url => { :action => 'overview', :id => @project },
|
chris@351
|
4 :html => {:id => 'overview-form'} do |f| %>
|
chris@351
|
5
|
chris@351
|
6 <div class="box tabular">
|
chris@351
|
7
|
chris@354
|
8 <p><%= l(:text_has_welcome_page_info, { :overview_link => link_to(l(:label_overview), { :controller => 'projects', :action => 'show' } ) } ) %></p>
|
chris@354
|
9
|
chris@354
|
10 <% if @project.module_enabled? :wiki %>
|
chris@354
|
11
|
chris@354
|
12 <p><%= link_to(l(:button_welcome_page_edit), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %>
|
chris@354
|
13
|
chris@354
|
14 <% else %>
|
chris@354
|
15
|
chris@354
|
16 <p><%= l(:text_has_welcome_page_wiki_disabled, { :modules_link => link_to(l(:label_module_plural), { :controller => 'projects', :action => 'settings', :tab => 'modules' } ) } ) %></p>
|
chris@354
|
17
|
chris@354
|
18 <% end %>
|
chris@354
|
19
|
chris@351
|
20 <p><label for="has_welcome_page"><%= l(:label_has_welcome_page) %></label>
|
chris@351
|
21 <%= check_box_tag 'has_welcome_page', 1, @project.has_welcome_page? -%>
|
chris@354
|
22 <br/><em><%= l(:setting_has_welcome_page) %></em>
|
chris@354
|
23
|
chris@351
|
24 </p>
|
chris@351
|
25
|
chris@351
|
26 </div>
|
chris@351
|
27
|
chris@351
|
28 <%= submit_tag l(:button_save) %>
|
chris@351
|
29
|
chris@351
|
30 <% end %>
|