render messages as markdown
This commit is contained in:
parent
0a1ac95ef4
commit
65de4ed8d1
|
@ -1,8 +1,10 @@
|
|||
{% load proposals_tags %}
|
||||
|
||||
<div class="panel panel-{% block panelstyleblock %}default{% endblock %}">
|
||||
<div class="panel-heading">
|
||||
{{ message.created }} | <a href="{% url 'show-speaker' message.author.username %}">{{ message.author.profile }}</a>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{{ message.content|linebreaksbr }}
|
||||
{% markdown message.content %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{ content|linebreaksbr }}
|
||||
{% load proposals_tags %}{% markdown content %}
|
||||
|
||||
<hr>
|
||||
{% if answering %}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
Hi!<br />
|
||||
{% load proposals_tags %}Hi!<br />
|
||||
<br />
|
||||
A <a href="https://{{ uri }}">new {{ talk.event }}</a> has been proposed by <a href="https://{{ proposer_uri }}">{{ proposer.profile }}</a>!<br />
|
||||
<br />
|
||||
Title: {{ talk.title }}<br />
|
||||
<br />
|
||||
Description:<br />
|
||||
<p>{{ talk.description|linebreaksbr }}</p>
|
||||
<p>{% markdown talk.description %}</p>
|
||||
{% if answering %}
|
||||
<hr>
|
||||
Reply to this email directly to comment this talk.{% endif %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user