summaryrefslogtreecommitdiff
path: root/objectapp/templates/objectapp/objecttype_list.html
blob: c53064136197c2a77d841c828963c87a69ea0297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% extends "objectapp/base.html" %}
{% load i18n mptt_tags %}

{% block meta-description %}{% trans "Objecttype list" %}{% endblock %}

{% block title %}{% trans "Objecttypes" %}{% endblock %}

{% block content %}
<h2>{% trans "Objecttype list" %}</h2>
<div>
  {% for object, structure in object_list|tree_info %}
    {% if structure.new_level %}<ul><li>{% else %}</li><li>{% endif %}
      <a href="{{ object.get_absolute_url }}" title="{{ object }}">{{ object }}</a>
      {% blocktrans count object.gbobjects_published.count as gbobject_count %}{{ gbobject_count }} gbobject{% plural %}{{ gbobject_count }} gbobjects{% endblocktrans %}
      {% if object.description %}<br />{{ object.description|striptags|safe }}{% endif %}
    {% for level in structure.closed_levels %}</li></ul>{% endfor %}
  {% empty %}
  <ul>
    <li>
      {% trans "No objecttypes yet." %}
    </li>
  </ul>
  {% endfor %}
</div>
{% endblock %}