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