Fix the permalink when there's no URL

This commit is contained in:
Thomas Sileo 2018-07-24 22:45:03 +02:00
parent cf46ddcb60
commit f6dbc41e13

View file

@ -89,10 +89,10 @@
<div class="bottom-bar"> <div class="bottom-bar">
{% if perma %}<span class="perma-item">{{ obj.published | format_time }}</span> {% if perma %}<span class="perma-item">{{ obj.published | format_time }}</span>
{% if not (obj.id | is_from_outbox) %} {% if not (obj.id | is_from_outbox) %}
<a class ="bar-item" href="{{ obj.url | get_url }}">permalink</a> <a class ="bar-item" href="{{ obj | url_or_id | get_url }}">permalink</a>
{% endif %} {% endif %}
{% else %} {% else %}
<a class ="bar-item" href="{{ obj.url | get_url }}">permalink</a> <a class ="bar-item" href="{{ obj | url_or_id | get_url }}">permalink</a>
{% endif %} {% endif %}
{% if session.logged_in %} {% if session.logged_in %}