Add a link to user profile in comments
And move back {% if %} inside of {% block %}, so they get interpreted.
This commit is contained in:
@@ -8,13 +8,13 @@
|
||||
<a href="../">{{ blog.title }}</a>
|
||||
{% endblock header %}
|
||||
|
||||
{% if author.display_name %}
|
||||
{% set name = author.display_name %}
|
||||
{% else %}
|
||||
{% set name = author.username %}
|
||||
{% endif %}
|
||||
|
||||
{% block content %}
|
||||
{% if author.display_name %}
|
||||
{% set name = author.display_name %}
|
||||
{% else %}
|
||||
{% set name = author.username %}
|
||||
{% endif %}
|
||||
|
||||
<p>
|
||||
<b>Written by <a href="/@/{{ author.fqn }}/">{{ name }}</a></b>
|
||||
—
|
||||
@@ -61,7 +61,7 @@
|
||||
{% set comment_author_name = comment.author.username %}
|
||||
{% endif %}
|
||||
<div class="card" id="comment-{{ comment.id }}">
|
||||
<b>{{ comment_author_name }}</b>
|
||||
<a href="/@/{{ comment.author.fqn }}/"><b>{{ comment_author_name }}</b></a>
|
||||
<div>{{ comment.content | safe }}</div>
|
||||
<a href="comment?responding_to={{ comment.id }}">Respond</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user