Add a link to user profile in comments
And move back {% if %} inside of {% block %}, so they get interpreted.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
{% extends "base" %}
|
||||
{% import "macros" as macros %}
|
||||
|
||||
{% block title %}
|
||||
{% if user.display_name %}
|
||||
{% set name = user.display_name %}
|
||||
{% else %}
|
||||
{% set name = user.username %}
|
||||
{% endif %}
|
||||
|
||||
{% block title %}
|
||||
{{ name }}
|
||||
{% endblock title %}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<a href="followers">{{ n_followers }} follower{{ n_followers | pluralize }}</a>
|
||||
<a href="followers/">{{ n_followers }} follower{{ n_followers | pluralize }}</a>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{% extends "base" %}
|
||||
|
||||
{% block title %}
|
||||
{% if user.display_name %}
|
||||
{% set name = user.display_name %}
|
||||
{% else %}
|
||||
{% set name = user.username %}
|
||||
{% endif %}
|
||||
|
||||
{% block title %}
|
||||
{{ name }}'s Followers
|
||||
{% endblock title %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user