Create a macro for profile links and use it on the welcome and profile display pages
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{% extends 'base.html' %}
|
||||
{% from '_macros.html' import profile_link %}
|
||||
|
||||
{% block content %}
|
||||
<h2 class="ui header">
|
||||
@@ -21,7 +22,7 @@
|
||||
</h2>
|
||||
|
||||
{% for followed in profile.followed_list %}
|
||||
{{ followed }}
|
||||
{{ profile_link(followed) }}
|
||||
{% endfor %}
|
||||
|
||||
<h2>
|
||||
@@ -29,6 +30,6 @@
|
||||
</h2>
|
||||
|
||||
{% for follower in profile.follower_list %}
|
||||
{{ follower }}
|
||||
{{ profile_link(follower) }}
|
||||
{% endfor %}
|
||||
{% endblock content %}
|
||||
|
Reference in New Issue
Block a user