Send notifiation on create UserProject relation (access granted)
This commit is contained in:
parent
2c32574ac3
commit
aaeb37419a
6 changed files with 78 additions and 0 deletions
14
app/views/notify/project_access_granted_email.html.haml
Normal file
14
app/views/notify/project_access_granted_email.html.haml
Normal file
|
@ -0,0 +1,14 @@
|
|||
%td.content{align: "left", style: "font-family: Helvetica, Arial, sans-serif; padding: 20px 0 0;", valign: "top", width: "600"}
|
||||
%table{border: "0", cellpadding: "0", cellspacing: "0", style: "color: #717171; font: normal 11px Helvetica, Arial, sans-serif; margin: 0; padding: 0;", width: "600"}
|
||||
%tr
|
||||
%td{style: "font-size: 1px; line-height: 1px;", width: "21"}
|
||||
%td{align: "left", style: "padding: 20px 0 0;"}
|
||||
%h2{style: "color:#646464; font-weight: bold; margin: 0; padding: 0; line-height: 26px; font-size: 18px; font-family: Helvetica, Arial, sans-serif; "}
|
||||
= "You got granted #{@users_project.project_access_human} access to project"
|
||||
%td{style: "font-size: 1px; line-height: 1px;", width: "21"}
|
||||
%tr
|
||||
%td{style: "font-size: 1px; line-height: 1px;", width: "21"}
|
||||
%td{align: "left", style: "padding: 20px 0 0;"}
|
||||
%h2{style: "color:#646464 !important; font-weight: bold; margin: 0; padding: 0; line-height: 26px; font-size: 18px; font-family: Helvetica, Arial, sans-serif; "}
|
||||
= link_to_gfm truncate(@project.name, length: 45), project_url(@project), title: @project.name
|
||||
%br
|
Loading…
Add table
Add a link
Reference in a new issue