summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingtong Li <runassudo@yingtongli.me>2020-02-27 19:27:05 +1100
committerYingtong Li <runassudo@yingtongli.me>2020-02-27 19:27:05 +1100
commit0dc5923429f768668a9578e4d2bb1f0a247ab07b (patch)
tree0231a8f1a089d78ef4d709a55dafd840f42c0bdd
parent17637a4cfd70e2093f906b40269d610a870bbe9c (diff)
Display budget comments, etc. as Markdown
-rw-r--r--sstreasury/jinja2/sstreasury/budget_print.html8
-rw-r--r--sstreasury/jinja2/sstreasury/budget_view.html8
2 files changed, 8 insertions, 8 deletions
diff --git a/sstreasury/jinja2/sstreasury/budget_print.html b/sstreasury/jinja2/sstreasury/budget_print.html
index 02856ac..60c370a 100644
--- a/sstreasury/jinja2/sstreasury/budget_print.html
+++ b/sstreasury/jinja2/sstreasury/budget_print.html
@@ -2,7 +2,7 @@
{#
Society Self-Service
- Copyright © 2018-2019 Yingtong Li (RunasSudo)
+ Copyright © 2018–2020 Yingtong Li (RunasSudo)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
@@ -74,7 +74,7 @@
</tr>
<tr>
<td>Comments</td>
- <td>{{ revision.comments }}</td>
+ <td>{{ revision.comments|markdown }}</td>
</tr>
<tr>
<td>Revenue</td>
@@ -87,7 +87,7 @@
Revenue comments
</div>
<div class="active content">
- {{ revision.revenue_comments }}
+ {{ revision.revenue_comments|markdown }}
</div>
</div>
{% endif %}
@@ -107,7 +107,7 @@
Expense comments
</div>
<div class="active content">
- {{ revision.expense_comments }}
+ {{ revision.expense_comments|markdown }}
</div>
</div>
{% endif %}
diff --git a/sstreasury/jinja2/sstreasury/budget_view.html b/sstreasury/jinja2/sstreasury/budget_view.html
index 10bb149..707f834 100644
--- a/sstreasury/jinja2/sstreasury/budget_view.html
+++ b/sstreasury/jinja2/sstreasury/budget_view.html
@@ -2,7 +2,7 @@
{#
Society Self-Service
- Copyright © 2018-2019 Yingtong Li (RunasSudo)
+ Copyright © 2018–2020 Yingtong Li (RunasSudo)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
@@ -110,7 +110,7 @@
</tr>
<tr>
<td>Comments</td>
- <td>{{ revision.comments }}</td>
+ <td>{{ revision.comments|markdown }}</td>
</tr>
<tr>
<td>Revenue</td>
@@ -123,7 +123,7 @@
Revenue comments
</div>
<div class="active content">
- {{ revision.revenue_comments }}
+ {{ revision.revenue_comments|markdown }}
</div>
</div>
{% endif %}
@@ -143,7 +143,7 @@
Expense comments
</div>
<div class="active content">
- {{ revision.expense_comments }}
+ {{ revision.expense_comments|markdown }}
</div>
</div>
{% endif %}
Contact (issues, pull requests, etc.) at git@yingtongli.me. Generated by cgit.