@@ -39,6 +39,9 class SettingsController < ApplicationController | |||||
39 | @options = {} |
|
39 | @options = {} | |
40 | @options[:user_format] = User::USER_FORMATS.keys.collect {|f| [User.current.name(f), f.to_s] } |
|
40 | @options[:user_format] = User::USER_FORMATS.keys.collect {|f| [User.current.name(f), f.to_s] } | |
41 | @deliveries = ActionMailer::Base.perform_deliveries |
|
41 | @deliveries = ActionMailer::Base.perform_deliveries | |
|
42 | ||||
|
43 | @guessed_host_and_path = request.host_with_port | |||
|
44 | @guessed_host_and_path << ('/'+ request.relative_url_root.gsub(%r{^\/}, '')) unless request.relative_url_root.blank? | |||
42 | end |
|
45 | end | |
43 |
|
46 | |||
44 | def plugin |
|
47 | def plugin |
@@ -185,6 +185,7 class Mailer < ActionMailer::Base | |||||
185 | from Setting.mail_from |
|
185 | from Setting.mail_from | |
186 | default_url_options[:host] = Setting.host_name |
|
186 | default_url_options[:host] = Setting.host_name | |
187 | default_url_options[:protocol] = Setting.protocol |
|
187 | default_url_options[:protocol] = Setting.protocol | |
|
188 | default_url_options[:skip_relative_url_root] = true | |||
188 | # Common headers |
|
189 | # Common headers | |
189 | headers 'X-Mailer' => 'Redmine', |
|
190 | headers 'X-Mailer' => 'Redmine', | |
190 | 'X-Redmine-Host' => Setting.host_name, |
|
191 | 'X-Redmine-Host' => Setting.host_name, |
@@ -33,7 +33,8 | |||||
33 | <%= text_field_tag 'settings[activity_days_default]', Setting.activity_days_default, :size => 6 %> <%= l(:label_day_plural) %></p> |
|
33 | <%= text_field_tag 'settings[activity_days_default]', Setting.activity_days_default, :size => 6 %> <%= l(:label_day_plural) %></p> | |
34 |
|
34 | |||
35 | <p><label><%= l(:setting_host_name) %></label> |
|
35 | <p><label><%= l(:setting_host_name) %></label> | |
36 |
<%= text_field_tag 'settings[host_name]', Setting.host_name, :size => 60 %></ |
|
36 | <%= text_field_tag 'settings[host_name]', Setting.host_name, :size => 60 %><br /> | |
|
37 | <em><%= l(:label_example) %>: <%= @guessed_host_and_path %></em></p> | |||
37 |
|
38 | |||
38 | <p><label><%= l(:setting_protocol) %></label> |
|
39 | <p><label><%= l(:setting_protocol) %></label> | |
39 | <%= select_tag 'settings[protocol]', options_for_select(['http', 'https'], Setting.protocol) %></p> |
|
40 | <%= select_tag 'settings[protocol]', options_for_select(['http', 'https'], Setting.protocol) %></p> |
@@ -196,7 +196,7 setting_issues_export_limit: Issues export limit | |||||
196 | setting_mail_from: Emission email address |
|
196 | setting_mail_from: Emission email address | |
197 | setting_bcc_recipients: Blind carbon copy recipients (bcc) |
|
197 | setting_bcc_recipients: Blind carbon copy recipients (bcc) | |
198 | setting_plain_text_mail: plain text mail (no HTML) |
|
198 | setting_plain_text_mail: plain text mail (no HTML) | |
199 | setting_host_name: Host name |
|
199 | setting_host_name: Host name and path | |
200 | setting_text_formatting: Text formatting |
|
200 | setting_text_formatting: Text formatting | |
201 | setting_wiki_compression: Wiki history compression |
|
201 | setting_wiki_compression: Wiki history compression | |
202 | setting_feeds_limit: Feed content limit |
|
202 | setting_feeds_limit: Feed content limit | |
@@ -576,6 +576,7 label_planning: Planning | |||||
576 | label_incoming_emails: Incoming emails |
|
576 | label_incoming_emails: Incoming emails | |
577 | label_generate_key: Generate a key |
|
577 | label_generate_key: Generate a key | |
578 | label_issue_watchers: Watchers |
|
578 | label_issue_watchers: Watchers | |
|
579 | label_example: Example | |||
579 |
|
580 | |||
580 | button_login: Login |
|
581 | button_login: Login | |
581 | button_submit: Submit |
|
582 | button_submit: Submit |
@@ -197,7 +197,7 setting_issues_export_limit: Limite export demandes | |||||
197 | setting_mail_from: Adresse d'émission |
|
197 | setting_mail_from: Adresse d'émission | |
198 | setting_bcc_recipients: Destinataires en copie cachée (cci) |
|
198 | setting_bcc_recipients: Destinataires en copie cachée (cci) | |
199 | setting_plain_text_mail: Mail texte brut (non HTML) |
|
199 | setting_plain_text_mail: Mail texte brut (non HTML) | |
200 | setting_host_name: Nom d'hôte |
|
200 | setting_host_name: Nom d'hôte et chemin | |
201 | setting_text_formatting: Formatage du texte |
|
201 | setting_text_formatting: Formatage du texte | |
202 | setting_wiki_compression: Compression historique wiki |
|
202 | setting_wiki_compression: Compression historique wiki | |
203 | setting_feeds_limit: Limite du contenu des flux RSS |
|
203 | setting_feeds_limit: Limite du contenu des flux RSS | |
@@ -576,6 +576,7 label_planning: Planning | |||||
576 | label_incoming_emails: Emails entrants |
|
576 | label_incoming_emails: Emails entrants | |
577 | label_generate_key: Générer une clé |
|
577 | label_generate_key: Générer une clé | |
578 | label_issue_watchers: Utilisateurs surveillant cette demande |
|
578 | label_issue_watchers: Utilisateurs surveillant cette demande | |
|
579 | label_example: Exemple | |||
579 |
|
580 | |||
580 | button_login: Connexion |
|
581 | button_login: Connexion | |
581 | button_submit: Soumettre |
|
582 | button_submit: Soumettre |
General Comments 0
You need to be logged in to leave comments.
Login now