links on message page (back to list, reply, forward)
This commit is contained in:
parent
a997c9d97a
commit
9c9ccc429d
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ config/database.yml
|
|||
.*.sw?
|
||||
config/site.rb
|
||||
tmp
|
||||
mail_temp
|
||||
|
|
|
@ -124,7 +124,7 @@ class WebmailController < ApplicationController
|
|||
@mail = prepare_mail
|
||||
@mail.reply(@tmail, fb, get_mail_prefs.mail_type)
|
||||
|
||||
render_action("compose")
|
||||
render :action => 'compose'
|
||||
end
|
||||
|
||||
def forward
|
||||
|
@ -136,7 +136,7 @@ class WebmailController < ApplicationController
|
|||
@mail = prepare_mail
|
||||
@mail.forward(@tmail, fb)
|
||||
|
||||
render_action("compose")
|
||||
render :action => 'compose'
|
||||
end
|
||||
|
||||
def compose
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<div id="topmenu">
|
||||
<ul class="actionmenu">
|
||||
<li>
|
||||
<%= link_to(_("« Back to list"), :controller=>"/webmail/webmail", :action=>"messages") %>
|
||||
<%= link_to(_("« Back to list"), :controller=>"webmail", :action=>"messages") %>
|
||||
</li>
|
||||
<li><%=link_reply_to_sender(@msg_id)%></li>
|
||||
<li><%=link_forward_message(@msg_id)%></li>
|
||||
|
|
|
@ -141,8 +141,8 @@ class CDF::Mail
|
|||
|
||||
def reply(tmail, fb, type)
|
||||
decoded_subject = mime_encoded?(tmail.subject) ? mime_decode(tmail.subject) : tmail.subject
|
||||
self.subject = "[Re: #{decoded_subject}]"
|
||||
tm = tmail.setup_reply(tmail)
|
||||
self.subject = "Re: #{decoded_subject}"
|
||||
tm = tmail.create_reply
|
||||
self.to = tm.to
|
||||
footer = ""
|
||||
msg_id = ""
|
||||
|
|
Loading…
Reference in a new issue