##// END OF EJS Templates
Application welcome text is now textilized....
Jean-Philippe Lang -
r646:00238738b190
parent child
Show More
@@ -1,78 +1,79
1 <h2><%= l(:label_settings) %></h2>
1 <h2><%= l(:label_settings) %></h2>
2
2
3 <div id="settings">
3 <div id="settings">
4 <% form_tag({:action => 'edit'}, :class => "tabular") do %>
4 <% form_tag({:action => 'edit'}, :class => "tabular") do %>
5 <div class="box">
5 <div class="box">
6 <p><label><%= l(:setting_app_title) %></label>
6 <p><label><%= l(:setting_app_title) %></label>
7 <%= text_field_tag 'settings[app_title]', Setting.app_title, :size => 30 %></p>
7 <%= text_field_tag 'settings[app_title]', Setting.app_title, :size => 30 %></p>
8
8
9 <p><label><%= l(:setting_app_subtitle) %></label>
9 <p><label><%= l(:setting_app_subtitle) %></label>
10 <%= text_field_tag 'settings[app_subtitle]', Setting.app_subtitle, :size => 60 %></p>
10 <%= text_field_tag 'settings[app_subtitle]', Setting.app_subtitle, :size => 60 %></p>
11
11
12 <p><label><%= l(:setting_welcome_text) %></label>
12 <p><label><%= l(:setting_welcome_text) %></label>
13 <%= text_area_tag 'settings[welcome_text]', Setting.welcome_text, :cols => 60, :rows => 5 %></p>
13 <%= text_area_tag 'settings[welcome_text]', Setting.welcome_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %></p>
14 <%= wikitoolbar_for 'settings[welcome_text]' %>
14
15
15 <p><label><%= l(:setting_default_language) %></label>
16 <p><label><%= l(:setting_default_language) %></label>
16 <%= select_tag 'settings[default_language]', options_for_select( lang_options_for_select(false), Setting.default_language) %></p>
17 <%= select_tag 'settings[default_language]', options_for_select( lang_options_for_select(false), Setting.default_language) %></p>
17
18
18 <p><label><%= l(:setting_date_format) %></label>
19 <p><label><%= l(:setting_date_format) %></label>
19 <%= select_tag 'settings[date_format]', options_for_select( [[l(:label_language_based), '0'], ['ISO 8601 (YYYY-MM-DD)', '1']], Setting.date_format) %></p>
20 <%= select_tag 'settings[date_format]', options_for_select( [[l(:label_language_based), '0'], ['ISO 8601 (YYYY-MM-DD)', '1']], Setting.date_format) %></p>
20
21
21 <p><label><%= l(:setting_attachment_max_size) %></label>
22 <p><label><%= l(:setting_attachment_max_size) %></label>
22 <%= text_field_tag 'settings[attachment_max_size]', Setting.attachment_max_size, :size => 6 %> KB</p>
23 <%= text_field_tag 'settings[attachment_max_size]', Setting.attachment_max_size, :size => 6 %> KB</p>
23
24
24 <p><label><%= l(:setting_issues_export_limit) %></label>
25 <p><label><%= l(:setting_issues_export_limit) %></label>
25 <%= text_field_tag 'settings[issues_export_limit]', Setting.issues_export_limit, :size => 6 %></p>
26 <%= text_field_tag 'settings[issues_export_limit]', Setting.issues_export_limit, :size => 6 %></p>
26
27
27 <p><label><%= l(:setting_cross_project_issue_relations) %></label>
28 <p><label><%= l(:setting_cross_project_issue_relations) %></label>
28 <%= check_box_tag 'settings[cross_project_issue_relations]', 1, Setting.cross_project_issue_relations? %><%= hidden_field_tag 'settings[cross_project_issue_relations]', 0 %></p>
29 <%= check_box_tag 'settings[cross_project_issue_relations]', 1, Setting.cross_project_issue_relations? %><%= hidden_field_tag 'settings[cross_project_issue_relations]', 0 %></p>
29
30
30 <p><label><%= l(:setting_mail_from) %></label>
31 <p><label><%= l(:setting_mail_from) %></label>
31 <%= text_field_tag 'settings[mail_from]', Setting.mail_from, :size => 60 %></p>
32 <%= text_field_tag 'settings[mail_from]', Setting.mail_from, :size => 60 %></p>
32
33
33 <p><label><%= l(:setting_host_name) %></label>
34 <p><label><%= l(:setting_host_name) %></label>
34 <%= text_field_tag 'settings[host_name]', Setting.host_name, :size => 60 %></p>
35 <%= text_field_tag 'settings[host_name]', Setting.host_name, :size => 60 %></p>
35
36
36 <p><label><%= l(:setting_text_formatting) %></label>
37 <p><label><%= l(:setting_text_formatting) %></label>
37 <%= select_tag 'settings[text_formatting]', options_for_select([[l(:label_none), 0], ["textile", "textile"]], (@textile_available ? Setting.text_formatting : 0)), :disabled => !@textile_available %></p>
38 <%= select_tag 'settings[text_formatting]', options_for_select([[l(:label_none), 0], ["textile", "textile"]], (@textile_available ? Setting.text_formatting : 0)), :disabled => !@textile_available %></p>
38
39
39 <p><label><%= l(:setting_wiki_compression) %></label>
40 <p><label><%= l(:setting_wiki_compression) %></label>
40 <%= select_tag 'settings[wiki_compression]', options_for_select( [[l(:label_none), 0], ["gzip", "gzip"]], Setting.wiki_compression) %></p>
41 <%= select_tag 'settings[wiki_compression]', options_for_select( [[l(:label_none), 0], ["gzip", "gzip"]], Setting.wiki_compression) %></p>
41
42
42 <p><label><%= l(:setting_feeds_limit) %></label>
43 <p><label><%= l(:setting_feeds_limit) %></label>
43 <%= text_field_tag 'settings[feeds_limit]', Setting.feeds_limit, :size => 6 %></p>
44 <%= text_field_tag 'settings[feeds_limit]', Setting.feeds_limit, :size => 6 %></p>
44
45
45 <p><label><%= l(:setting_autofetch_changesets) %></label>
46 <p><label><%= l(:setting_autofetch_changesets) %></label>
46 <%= check_box_tag 'settings[autofetch_changesets]', 1, Setting.autofetch_changesets? %><%= hidden_field_tag 'settings[autofetch_changesets]', 0 %></p>
47 <%= check_box_tag 'settings[autofetch_changesets]', 1, Setting.autofetch_changesets? %><%= hidden_field_tag 'settings[autofetch_changesets]', 0 %></p>
47
48
48 <p><label><%= l(:setting_sys_api_enabled) %></label>
49 <p><label><%= l(:setting_sys_api_enabled) %></label>
49 <%= check_box_tag 'settings[sys_api_enabled]', 1, Setting.sys_api_enabled? %><%= hidden_field_tag 'settings[sys_api_enabled]', 0 %></p>
50 <%= check_box_tag 'settings[sys_api_enabled]', 1, Setting.sys_api_enabled? %><%= hidden_field_tag 'settings[sys_api_enabled]', 0 %></p>
50 </div>
51 </div>
51
52
52 <fieldset class="box"><legend><%= l(:label_authentication) %></legend>
53 <fieldset class="box"><legend><%= l(:label_authentication) %></legend>
53 <p><label><%= l(:setting_login_required) %></label>
54 <p><label><%= l(:setting_login_required) %></label>
54 <%= check_box_tag 'settings[login_required]', 1, Setting.login_required? %><%= hidden_field_tag 'settings[login_required]', 0 %></p>
55 <%= check_box_tag 'settings[login_required]', 1, Setting.login_required? %><%= hidden_field_tag 'settings[login_required]', 0 %></p>
55
56
56 <p><label><%= l(:setting_autologin) %></label>
57 <p><label><%= l(:setting_autologin) %></label>
57 <%= select_tag 'settings[autologin]', options_for_select( [[l(:label_disabled), "0"]] + [1, 7, 30, 365].collect{|days| [lwr(:actionview_datehelper_time_in_words_day, days), days.to_s]}, Setting.autologin) %></p>
58 <%= select_tag 'settings[autologin]', options_for_select( [[l(:label_disabled), "0"]] + [1, 7, 30, 365].collect{|days| [lwr(:actionview_datehelper_time_in_words_day, days), days.to_s]}, Setting.autologin) %></p>
58
59
59 <p><label><%= l(:setting_self_registration) %></label>
60 <p><label><%= l(:setting_self_registration) %></label>
60 <%= check_box_tag 'settings[self_registration]', 1, Setting.self_registration? %><%= hidden_field_tag 'settings[self_registration]', 0 %></p>
61 <%= check_box_tag 'settings[self_registration]', 1, Setting.self_registration? %><%= hidden_field_tag 'settings[self_registration]', 0 %></p>
61
62
62 <p><label><%= l(:label_password_lost) %></label>
63 <p><label><%= l(:label_password_lost) %></label>
63 <%= check_box_tag 'settings[lost_password]', 1, Setting.lost_password? %><%= hidden_field_tag 'settings[lost_password]', 0 %></p>
64 <%= check_box_tag 'settings[lost_password]', 1, Setting.lost_password? %><%= hidden_field_tag 'settings[lost_password]', 0 %></p>
64 </fieldset>
65 </fieldset>
65
66
66 <fieldset class="box"><legend><%= l(:text_issues_ref_in_commit_messages) %></legend>
67 <fieldset class="box"><legend><%= l(:text_issues_ref_in_commit_messages) %></legend>
67 <p><label><%= l(:setting_commit_ref_keywords) %></label>
68 <p><label><%= l(:setting_commit_ref_keywords) %></label>
68 <%= text_field_tag 'settings[commit_ref_keywords]', Setting.commit_ref_keywords, :size => 30 %><br /><em><%= l(:text_comma_separated) %></em></p>
69 <%= text_field_tag 'settings[commit_ref_keywords]', Setting.commit_ref_keywords, :size => 30 %><br /><em><%= l(:text_comma_separated) %></em></p>
69
70
70 <p><label><%= l(:setting_commit_fix_keywords) %></label>
71 <p><label><%= l(:setting_commit_fix_keywords) %></label>
71 <%= text_field_tag 'settings[commit_fix_keywords]', Setting.commit_fix_keywords, :size => 30 %>
72 <%= text_field_tag 'settings[commit_fix_keywords]', Setting.commit_fix_keywords, :size => 30 %>
72 &nbsp;<%= l(:label_applied_status) %>: <%= select_tag 'settings[commit_fix_status_id]', options_for_select( [["", 0]] + IssueStatus.find(:all).collect{|status| [status.name, status.id.to_s]}, Setting.commit_fix_status_id) %>
73 &nbsp;<%= l(:label_applied_status) %>: <%= select_tag 'settings[commit_fix_status_id]', options_for_select( [["", 0]] + IssueStatus.find(:all).collect{|status| [status.name, status.id.to_s]}, Setting.commit_fix_status_id) %>
73 <br /><em><%= l(:text_comma_separated) %></em></p>
74 <br /><em><%= l(:text_comma_separated) %></em></p>
74 </fieldset>
75 </fieldset>
75
76
76 <%= submit_tag l(:button_save) %>
77 <%= submit_tag l(:button_save) %>
77 </div>
78 </div>
78 <% end %> No newline at end of file
79 <% end %>
@@ -1,28 +1,28
1 <h2><%= l(:label_home) %></h2>
1 <h2><%= l(:label_home) %></h2>
2
2
3 <div class="splitcontentleft">
3 <div class="splitcontentleft">
4 <p><%= Setting.welcome_text %></p>
4 <%= textilizable Setting.welcome_text %>
5 <div class="box">
5 <div class="box">
6 <h3><%=l(:label_news_latest)%></h3>
6 <h3><%=l(:label_news_latest)%></h3>
7 <%= render :partial => 'news/news', :collection => @news %>
7 <%= render :partial => 'news/news', :collection => @news %>
8 </div>
8 </div>
9 </div>
9 </div>
10
10
11 <div class="splitcontentright">
11 <div class="splitcontentright">
12 <div class="box">
12 <div class="box">
13 <h3 class="icon22 icon22-projects"><%=l(:label_project_latest)%></h3>
13 <h3 class="icon22 icon22-projects"><%=l(:label_project_latest)%></h3>
14 <ul>
14 <ul>
15 <% for project in @projects %>
15 <% for project in @projects %>
16 <li>
16 <li>
17 <%= link_to project.name, :controller => 'projects', :action => 'show', :id => project %> (<%= format_time(project.created_on) %>)<br />
17 <%= link_to project.name, :controller => 'projects', :action => 'show', :id => project %> (<%= format_time(project.created_on) %>)<br />
18 <%= textilizable project.description, :project => project %>
18 <%= textilizable project.description, :project => project %>
19 </li>
19 </li>
20 <% end %>
20 <% end %>
21 </ul>
21 </ul>
22 </div>
22 </div>
23 </div>
23 </div>
24
24
25 <% content_for :header_tags do %>
25 <% content_for :header_tags do %>
26 <%= auto_discovery_link_tag(:rss, {:controller => 'feeds', :action => 'news', :key => @key}, {:title => l(:label_news_latest)}) %>
26 <%= auto_discovery_link_tag(:rss, {:controller => 'feeds', :action => 'news', :key => @key}, {:title => l(:label_news_latest)}) %>
27 <%= auto_discovery_link_tag(:atom, {:controller => 'feeds', :action => 'news', :key => @key, :format => 'atom'}, {:title => l(:label_news_latest)}) %>
27 <%= auto_discovery_link_tag(:atom, {:controller => 'feeds', :action => 'news', :key => @key, :format => 'atom'}, {:title => l(:label_news_latest)}) %>
28 <% end %>
28 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now