Skip to content
Snippets Groups Projects
Commit e7f2f5f6 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

admin: Fix template errors because variables undefined

parent 15a1c55d
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
<h2>{% trans %}Hosted entities{% endtrans %}</h2> <h2>{% trans %}Hosted entities{% endtrans %}</h2>
{%- for key, set in entries.hosted %} {%- for key, set in entries.hosted %}
{%- set metadataset = attribute(set, 'metadata-set') %}
{%- if not loop.first %} {%- if not loop.first %}
<br/> <br/>
...@@ -17,13 +16,13 @@ ...@@ -17,13 +16,13 @@
{%- block general %} {%- block general %}
<dl> <dl>
{%- if set.name %} {%- if set.name is defined %}
<dt>{{ set.name|translateFromArray }}</dt> <dt>{{ set.name|translateFromArray }}</dt>
{%- endif %} {%- endif %}
<dd>EntityID: <code>{{ set.entityid }}</code></dd> <dd>EntityID: <code>{{ set.entityid }}</code></dd>
{%- if set.deprecated %} {%- if set.deprecated is defined and set.deprecated %}
<dd><span class="entity-deprecated">Deprecated</span></dd> <dd><span class="entity-deprecated">Deprecated</span></dd>
{%- endif %} {%- endif %}
...@@ -106,10 +105,10 @@ ...@@ -106,10 +105,10 @@
{% for entityid, entity in set %} {% for entityid, entity in set %}
<li><a href="{{ moduleURL('admin/federation/show?entityid=' ~ (entity.entityid|url_encode) ~ '&set=' ~ key) }}"> <li><a href="{{ moduleURL('admin/federation/show?entityid=' ~ (entity.entityid|url_encode) ~ '&set=' ~ key) }}">
{%- if entity.name_translated -%} {%- if entity.name_translated is defined -%}
{{ entity.name_translated }} {{ entity.name_translated }}
{%- elseif entity.organizationdisplayname_translated -%} {%- elseif entity.organizationdisplayname_translated is defined -%}
{{ entity.organizationdisplayname_translated }} {{ entity.organizationdisplayname_translated }}
{%- else -%} {%- else -%}
...@@ -117,7 +116,7 @@ ...@@ -117,7 +116,7 @@
{{ entity.entityid|escape('html') }} {{ entity.entityid|escape('html') }}
{%- endif -%} {%- endif -%}
</a> </a>
{%- if entity.expire %} {%- if entity.expire is defined %}
{%- if entity.expire < date().timestamp %} {%- if entity.expire < date().timestamp %}
<span class="entity-expired"> (expired {{ ((date().timestamp - entity.expire) / 3600) }} hours ago)</span> <span class="entity-expired"> (expired {{ ((date().timestamp - entity.expire) / 3600) }} hours ago)</span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment