small msg changes
This commit is contained in:
parent
0a7cac8ee3
commit
3b131fe6eb
|
@ -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