Don't show reshares or posts on profile if there are none
This commit is contained in:
parent
e9cd48ecca
commit
963d413847
@ -31,17 +31,21 @@
|
|||||||
{{ user.summary | safe }}
|
{{ user.summary | safe }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if recents | length != 0 %}
|
||||||
<h2>Latest articles</h2>
|
<h2>Latest articles</h2>
|
||||||
<div class="cards">
|
<div class="cards">
|
||||||
{% for article in recents %}
|
{% for article in recents %}
|
||||||
{{ macros::post_card(article=article) }}
|
{{ macros::post_card(article=article) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if reshares | length != 0 %}
|
||||||
<h2>Recently reshared</h2>
|
<h2>Recently reshared</h2>
|
||||||
<div class="cards">
|
<div class="cards">
|
||||||
{% for article in reshares %}
|
{% for article in reshares %}
|
||||||
{{ macros::post_card(article=article) }}
|
{{ macros::post_card(article=article) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
Loading…
Reference in New Issue
Block a user