diff options
author | Go MAEDA <maeda@farend.jp> | 2020-08-21 08:32:15 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-08-21 08:32:15 +0000 |
commit | 4edba4fa9d830412f90176dd2babbc282959f94c (patch) | |
tree | ac3a6e4c198467ca22a563d5fc9066899baaa055 /app/views | |
parent | ab0dd3a52a60d9c03fdbbaca8373636b0dc93922 (diff) | |
download | redmine-4edba4fa9d830412f90176dd2babbc282959f94c.tar.gz redmine-4edba4fa9d830412f90176dd2babbc282959f94c.zip |
Show open/closed badge in email notifications (#33834).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19982 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/layouts/mailer.html.erb | 20 | ||||
-rw-r--r-- | app/views/mailer/_issue.html.erb | 5 |
2 files changed, 24 insertions, 1 deletions
diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb index f6a457ef9..fff36c0cb 100644 --- a/app/views/layouts/mailer.html.erb +++ b/app/views/layouts/mailer.html.erb @@ -47,6 +47,26 @@ table, td, th { border: 1px solid #bbb; padding: 4px; } +.badge { + position:relative; + font-weight:bold; + font-size: 10px; + bottom: 2px; + padding: 1px 3px; + margin-right: 2px; + margin-left: 2px; + border-radius: 2px; + text-transform: uppercase; + text-decoration: none; +} +.badge-status-open { + color: #205D86; + border: 1px solid #205D86; +} +.badge-status-closed { + color: #1D781D; + border: 1px solid #1D781D; +} </style> </head> <body> diff --git a/app/views/mailer/_issue.html.erb b/app/views/mailer/_issue.html.erb index 58287c658..b46218445 100644 --- a/app/views/mailer/_issue.html.erb +++ b/app/views/mailer/_issue.html.erb @@ -1,4 +1,7 @@ -<h1><%= link_to("#{issue.tracker.name} ##{issue.id}: #{issue.subject}", issue_url) %></h1> +<h1> + <%= link_to("#{issue.tracker.name} ##{issue.id}: #{issue.subject}", issue_url) %> + <%= issue_status_type_badge(issue.status) %> +</h1> <%= render_email_issue_attributes(issue, user, true) %> |