Fix: use title if available instead of description
This commit is contained in:
parent
cbc9fd7db7
commit
7716359e0b
1 changed files with 13 additions and 3 deletions
|
@ -70,11 +70,21 @@
|
|||
{% endif %}
|
||||
<a href='{% url "sites:submission" submission.submission_hash %}' class="stretched-link"></a>
|
||||
<div class="overlay p-2 text-center">
|
||||
{% if submission.content_object.title %}
|
||||
{% if submission.content_object.title|length > 64 %}
|
||||
<p title="{{ submission.content_object.title }}">{{ submission.content_object.title|slice:"0:64"|add:"..." }}</p>
|
||||
{% else %}
|
||||
<p title="{{ submission.content_object.title }}">{{ submission.content_object.title }}</p>
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
{% if submission.content_object.description|length > 64 %}
|
||||
<p>{{ submission.content_object.description|html_to_text|slice:"0:64"|add:"..." }}</p>
|
||||
{% else %}
|
||||
<p>{{ submission.content_object.description|html_to_text }}</p>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
<a href="{% url 'sites:artist_profile' submission.author.user_hash %}" class="z-2">
|
||||
{% if submission.category.name == "furaffinity" %}
|
||||
{{ submission.content_object.artist.artist }}
|
||||
|
|
Loading…
Reference in a new issue