small msg changes
This commit is contained in:
parent
0a7cac8ee3
commit
3b131fe6eb
|
@ -2,7 +2,7 @@ class EmailEntry
|
|||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
include OrbitCategory::Categorizable
|
||||
|
||||
|
||||
field :mail_subject #not optional
|
||||
field :mail_content #not optional
|
||||
field :create_user_id
|
||||
|
@ -31,11 +31,11 @@ class EmailEntry
|
|||
status = ""
|
||||
t = self.email_sentdate.nil? ? self.created_at : self.email_sentdate
|
||||
if self.approved && t < Time.now
|
||||
status = "Sent"
|
||||
status = "Delivered"
|
||||
elsif !self.approved
|
||||
status = "Waiting for approval"
|
||||
elsif self.approved && t > Time.now
|
||||
status = "Mail ready to be send"
|
||||
status = "Scheduled for delivery"
|
||||
elsif self.approved && t == Time.now
|
||||
status = "Sending"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue