mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2025-02-16 15:05:13 +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 }}
|
||||
</div>
|
||||
|
||||
<h2>Latest articles</h2>
|
||||
<div class="cards">
|
||||
{% for article in recents %}
|
||||
{{ macros::post_card(article=article) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if recents | length != 0 %}
|
||||
<h2>Latest articles</h2>
|
||||
<div class="cards">
|
||||
{% for article in recents %}
|
||||
{{ macros::post_card(article=article) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<h2>Recently reshared</h2>
|
||||
<div class="cards">
|
||||
{% for article in reshares %}
|
||||
{{ macros::post_card(article=article) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if reshares | length != 0 %}
|
||||
<h2>Recently reshared</h2>
|
||||
<div class="cards">
|
||||
{% for article in reshares %}
|
||||
{{ macros::post_card(article=article) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
|
|
Loading…
Reference in a new issue