links on message page (back to list, reply, forward)

This commit is contained in:
Eugene Korbut 2009-02-08 06:06:12 +10:00
parent a997c9d97a
commit 9c9ccc429d
4 changed files with 11 additions and 10 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ config/database.yml
.*.sw?
config/site.rb
tmp
mail_temp

View file

@ -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

View file

@ -30,7 +30,7 @@
<div id="topmenu">
<ul class="actionmenu">
<li>
<%= link_to(_("&#171; Back to list"), :controller=>"/webmail/webmail", :action=>"messages") %>
<%= link_to(_("&#171; Back to list"), :controller=>"webmail", :action=>"messages") %>
</li>
<li><%=link_reply_to_sender(@msg_id)%></li>
<li><%=link_forward_message(@msg_id)%></li>

View file

@ -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 = ""