{% extends "layout.html" %} {% from "macros.html" import render_table, render_form, render_likes %} {% block title %}Protokoll{% endblock %} {% set logged_in = check_login() %} {% set user = current_user() %} {% set has_public_type_view_right = protocol.protocoltype.has_public_view_right(user) %} {% set has_public_view_right = protocol.has_public_view_right(user) %} {% set has_private_view_right = protocol.has_private_view_right(user) %} {% set has_modify_right = protocol.has_modify_right(user) %} {% set has_admin_right = protocol.has_admin_right(user) %} {% block content %}
Datum: {{protocol.date|datify_long}}
{% endif %} {% if protocol.start_time is not none and protocol.end_time is not none %}Zeit: von {{protocol.start_time|timify}} bis {{protocol.end_time|timify}}
{% endif %} {% if has_public_view_right %} {% for meta in protocol.metas %} {% if not meta.internal or has_private_view_right %}{{meta.name}}: {{meta.value}}
{% endif %} {% endfor %} {% endif %} {% else %} {% if protocol.date is not none %}Geplant: {{protocol.date|datify_long}}{% endif %}
{% endif %}