diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-06-12 10:37:07 +0200 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-06-13 22:36:45 +0200 |
commit | cdcf461e04a0fadccbafc6134993a78ae6468dfd (patch) | |
tree | b1c00a5585a154a332925ae592e368039ab26c0e /app | |
parent | 16f64dfe8c2b86c2f15770fa1a0bc0bcc9fbba19 (diff) | |
download | gitlab-ce-cdcf461e04a0fadccbafc6134993a78ae6468dfd.tar.gz |
gitlab.com contrib footer only for devise mails
Diffstat (limited to 'app')
-rw-r--r-- | app/views/layouts/_mailer.html.haml | 16 | ||||
-rw-r--r-- | app/views/layouts/mailer/devise.html.haml | 17 |
2 files changed, 18 insertions, 15 deletions
diff --git a/app/views/layouts/_mailer.html.haml b/app/views/layouts/_mailer.html.haml index 3a227652e4e..983ed22a506 100644 --- a/app/views/layouts/_mailer.html.haml +++ b/app/views/layouts/_mailer.html.haml @@ -71,18 +71,4 @@ = succeed "." do %a{ href: root_url, style: "color:#3777b0;text-decoration:none;" }= Gitlab.config.gitlab.host - - if Gitlab.com? - %tr - %td{ style: "font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:1.6;color:#5c5c5c;" } - %div - Everyone can contribute - %div - = link_to 'Blog', 'https://about.gitlab.com/blog/', style: "color:#3777b0;text-decoration:none;" - · - = link_to 'Twitter', 'https://twitter.com/gitlab', style: "color:#3777b0;text-decoration:none;" - · - = link_to 'Facebook', 'https://www.facebook.com/gitlab/', style: "color:#3777b0;text-decoration:none;" - · - = link_to 'YouTube', 'https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg', style: "color:#3777b0;text-decoration:none;" - · - = link_to 'LinkedIn', 'https://www.linkedin.com/company/gitlab-com', style: "color:#3777b0;text-decoration:none;" + = yield :additional_footer diff --git a/app/views/layouts/mailer/devise.html.haml b/app/views/layouts/mailer/devise.html.haml index 7ff2eed3fa2..054b2c2fa26 100644 --- a/app/views/layouts/mailer/devise.html.haml +++ b/app/views/layouts/mailer/devise.html.haml @@ -1,3 +1,20 @@ +- if Gitlab.com? + - content_for :additional_footer do + %tr + %td{ style: "font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:1.6;color:#5c5c5c;" } + %div + Everyone can contribute + %div + = link_to 'Blog', 'https://about.gitlab.com/blog/', style: "color:#3777b0;text-decoration:none;" + · + = link_to 'Twitter', 'https://twitter.com/gitlab', style: "color:#3777b0;text-decoration:none;" + · + = link_to 'Facebook', 'https://www.facebook.com/gitlab/', style: "color:#3777b0;text-decoration:none;" + · + = link_to 'YouTube', 'https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg', style: "color:#3777b0;text-decoration:none;" + · + = link_to 'LinkedIn', 'https://www.linkedin.com/company/gitlab-com', style: "color:#3777b0;text-decoration:none;" + = render layout: 'layouts/mailer' do %tr %td{ style: "font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;color:#333333;font-size:15px;font-weight:400;line-height:1.4;padding:15px 5px;text-align:center;" } |