Display key values in profiles

This commit is contained in:
Thomas Sileo 2019-08-25 16:08:12 +02:00
parent 3bd2ab8102
commit 376de7b23a

View file

@ -1,6 +1,6 @@
{% extends "layout.html" %}
{% import 'utils.html' as utils %}
{% block title %}{% if request.path == url_for('admin.admin_stream') %}Stream{% else %}Notifications{% endif %} - {{ config.NAME }}{% endblock %}
{% block title %}{% if request.path == url_for('admin.admin_stream') %}Stream{% elif actor_id %}Profile {{ actor.name }}{% else %}Notifications{% endif %} - {{ config.NAME }}{% endblock %}
{% block content %}
<div class="h-feed" id="container">
{% include "header.html" %}
@ -108,6 +108,16 @@
{{ actor.summary | clean | replace_custom_emojis(actor) | safe }}
</div>
{% endif %}
{% if actor.attachment %}
<ul>
{% for item in actor.attachment %}
{% if item.type == "PropertyValue" %}
<li>{{ item.name }}: {{ item.value | clean | replace_custom_emojis(actor) | safe }}</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</div>
{% endif %}