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