mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Add Page support
This commit is contained in:
parent
323d069bf9
commit
8df4be0602
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
||||||
{{ utils.display_actor_inline(data, size=80) }}
|
{{ utils.display_actor_inline(data, size=80) }}
|
||||||
{% elif data | has_type('Create') %}
|
{% elif data | has_type('Create') %}
|
||||||
{{ utils.display_note(data.object, ui=True) }}
|
{{ utils.display_note(data.object, ui=True) }}
|
||||||
{% elif data | has_type(['Note', 'Article', 'Video']) %}
|
{% elif data | has_type(['Note', 'Article', 'Video', 'Audio', 'Page']) %}
|
||||||
{{ utils.display_note(data, ui=True) }}
|
{{ utils.display_note(data, ui=True) }}
|
||||||
{% elif data | has_type('Announce') %}
|
{% elif data | has_type('Announce') %}
|
||||||
{% set boost_actor = meta.actor %}
|
{% set boost_actor = meta.actor %}
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="note-container{% if perma %} perma{%endif%} p-name e-content">
|
<div class="note-container{% if perma %} perma{%endif%} p-name e-content">
|
||||||
{% if obj | has_type('Article') %}
|
{% if obj | has_type(['Article', 'Page']) %}
|
||||||
{{ obj.name }} <a href="{{ obj | url_or_id | get_url }}">{{ obj | url_or_id | get_url }}</a>
|
{{ obj.name }} <a href="{{ obj | url_or_id | get_url }}">{{ obj | url_or_id | get_url }}</a>
|
||||||
{% elif obj | has_type('Question') %}
|
{% elif obj | has_type('Question') %}
|
||||||
{{ obj.content | clean | safe }}
|
{{ obj.content | clean | safe }}
|
||||||
|
|
Loading…
Reference in a new issue