show “in space $foo” if space is set on this geometry type

This commit is contained in:
Laura Klünder 2017-11-16 00:23:09 +01:00
parent be52938874
commit dc3a65535d

View file

@ -5,15 +5,14 @@
<h3>
{{ model_title_plural }}
{% if level %}
{% with level.title as level_title %}
<small>{% blocktrans %}on level {{ level_title }}{% endblocktrans %}</small>
{% endwith %}
{% endif %}
{% if space %}
{% with space.title as space_title %}
<small>{% blocktrans %}in space {{ space_title }}{% endblocktrans %}</small>
{% endwith %}
{% elif level %}
{% with level.title as level_title %}
<small>{% blocktrans %}on level {{ level_title }}{% endblocktrans %}</small>
{% endwith %}
{% endif %}
</h3>
{% bootstrap_messages %}