Show likes, reposts, bookmarks and listens
Untill now all those haven't been handled in any special way and therefor were sometimes just simply empty if the post didn't add any content. This patch shows the liked, etc., url in the feed instead it being a entry without any content.
This commit is contained in:
parent
f0deb771e7
commit
2ad9619929
1 changed files with 19 additions and 0 deletions
|
@ -65,6 +65,25 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% set ofs = ['like', 'bookmark', 'repost', 'listen'] %}
|
||||||
|
{% for of in ofs %}
|
||||||
|
{% set properties = entry.get_property(of + "-of") %}
|
||||||
|
{% if properties %}
|
||||||
|
<div class="{{ of }}s">
|
||||||
|
{% for property in properties %}
|
||||||
|
<p>
|
||||||
|
{% if of == "like" %}
|
||||||
|
Liked:
|
||||||
|
{% else %}
|
||||||
|
{{ of | title }}ed:
|
||||||
|
{% endif %}
|
||||||
|
<a href="{{ property }}">{{ property }}</a>
|
||||||
|
</p>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
{% if entry.content %}
|
{% if entry.content %}
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{ entry.content_cleaned | proxy_all | add_preview }}
|
{{ entry.content_cleaned | proxy_all | add_preview }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue