Skip to content

Commit

Permalink
fix:contact_mail
Browse files Browse the repository at this point in the history
  • Loading branch information
wisdom-plus committed May 19, 2024
1 parent 1cfc19d commit cf22636
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 36 deletions.
31 changes: 16 additions & 15 deletions rails/app/views/contact_mailer/contact_mail.html.slim
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
h2
|お問い合わせ内容

h2
|------------------------------------------
p
|name: #{@contact.name}
p
|email: #{@contact.email}

p
|content:
=simple_format(h(@contact.content))
h2
|------------------------------------------
.email-container
.header
img src="/coffeeoma-logo-black.png" alt="Coffee-oma logo"
.content
h2
| お問い合わせを受け付けました
p
| name: #{@contact.name}
p
| email: #{@contact.email}
p
| content:
=simple_format(h(@contact.content))
.footer
p
|Coffee-oma Team
41 changes: 22 additions & 19 deletions rails/app/views/contact_mailer/reply_mail.html.slim
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
h3
|※このメールはシステムによる自動送信です。このメールに直接返信することはできません。
p
|Coffee-omaをにお問い合わせありがとうございます。
p
|下記の内容でメッセージを受け付けました。

h3
|=====お問い合わせ内容=====
p
|お名前: #{@contact.name}
p
|メールアドレス: #{@contact.email}
p
|お問い合わせ内容:
=simple_format(h(@contact.content))
h3
|==================

.email-container
.header
img src="/coffeeoma-logo-black.png" alt="Coffee-oma logo"
.content
h2
| Coffee-omaへのお問い合わせを受け付けました
p
|=====お問い合わせ内容=====
p
|お名前: #{@contact.name}
p
|メールアドレス: #{@contact.email}
p
|お問い合わせ内容:
=simple_format(h(@contact.content))
p
|==================
.footer
p
|Coffee-oma Team
p
|※このメールはシステムによる自動送信です。このメールに直接返信することはできません。
6 changes: 4 additions & 2 deletions rails/app/views/layouts/mailer.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ doctype html
html
head
meta[http-equiv="Content-Type" content="text/html; charset=utf-8"]
style
| /* Email styles need to be inline */
= stylesheet_link_tag '/static/css/normalize.css', media: 'all'
= stylesheet_link_tag '/static/css/extra.css', media: 'all'
= stylesheet_link_tag '/static/css/outlook.css', media: 'all'
= stylesheet_link_tag '/static/css/mailer.css', media: 'all'
body
= yield

0 comments on commit cf22636

Please sign in to comment.