Nicolae Claudius
13 years ago
5 changed files with 62 additions and 0 deletions
@ -0,0 +1,20 @@
|
||||
class PermissionMailer < ActionMailer::Base |
||||
layout "emails" |
||||
default from: Settings.support_mail |
||||
|
||||
def created(permission) |
||||
@permission = permission |
||||
mail( |
||||
:to => permission.user.email, |
||||
:subject => "#{permission.domain.name} was shared with you to administer" |
||||
) |
||||
end |
||||
|
||||
def destroyed(permission) |
||||
@permission = permission |
||||
mail( |
||||
:to => permission.user.email, |
||||
:subject => "#{permission.domain.name} is no longer shared with you" |
||||
) |
||||
end |
||||
end |
@ -0,0 +1,13 @@
|
||||
<p> |
||||
<%= @permission.domain.name %> was shared with you to administer by |
||||
<%= @permission.domain.user.name %>. |
||||
</p> |
||||
|
||||
<p> |
||||
<%= link_to 'Manage domains', domains_url %> |
||||
</p> |
||||
|
||||
<p> |
||||
If you cannot see the link copy and paste the following address in your browser address bar:<br /> |
||||
<%= domains_url %> |
||||
</p> |
@ -0,0 +1,12 @@
|
||||
<p> |
||||
<%= @permission.domain.name %> is no longer shared with you. |
||||
</p> |
||||
|
||||
<p> |
||||
<%= link_to 'Manage domains', domains_url %> |
||||
</p> |
||||
|
||||
<p> |
||||
If you cannot see the link copy and paste the following address in your browser address bar:<br /> |
||||
<%= domains_url %> |
||||
</p> |
Loading…
Reference in new issue