mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00

* feat(notif): issue notifications * refactor: dedupe test notification strings * fix: webhook key parsing * fix(notif): skip send for admin who requested on behalf of another user * fix(notif): send comment notifs to admins when other admins reply * fix(notif): also send resolved notifs to admins, and reopened notifs to issue creator * fix: don't send duplicate notifications * fix(lang): tweak notification description strings * fix(notif): tweak Slack notification styling * fix(notif): tweak Pushbullet & Telegram notification styling * docs: reformat webhooks page * fix(notif): add missing issue_type & issue_status variables to LunaSea notif payloads * fix: explicitly attach media & issue objects where applicable * fix(notif): correctly notify both notifyUser and managers where applicable * fix: update default webhook payload for new installs * fix(notif): add missing comment_message to LunaSea notif payload * refactor(sw): simplify notificationclick event listener logic * fix(notif): add missing event description for MEDIA_AVAILABLE notifications
54 lines
2.3 KiB
Plaintext
54 lines
2.3 KiB
Plaintext
doctype html
|
|
head
|
|
meta(charset='utf-8')
|
|
meta(name='x-apple-disable-message-reformatting')
|
|
meta(http-equiv='x-ua-compatible' content='ie=edge')
|
|
meta(name='viewport' content='width=device-width, initial-scale=1')
|
|
meta(name='format-detection' content='telephone=no, date=no, address=no, email=no')
|
|
link(href='https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap' rel='stylesheet' media='screen')
|
|
style.
|
|
.title:hover * {
|
|
text-decoration: underline;
|
|
}
|
|
@media only screen and (max-width:600px) {
|
|
table {
|
|
font-size: 20px !important;
|
|
width: 100% !important;
|
|
}
|
|
}
|
|
div(style='display: block; background-color: #111827; padding: 2.5rem 0;')
|
|
table(style='margin: 0 auto; font-family: Inter, Arial, sans-serif; color: #fff; font-size: 16px; width: 26rem;')
|
|
tr
|
|
td(style="text-align: center;")
|
|
if applicationUrl
|
|
a(href=applicationUrl style='margin: 0 1rem;')
|
|
img(src=applicationUrl +'/logo_full.png' style='width: 26rem; image-rendering: crisp-edges; image-rendering: -webkit-optimize-contrast;')
|
|
else
|
|
div(style='margin: 0 1rem 2.5rem; font-size: 3em; font-weight: 700;')
|
|
| #{applicationTitle}
|
|
if recipientName !== recipientEmail
|
|
tr
|
|
td(style='text-align: center;')
|
|
div(style='margin: 1rem 0 0; font-size: 1.25em;')
|
|
| Hi, #{recipientName.replace(/\.|@/g, ((x) => x + '\ufeff'))}!
|
|
tr
|
|
td(style='text-align: center;')
|
|
div(style='margin: 1rem 0 0; font-size: 1.25em;')
|
|
| #{body}
|
|
if issueComment
|
|
tr
|
|
td(style='text-align: center;')
|
|
div(style='margin: 1rem 0 0; font-size: 1.25em;')
|
|
| #{issueComment}
|
|
else if issueDescription
|
|
tr
|
|
td(style='text-align: center;')
|
|
div(style='margin: 1rem 0 0; font-size: 1.25em;')
|
|
| #{issueDescription}
|
|
if actionUrl
|
|
tr
|
|
td
|
|
a(href=actionUrl style='display: block; margin: 1.5rem 3rem 0; text-decoration: none; font-size: 1.0em; line-height: 2.25em;')
|
|
span(style='padding: 0.2rem; font-weight: 500; text-align: center; border-radius: 10px; background-color: rgb(99,102,241); color: #fff; display: block; border: 1px solid rgba(255,255,255,0.2);')
|
|
| View Issue in #{applicationTitle}
|