summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/sitemap.html
blob: 05edac9e8d058e97b5fe1d4db4556a7f0e98e655 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{% extends "gstudio/base.html" %}
{% load i18n gstudio_tags mptt_tags %}

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

{% block content %}
<h2>{% trans "Sitemap" %}</h2>

<div class="nodetypesbymetatypes">
  <h3>{% trans "Nodetypes per metatypes" %}</h3>
  {% for metatype in metatypes %}
  <h4>{{ metatype }}</h4>
  <ul>
    {% for nodetype in metatype.nodetypes_published.all %}
    <li>
      <a href="{{ nodetype.get_absolute_url }}" title="{{ nodetype.title }}" rel="bookmark">{{ nodetype.title }}</a>
      {% with nodetype.comments.count as comment_count %}
      - {{ comment_count }} {% trans "comment" %}{{ comment_count|pluralize }}
      {% endwith %}
    </li>
    {% empty %}
    <li>
      {% trans "No nodetypes yet." %}
    </li>
    {% endfor %}
  </ul>
  {% endfor %}
</div>

<div class="allnodetypes">
  <h3>{% trans "All the nodetypes" %}</h3>
  <ul>
    {% for nodetype in nodetypes %}
    <li>
      <a href="{{ nodetype.get_absolute_url }}" title="{{ nodetype.title }}" rel="bookmark">{{ nodetype.title }}</a>
      - {{ nodetype.creation_date|date:"SHORT_DATE_FORMAT" }}
      {% with nodetype.comments.count as comment_count %}
      - {{ comment_count }} {% trans "comment" %}{{ comment_count|pluralize }}
      {% endwith %}
    </li>
    {% empty %}
    <li>
      {% trans "No nodetypes yet." %}
    </li>
    {% endfor %}
  </ul>
</div>

<div class="metatypes">
  <h3>{% trans "Metatypes" %}</h3>
  {% for metatype, structure in metatypes|tree_info %}
    {% if structure.new_level %}<ul><li>{% else %}</li><li>{% endif %}
      <a href="{{ metatype.get_absolute_url }}" title="{{ metatype.title }}">{{ metatype.title }}</a>
      -
      {% blocktrans count metatype.nodetypes_published.count as nodetype_count %}{{ nodetype_count }} nodetype{% plural %}{{ nodetype_count }} nodetypes{% endblocktrans %}
    {% for level in structure.closed_levels %}</li></ul>{% endfor %}
    {% empty %}
  <ul>
    <li>
      {% trans "No metatypes yet." %}
    </li>
  </ul>
  {% endfor %}
</div>

<div class="montharchives">
  <h3>{% trans "Monthly archives" %}</h3>
  {% get_archives_nodetypes %}
</div>
{% endblock %}