summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingtong Li <runassudo@yingtongli.me>2020-08-28 11:27:31 +1000
committerYingtong Li <runassudo@yingtongli.me>2020-08-28 11:33:58 +1000
commit4aef60b99b53ac764fb01f95e2178c4977b0489e (patch)
treeecf51b64e03d94f3748b2d77143a19ceb62edc86
parentb7d6d0c5d41a75c960f7242281e75f6d0cf802fe (diff)
Tweak formatting of comment emails
-rw-r--r--ssmain/jinja2/ssmain/email/base.html4
-rw-r--r--sstreasury/jinja2/sstreasury/email/budget_commented.md4
-rw-r--r--sstreasury/jinja2/sstreasury/email/claim_commented.md4
3 files changed, 6 insertions, 6 deletions
diff --git a/ssmain/jinja2/ssmain/email/base.html b/ssmain/jinja2/ssmain/email/base.html
index 7d57550..57f05c3 100644
--- a/ssmain/jinja2/ssmain/email/base.html
+++ b/ssmain/jinja2/ssmain/email/base.html
@@ -1091,6 +1091,10 @@
text-align: center;
}
+ .quote {
+ margin-left: 16px !important;
+ }
+
{% block css %}{% endblock %}
</style>
diff --git a/sstreasury/jinja2/sstreasury/email/budget_commented.md b/sstreasury/jinja2/sstreasury/email/budget_commented.md
index d4b790c..727e3e5 100644
--- a/sstreasury/jinja2/sstreasury/email/budget_commented.md
+++ b/sstreasury/jinja2/sstreasury/email/budget_commented.md
@@ -1,7 +1,5 @@
{{ comment.author.first_name }} {{ comment.author.last_name }} made a new comment on the budget *{{ revision.name }}* (BU-{{ revision.budget.id }}):
-```
-{{ comment.content }}
-```
+{% if format == 'markdown' %}<div class="quote">{{ comment.content|markdown }}</div>{% else %}{{ comment.content }}{% endif %}
{{ baseurl }}{{ url('budget_view', kwargs={'id': revision.budget.id}) }}
diff --git a/sstreasury/jinja2/sstreasury/email/claim_commented.md b/sstreasury/jinja2/sstreasury/email/claim_commented.md
index 11da25c..d5a7490 100644
--- a/sstreasury/jinja2/sstreasury/email/claim_commented.md
+++ b/sstreasury/jinja2/sstreasury/email/claim_commented.md
@@ -1,7 +1,5 @@
{{ comment.author.first_name }} {{ comment.author.last_name }} made a new comment on the reimbursement claim *{{ claim.purpose }}* (RE-{{ claim.id }}):
-```
-{{ comment.content }}
-```
+{% if format == 'markdown' %}<div class="quote">{{ comment.content|markdown }}</div>{% else %}{{ comment.content }}{% endif %}
{{ baseurl }}{{ url('claim_view', kwargs={'id': claim.id}) }}
Contact (issues, pull requests, etc.) at git@yingtongli.me. Generated by cgit.