-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
390 additions
and
89 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
app/mailers/activity_lines/corporative/confession_mailer.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
class ActivityLines::Corporative::ConfessionMailer < ApplicationMailer | ||
default template_path: "mailers/#{self.name.underscore}" | ||
|
||
def create(confession, user) | ||
@user = user | ||
@confession = confession | ||
@subject = subject(confession.class, :create) | ||
mail from: sender_name, to: user.email, subject: @subject | ||
end | ||
|
||
def confirm(confession, user) | ||
@user = user | ||
@confession = confession | ||
@subject = subject(confession.class, :confirm) | ||
mail from: sender_name, to: user.email, subject: @subject | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
140 changes: 140 additions & 0 deletions
140
app/views/mailers/activity_lines/corporative/confession_mailer/confirm.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
!!! | ||
%html | ||
%head | ||
%meta{ content: "text/html; charset=utf-8", "http-equiv" => "Content-Type" }/ | ||
%meta{ content: "width=device-width, initial-scale=1.0", name: "viewport" }/ | ||
%title Minty-Multipurpose Responsive Email Template | ||
:css | ||
/* Client-specific Styles */ | ||
#outlook a { padding:0; } /* Force Outlook to provide a "view in browser" menu link. */ | ||
body{ width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0; } | ||
/* Prevent Webkit and Windows Mobile platforms from changing default font sizes, while not breaking desktop design. */ | ||
.ExternalClass { width:100%; } /* Force Hotmail to display emails at full width */ | ||
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div { line-height: 100%; } /* Force Hotmail to display normal line spacing. More on that: http://www.emailonacid.com/forum/viewthread/43/ */ | ||
#backgroundTable { margin:0; padding:0; width:100% !important; line-height: 100% !important; } | ||
img { outline:none; text-decoration:none;border:none; -ms-interpolation-mode: bicubic; } | ||
a img { border:none; } | ||
.image_fix { display:block; } | ||
p { margin: 0px 0px !important; } | ||
table td { border-collapse: collapse; } | ||
table { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; } | ||
a { /*color: #e95353;*/ text-underline:none!important; text-decoration: none;text-decoration:none!important; } | ||
/*STYLES*/ | ||
table[class=full] { width: 100%; clear: both; } | ||
/*################################################*/ | ||
/*IPAD STYLES*/ | ||
/*################################################*/ | ||
@media only screen and (max-width: 640px) { | ||
a[href^="tel"], a[href^="sms"] { | ||
text-decoration: none; | ||
color: #ffffff; /* or whatever your want */ | ||
pointer-events: none; | ||
cursor: default; | ||
} | ||
.mobile_link a[href^="tel"], .mobile_link a[href^="sms"] { | ||
text-decoration: default; | ||
color: #ffffff !important; | ||
pointer-events: auto; | ||
cursor: default; | ||
} | ||
table[class=devicewidth] { width: 440px!important;text-align:center!important; } | ||
table[class=devicewidthinner] { width: 420px!important;text-align:center!important; } | ||
table[class="sthide"]{ display: none!important; } | ||
img[class="bigimage"]{ width: 420px!important;height:219px!important; } | ||
img[class="col2img"]{ width: 420px!important;height:258px!important; } | ||
img[class="image-banner"]{ width: 440px!important;height:106px!important; } | ||
td[class="menu"]{ text-align:center !important; padding: 0 0 10px 0 !important; } | ||
td[class="logo"]{ padding:10px 0 5px 0!important;margin: 0 auto !important; } | ||
img[class="logo"]{ padding:0!important;margin: 0 auto !important; } | ||
} | ||
/*##############################################*/ | ||
/*IPHONE STYLES*/ | ||
/*##############################################*/ | ||
@media only screen and (max-width: 480px) { | ||
a[href^="tel"], a[href^="sms"] { | ||
text-decoration: none; | ||
color: #ffffff; /* or whatever your want */ | ||
pointer-events: none; | ||
cursor: default; | ||
} | ||
.mobile_link a[href^="tel"], .mobile_link a[href^="sms"] { | ||
text-decoration: default; | ||
color: #ffffff !important; | ||
pointer-events: auto; | ||
cursor: default; | ||
} | ||
table[class=devicewidth] { width: 280px!important;text-align:center!important; } | ||
table[class=devicewidthinner] { width: 260px!important;text-align:center!important; } | ||
table[class="sthide"]{ display: none!important; } | ||
img[class="bigimage"]{ width: 260px!important;height:136px!important; } | ||
img[class="col2img"]{ width: 260px!important;height:160px!important; } | ||
img[class="image-banner"]{ width: 280px!important;height:68px!important; } | ||
} | ||
%body | ||
- 20.times do | ||
%p | ||
%table{ bgcolor: "#f6f4f5", border: "0", cellpadding: "0", cellspacing: "0", width: "100%" } | ||
%tbody | ||
%tr | ||
%td | ||
.innerbg | ||
%table.devicewidth{ align: "center", bgcolor: "#ffffff", border: "0", cellpadding: "0", cellspacing: "0", width: "580" } | ||
%tbody | ||
%tr | ||
%td{ height: "20", width: "100%" } | ||
%tr | ||
%td | ||
%table.devicewidthinner{ align: "center", border: "0", cellpadding: "0", cellspacing: "0", width: "540" } | ||
%tbody | ||
%tr | ||
%td{ align: "center" } | ||
.imgpop | ||
.uploader_wrap{ style: "width: 540px; opacity: 0;" } | ||
.upload_buttons | ||
.img_link | ||
.img_upload | ||
.img_edit{ style: "visibility: visible;" } | ||
%a{ href: "#" } | ||
%img{ src: 'https://ulmic.ru/assets/mailers/confession/confirm.jpg', alt: '', border: '0', height: 'auto', style: 'display:block; border:none; outline:none; text-decoration:none;', width: '540' } | ||
%tr | ||
%td{ height: "20", width: "100%" } | ||
%tr | ||
%td{ style: "font-family: Helvetica, arial, sans-serif; font-size: 18px; color: #333333; text-align:left;line-height: 20px;" } | ||
%p | ||
Твоё ходатайство опубликовано | ||
%tr | ||
%td{ height: "20", width: "100%" } | ||
%tr | ||
%td{ style: "font-family: Helvetica, arial, sans-serif; font-size: 13px; color: #333333; text-align:left;line-height: 24px;" } | ||
%p | ||
Ранее Ты выдвинул на Премию "Признание" | ||
= @confession.member.decorate.short_name | ||
в номинации | ||
= enumerize_locales_value @confession, :nomination | ||
%p | ||
Сообщаем тебе, что Твоё ходатайство принято руководителями МИЦ и Твой кандидат выдвинут на голосование за номинантов Премии "Признание". Голование начнётся | ||
=l configus.dates.activity_lines.corporative.confession.begining_voting, format: '%d %M' | ||
%p | ||
Голосование будет проводиться на | ||
= link_to ' сайте МИЦ.', activity_lines_corporative_petitions_path | ||
%p | ||
Следи за новостями, Твой МИЦ! | ||
|
||
%tr | ||
%td{ height: "10", width: "100%" } | ||
%tr | ||
%td | ||
.buttonbg | ||
%table.tablet-button{ align: "left", bgcolor: "#ffa600", border: "0", cellpadding: "0", cellspacing: "0", height: "30", style: "border-radius: 4px; font-size: 13px; font-family: Helvetica, arial, sans-serif; text-align: center; color: rgb(255, 255, 255); font-weight: 300; padding-left: 18px; padding-right: 18px; background-color: rgb(255, 166, 0); background-clip: padding-box;", valign: "middle" } | ||
%tbody | ||
%tr | ||
%td{ align: "center", height: "30", style: "padding-left:18px; padding-right:18px;font-family:Helvetica, arial, sans-serif; text-align:center; color:#ffffff; font-weight: 300;", valign: "middle", width: "auto" } | ||
%p{ align: "center" } | ||
%span{ style: "color: rgb(255, 255, 255); font-weight: 300; font-size: 20pt;" } | ||
%a{ href: activity_lines_corporative_petitions_path, style: "color: #ffffff; text-align:center;text-decoration: none;", tabindex: "-1" }= t('helpers.more_info') | ||
%tr | ||
%td{ height: "20", width: "100%" } |
9 changes: 9 additions & 0 deletions
9
app/views/mailers/activity_lines/corporative/confession_mailer/create.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
%p | ||
Привет, | ||
= @user.first_name | ||
\, довожу до Твоего сведения, что на сайте добавлено ходатайство на премию "Признание" на | ||
= @сonfession.member.decorate.short_name | ||
прошу провести ревью этого ходатайства и опубликовать его. | ||
%p | ||
%b | ||
Спасибо! Твой МИЦ. |
Oops, something went wrong.