From c4239a4fd2f9c91a43a170d19f3f913022428d0b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 15 Aug 2007 15:16:15 +0000 Subject: [PATCH] Removed hard-coded URLs in mail templates. Untranslated templates were deleted. git-svn-id: http://redmine.rubyforge.org/svn/trunk@641 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/mailer/_issue.rhtml | 2 +- app/views/mailer/attachments_add_es.rhtml | 6 ------ app/views/mailer/document_add.rhtml | 2 +- app/views/mailer/document_add_bg.rhtml | 2 +- app/views/mailer/document_add_de.rhtml | 2 +- app/views/mailer/document_add_es.rhtml | 4 ---- app/views/mailer/document_add_fr.rhtml | 2 +- app/views/mailer/document_add_it.rhtml | 2 +- app/views/mailer/document_add_ja.rhtml | 2 +- app/views/mailer/document_add_nl.rhtml | 2 +- app/views/mailer/document_add_pt-br.rhtml | 2 +- app/views/mailer/document_add_pt.rhtml | 2 +- app/views/mailer/document_add_sv.rhtml | 2 +- app/views/mailer/document_add_zh.rhtml | 4 ++-- app/views/mailer/issue_add_es.rhtml | 3 --- app/views/mailer/issue_edit_es.rhtml | 8 -------- app/views/mailer/lost_password.rhtml | 2 +- app/views/mailer/lost_password_bg.rhtml | 2 +- app/views/mailer/lost_password_de.rhtml | 2 +- app/views/mailer/lost_password_es.rhtml | 3 --- app/views/mailer/lost_password_fr.rhtml | 2 +- app/views/mailer/lost_password_it.rhtml | 2 +- app/views/mailer/lost_password_ja.rhtml | 2 +- app/views/mailer/lost_password_nl.rhtml | 2 +- app/views/mailer/lost_password_pt-br.rhtml | 2 +- app/views/mailer/lost_password_pt.rhtml | 2 +- app/views/mailer/lost_password_sv.rhtml | 2 +- app/views/mailer/lost_password_zh.rhtml | 3 --- app/views/mailer/register.rhtml | 2 +- app/views/mailer/register_bg.rhtml | 2 +- app/views/mailer/register_de.rhtml | 2 +- app/views/mailer/register_es.rhtml | 3 --- app/views/mailer/register_fr.rhtml | 2 +- app/views/mailer/register_it.rhtml | 2 +- app/views/mailer/register_ja.rhtml | 2 +- app/views/mailer/register_nl.rhtml | 2 +- app/views/mailer/register_pt-br.rhtml | 2 +- app/views/mailer/register_pt.rhtml | 2 +- app/views/mailer/register_sv.rhtml | 4 ++-- app/views/mailer/register_zh.rhtml | 3 --- app/views/mailer/test.rhtml | 2 ++ 41 files changed, 36 insertions(+), 67 deletions(-) delete mode 100644 app/views/mailer/attachments_add_es.rhtml delete mode 100644 app/views/mailer/document_add_es.rhtml delete mode 100644 app/views/mailer/issue_add_es.rhtml delete mode 100644 app/views/mailer/issue_edit_es.rhtml delete mode 100644 app/views/mailer/lost_password_es.rhtml delete mode 100644 app/views/mailer/lost_password_zh.rhtml delete mode 100644 app/views/mailer/register_es.rhtml delete mode 100644 app/views/mailer/register_zh.rhtml diff --git a/app/views/mailer/_issue.rhtml b/app/views/mailer/_issue.rhtml index 7caf855f..bd438f28 100644 --- a/app/views/mailer/_issue.rhtml +++ b/app/views/mailer/_issue.rhtml @@ -5,4 +5,4 @@ <%= issue.description %> -http://<%= Setting.host_name %>/issues/show/<%= issue.id %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'issues', :action => 'show', :id => issue %> diff --git a/app/views/mailer/attachments_add_es.rhtml b/app/views/mailer/attachments_add_es.rhtml deleted file mode 100644 index 81e2974c..00000000 --- a/app/views/mailer/attachments_add_es.rhtml +++ /dev/null @@ -1,6 +0,0 @@ -<%= @added_to %> -<%= @attachments.size %> files(s) added. -<% @attachments.each do |attachment | %> -- <%= attachment.filename %><% end %> - -<%= @url %> \ No newline at end of file diff --git a/app/views/mailer/document_add.rhtml b/app/views/mailer/document_add.rhtml index 67648de1..dfd51d35 100644 --- a/app/views/mailer/document_add.rhtml +++ b/app/views/mailer/document_add.rhtml @@ -1,4 +1,4 @@ A document has been added to <%= @document.project.name %> (<%= @document.category.name %>): <%= l(:field_title) %>: <%= @document.title %> -http://<%= Setting.host_name %>/documents/show/<%= @document.id %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'documents', :action => 'show', :id => @document %> diff --git a/app/views/mailer/document_add_bg.rhtml b/app/views/mailer/document_add_bg.rhtml index aef4f1ff..fbd65267 100644 --- a/app/views/mailer/document_add_bg.rhtml +++ b/app/views/mailer/document_add_bg.rhtml @@ -1,4 +1,4 @@ Добавен е документ в <%= @document.project.name %> (<%= @document.category.name %>): <%= l(:field_title) %>: <%= @document.title %> -http://<%= Setting.host_name %>/documents/show/<%= @document.id %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'documents', :action => 'show', :id => @document %> diff --git a/app/views/mailer/document_add_de.rhtml b/app/views/mailer/document_add_de.rhtml index fab485cd..4ee5a35a 100644 --- a/app/views/mailer/document_add_de.rhtml +++ b/app/views/mailer/document_add_de.rhtml @@ -1,4 +1,4 @@ Ein Dokument wurde hinzugefügt: <%= @document.project.name %> (<%= @document.category.name %>): <%= l(:field_title) %>: <%= @document.title %> -http://<%= Setting.host_name %>/documents/show/<%= @document.id %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'documents', :action => 'show', :id => @document %> diff --git a/app/views/mailer/document_add_es.rhtml b/app/views/mailer/document_add_es.rhtml deleted file mode 100644 index 67648de1..00000000 --- a/app/views/mailer/document_add_es.rhtml +++ /dev/null @@ -1,4 +0,0 @@ -A document has been added to <%= @document.project.name %> (<%= @document.category.name %>): -<%= l(:field_title) %>: <%= @document.title %> - -http://<%= Setting.host_name %>/documents/show/<%= @document.id %> \ No newline at end of file diff --git a/app/views/mailer/document_add_fr.rhtml b/app/views/mailer/document_add_fr.rhtml index b6f87757..333ae5c9 100644 --- a/app/views/mailer/document_add_fr.rhtml +++ b/app/views/mailer/document_add_fr.rhtml @@ -1,4 +1,4 @@ Un document a été ajouté à <%= @document.project.name %> (<%= @document.category.name %>): <%= l(:field_title) %>: <%= @document.title %> -http://<%= Setting.host_name %>/documents/show/<%= @document.id %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'documents', :action => 'show', :id => @document %> diff --git a/app/views/mailer/document_add_it.rhtml b/app/views/mailer/document_add_it.rhtml index 1d41a5f2..73b7632f 100644 --- a/app/views/mailer/document_add_it.rhtml +++ b/app/views/mailer/document_add_it.rhtml @@ -1,4 +1,4 @@ Un documento e' stato aggiunto a <%= @document.project.name %> (<%= @document.category.name %>): <%= l(:field_title) %>: <%= @document.title %> -http://<%= Setting.host_name %>/documents/show/<%= @document.id %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'documents', :action => 'show', :id => @document %> diff --git a/app/views/mailer/document_add_ja.rhtml b/app/views/mailer/document_add_ja.rhtml index 3834947b..3a883c65 100644 --- a/app/views/mailer/document_add_ja.rhtml +++ b/app/views/mailer/document_add_ja.rhtml @@ -1,4 +1,4 @@ 文書が <%= @document.project.name %> (<%= @document.category.name %>) に追加されました: <%= l(:field_title) %>: <%= @document.title %> -http://<%= Setting.host_name %>/documents/show/<%= @document.id %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'documents', :action => 'show', :id => @document %> diff --git a/app/views/mailer/document_add_nl.rhtml b/app/views/mailer/document_add_nl.rhtml index 91215e92..ff709158 100644 --- a/app/views/mailer/document_add_nl.rhtml +++ b/app/views/mailer/document_add_nl.rhtml @@ -1,4 +1,4 @@ Een document is toegevoegd aan <%= @document.project.name %> (<%= @document.category.name %>): <%= l(:field_title) %>: <%= @document.title %> -http://<%= Setting.host_name %>/documents/show/<%= @document.id %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'documents', :action => 'show', :id => @document %> diff --git a/app/views/mailer/document_add_pt-br.rhtml b/app/views/mailer/document_add_pt-br.rhtml index 3ea2f97b..00ee0bb9 100644 --- a/app/views/mailer/document_add_pt-br.rhtml +++ b/app/views/mailer/document_add_pt-br.rhtml @@ -1,4 +1,4 @@ Um documento foi adicionado no projeto <%= @document.project.name %> (<%= @document.category.name %>): <%= l(:field_title) %>: <%= @document.title %> -http://<%= Setting.host_name %>/documents/show/<%= @document.id %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'documents', :action => 'show', :id => @document %> diff --git a/app/views/mailer/document_add_pt.rhtml b/app/views/mailer/document_add_pt.rhtml index 3ea2f97b..00ee0bb9 100644 --- a/app/views/mailer/document_add_pt.rhtml +++ b/app/views/mailer/document_add_pt.rhtml @@ -1,4 +1,4 @@ Um documento foi adicionado no projeto <%= @document.project.name %> (<%= @document.category.name %>): <%= l(:field_title) %>: <%= @document.title %> -http://<%= Setting.host_name %>/documents/show/<%= @document.id %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'documents', :action => 'show', :id => @document %> diff --git a/app/views/mailer/document_add_sv.rhtml b/app/views/mailer/document_add_sv.rhtml index 367b8d04..2ca0c1ea 100644 --- a/app/views/mailer/document_add_sv.rhtml +++ b/app/views/mailer/document_add_sv.rhtml @@ -1,4 +1,4 @@ Ett dokument har lagts till i <%= @document.project.name %> (<%= @document.category.name %>): <%= l(:field_title) %>: <%= @document.title %> -http://<%= Setting.host_name %>/documents/show/<%= @document.id %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'documents', :action => 'show', :id => @document %> diff --git a/app/views/mailer/document_add_zh.rhtml b/app/views/mailer/document_add_zh.rhtml index d4fe9d10..f416892d 100644 --- a/app/views/mailer/document_add_zh.rhtml +++ b/app/views/mailer/document_add_zh.rhtml @@ -1,4 +1,4 @@ -һĵѱ뵽Ŀ <%= @document.project.name %> (<%= @document.category.name %>): +��һ���ĵ��ѱ����뵽��Ŀ�� <%= @document.project.name %> (<%= @document.category.name %>): <%= l(:field_title) %>: <%= @document.title %> -http://<%= Setting.host_name %>/documents/show/<%= @document.id %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'documents', :action => 'show', :id => @document %> diff --git a/app/views/mailer/issue_add_es.rhtml b/app/views/mailer/issue_add_es.rhtml deleted file mode 100644 index 823de2ce..00000000 --- a/app/views/mailer/issue_add_es.rhtml +++ /dev/null @@ -1,3 +0,0 @@ -Issue #<%= @issue.id %> has been reported. ----------------------------------------- -<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %> \ No newline at end of file diff --git a/app/views/mailer/issue_edit_es.rhtml b/app/views/mailer/issue_edit_es.rhtml deleted file mode 100644 index 7a9ca163..00000000 --- a/app/views/mailer/issue_edit_es.rhtml +++ /dev/null @@ -1,8 +0,0 @@ -Issue #<%= @issue.id %> has been updated. -<%= @journal.user.name %> -<% for detail in @journal.details %> -<%= show_detail(detail, true) %> -<% end %> -<%= @journal.notes if @journal.notes? %> ----------------------------------------- -<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %> \ No newline at end of file diff --git a/app/views/mailer/lost_password.rhtml b/app/views/mailer/lost_password.rhtml index 332ddeb0..430e14be 100644 --- a/app/views/mailer/lost_password.rhtml +++ b/app/views/mailer/lost_password.rhtml @@ -1,3 +1,3 @@ To change your password, use the following link: -http://<%= Setting.host_name %>/account/lost_password?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'lost_password', :token => @token.value %> diff --git a/app/views/mailer/lost_password_bg.rhtml b/app/views/mailer/lost_password_bg.rhtml index f415769f..b981f27e 100644 --- a/app/views/mailer/lost_password_bg.rhtml +++ b/app/views/mailer/lost_password_bg.rhtml @@ -1,3 +1,3 @@ За да смените паролата си, използвайте следния линк: -http://<%= Setting.host_name %>/account/lost_password?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'lost_password', :token => @token.value %> diff --git a/app/views/mailer/lost_password_de.rhtml b/app/views/mailer/lost_password_de.rhtml index 4e2517ab..1607e29a 100644 --- a/app/views/mailer/lost_password_de.rhtml +++ b/app/views/mailer/lost_password_de.rhtml @@ -1,3 +1,3 @@ Benutzen Sie folgenden Link, um das Password zu ändern: -http://<%= Setting.host_name %>/account/lost_password?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'lost_password', :token => @token.value %> diff --git a/app/views/mailer/lost_password_es.rhtml b/app/views/mailer/lost_password_es.rhtml deleted file mode 100644 index 332ddeb0..00000000 --- a/app/views/mailer/lost_password_es.rhtml +++ /dev/null @@ -1,3 +0,0 @@ -To change your password, use the following link: - -http://<%= Setting.host_name %>/account/lost_password?token=<%= @token.value %> \ No newline at end of file diff --git a/app/views/mailer/lost_password_fr.rhtml b/app/views/mailer/lost_password_fr.rhtml index 8282611e..944852b5 100644 --- a/app/views/mailer/lost_password_fr.rhtml +++ b/app/views/mailer/lost_password_fr.rhtml @@ -1,3 +1,3 @@ Pour changer votre mot de passe, utilisez le lien suivant: -http://<%= Setting.host_name %>/account/lost_password?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'lost_password', :token => @token.value %> diff --git a/app/views/mailer/lost_password_it.rhtml b/app/views/mailer/lost_password_it.rhtml index fc42e369..69814b01 100644 --- a/app/views/mailer/lost_password_it.rhtml +++ b/app/views/mailer/lost_password_it.rhtml @@ -1,3 +1,3 @@ Per cambiare la password, usate il seguente collegamento: -http://<%= Setting.host_name %>/account/lost_password?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'lost_password', :token => @token.value %> diff --git a/app/views/mailer/lost_password_ja.rhtml b/app/views/mailer/lost_password_ja.rhtml index 1f203e8d..3c7ddd1d 100644 --- a/app/views/mailer/lost_password_ja.rhtml +++ b/app/views/mailer/lost_password_ja.rhtml @@ -1,3 +1,3 @@ パスワードを変更するには、以下のリンクをたどってください: -http://<%= Setting.host_name %>/account/lost_password?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'lost_password', :token => @token.value %> diff --git a/app/views/mailer/lost_password_nl.rhtml b/app/views/mailer/lost_password_nl.rhtml index 758f540d..22b067c2 100644 --- a/app/views/mailer/lost_password_nl.rhtml +++ b/app/views/mailer/lost_password_nl.rhtml @@ -1,3 +1,3 @@ Gebruik de volgende link om Uw wachtwoord te wijzigen: -http://<%= Setting.host_name %>/account/lost_password?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'lost_password', :token => @token.value %> diff --git a/app/views/mailer/lost_password_pt-br.rhtml b/app/views/mailer/lost_password_pt-br.rhtml index 1c71d908..0cb1f7ff 100644 --- a/app/views/mailer/lost_password_pt-br.rhtml +++ b/app/views/mailer/lost_password_pt-br.rhtml @@ -1,3 +1,3 @@ Para mudar sua senha, clique no link abaixo: -http://<%= Setting.host_name %>/account/lost_password?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'lost_password', :token => @token.value %> diff --git a/app/views/mailer/lost_password_pt.rhtml b/app/views/mailer/lost_password_pt.rhtml index 1c71d908..0cb1f7ff 100644 --- a/app/views/mailer/lost_password_pt.rhtml +++ b/app/views/mailer/lost_password_pt.rhtml @@ -1,3 +1,3 @@ Para mudar sua senha, clique no link abaixo: -http://<%= Setting.host_name %>/account/lost_password?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'lost_password', :token => @token.value %> diff --git a/app/views/mailer/lost_password_sv.rhtml b/app/views/mailer/lost_password_sv.rhtml index ca7b21b7..1394e732 100644 --- a/app/views/mailer/lost_password_sv.rhtml +++ b/app/views/mailer/lost_password_sv.rhtml @@ -1,3 +1,3 @@ För att ändra lösenord, följ denna länk: -http://<%= Setting.host_name %>/account/lost_password?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'lost_password', :token => @token.value %> diff --git a/app/views/mailer/lost_password_zh.rhtml b/app/views/mailer/lost_password_zh.rhtml deleted file mode 100644 index c630f1ba..00000000 --- a/app/views/mailer/lost_password_zh.rhtml +++ /dev/null @@ -1,3 +0,0 @@ -ӸĿ - -http://<%= Setting.host_name %>/account/lost_password?token=<%= @token.value %> \ No newline at end of file diff --git a/app/views/mailer/register.rhtml b/app/views/mailer/register.rhtml index 64477feb..1c93098d 100644 --- a/app/views/mailer/register.rhtml +++ b/app/views/mailer/register.rhtml @@ -1,3 +1,3 @@ To activate your redMine account, use the following link: -http://<%= Setting.host_name %>/account/register?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'register', :token => @token.value %> diff --git a/app/views/mailer/register_bg.rhtml b/app/views/mailer/register_bg.rhtml index 79e7ed90..adf4f5aa 100644 --- a/app/views/mailer/register_bg.rhtml +++ b/app/views/mailer/register_bg.rhtml @@ -1,3 +1,3 @@ За да активирате акаунта си използвайте следния линк: -http://<%= Setting.host_name %>/account/register?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'register', :token => @token.value %> diff --git a/app/views/mailer/register_de.rhtml b/app/views/mailer/register_de.rhtml index a0c506ce..1d0452bb 100644 --- a/app/views/mailer/register_de.rhtml +++ b/app/views/mailer/register_de.rhtml @@ -1,3 +1,3 @@ Um Ihren Account zu aktivieren, benutzen Sie folgenden Link: -http://<%= Setting.host_name %>/account/register?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'register', :token => @token.value %> diff --git a/app/views/mailer/register_es.rhtml b/app/views/mailer/register_es.rhtml deleted file mode 100644 index 64477feb..00000000 --- a/app/views/mailer/register_es.rhtml +++ /dev/null @@ -1,3 +0,0 @@ -To activate your redMine account, use the following link: - -http://<%= Setting.host_name %>/account/register?token=<%= @token.value %> \ No newline at end of file diff --git a/app/views/mailer/register_fr.rhtml b/app/views/mailer/register_fr.rhtml index 2258480c..054df5d3 100644 --- a/app/views/mailer/register_fr.rhtml +++ b/app/views/mailer/register_fr.rhtml @@ -1,3 +1,3 @@ Pour activer votre compte sur redMine, utilisez le lien suivant: -http://<%= Setting.host_name %>/account/register?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'register', :token => @token.value %> diff --git a/app/views/mailer/register_it.rhtml b/app/views/mailer/register_it.rhtml index a1e035ac..d117a96e 100644 --- a/app/views/mailer/register_it.rhtml +++ b/app/views/mailer/register_it.rhtml @@ -1,3 +1,3 @@ Per attivare la vostra utenza redMine, usate il seguente collegamento: -http://<%= Setting.host_name %>/account/register?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'register', :token => @token.value %> diff --git a/app/views/mailer/register_ja.rhtml b/app/views/mailer/register_ja.rhtml index 2f5846fb..520d52fd 100644 --- a/app/views/mailer/register_ja.rhtml +++ b/app/views/mailer/register_ja.rhtml @@ -1,3 +1,3 @@ redMine アカウントをアクティブにするには、以下のリンクをたどってください: -http://<%= Setting.host_name %>/account/register?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'register', :token => @token.value %> diff --git a/app/views/mailer/register_nl.rhtml b/app/views/mailer/register_nl.rhtml index a8da4e7b..966ef601 100644 --- a/app/views/mailer/register_nl.rhtml +++ b/app/views/mailer/register_nl.rhtml @@ -1,3 +1,3 @@ Gebruik de volgende link om Uw redMine account te activeren: -http://<%= Setting.host_name %>/account/register?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'register', :token => @token.value %> diff --git a/app/views/mailer/register_pt-br.rhtml b/app/views/mailer/register_pt-br.rhtml index 6b7d4b1d..fcf3f02e 100644 --- a/app/views/mailer/register_pt-br.rhtml +++ b/app/views/mailer/register_pt-br.rhtml @@ -1,3 +1,3 @@ Para ativar sua conta do redMine, clique no link abaixo: -http://<%= Setting.host_name %>/account/register?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'register', :token => @token.value %> diff --git a/app/views/mailer/register_pt.rhtml b/app/views/mailer/register_pt.rhtml index 6b7d4b1d..fcf3f02e 100644 --- a/app/views/mailer/register_pt.rhtml +++ b/app/views/mailer/register_pt.rhtml @@ -1,3 +1,3 @@ Para ativar sua conta do redMine, clique no link abaixo: -http://<%= Setting.host_name %>/account/register?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'register', :token => @token.value %> diff --git a/app/views/mailer/register_sv.rhtml b/app/views/mailer/register_sv.rhtml index c7e6d46f..e7bdd227 100644 --- a/app/views/mailer/register_sv.rhtml +++ b/app/views/mailer/register_sv.rhtml @@ -1,3 +1,3 @@ -Fr att aktivera ditt redMine-konto, använd följande länk. +För att aktivera ditt redMine-konto, använd följande länk. -http://<%= Setting.host_name %>/account/register?token=<%= @token.value %> \ No newline at end of file +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'register', :token => @token.value %> diff --git a/app/views/mailer/register_zh.rhtml b/app/views/mailer/register_zh.rhtml deleted file mode 100644 index 0e6dd7f5..00000000 --- a/app/views/mailer/register_zh.rhtml +++ /dev/null @@ -1,3 +0,0 @@ -ӼredMine˺ - -http://<%= Setting.host_name %>/account/register?token=<%= @token.value %> \ No newline at end of file diff --git a/app/views/mailer/test.rhtml b/app/views/mailer/test.rhtml index 0e1629ba..deffa53e 100644 --- a/app/views/mailer/test.rhtml +++ b/app/views/mailer/test.rhtml @@ -1 +1,3 @@ This is a test email sent by Redmine. + +Redmine URL: <%= url_for :only_path => false, :host => Setting.host_name, :controller => 'welcome' %>