mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2025-04-22 11:44:12 +00:00
Don't show reshares or posts on profile if there are none
This commit is contained in:
parent
e9cd48ecca
commit
963d413847
1 changed files with 16 additions and 12 deletions
|
@ -31,17 +31,21 @@
|
||||||
{{ user.summary | safe }}
|
{{ user.summary | safe }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>Latest articles</h2>
|
{% if recents | length != 0 %}
|
||||||
<div class="cards">
|
<h2>Latest articles</h2>
|
||||||
{% for article in recents %}
|
<div class="cards">
|
||||||
{{ macros::post_card(article=article) }}
|
{% for article in recents %}
|
||||||
{% endfor %}
|
{{ macros::post_card(article=article) }}
|
||||||
</div>
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<h2>Recently reshared</h2>
|
{% if reshares | length != 0 %}
|
||||||
<div class="cards">
|
<h2>Recently reshared</h2>
|
||||||
{% for article in reshares %}
|
<div class="cards">
|
||||||
{{ macros::post_card(article=article) }}
|
{% for article in reshares %}
|
||||||
{% endfor %}
|
{{ macros::post_card(article=article) }}
|
||||||
</div>
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
Loading…
Reference in a new issue