summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/tags/popular_nodetypes.html
blob: 2b3112b9c9eb1a74e153b531ed526de82ce9dee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{% load i18n %}
<ul>
  {% for nodetype in nodetypes %}
  <li>
    <a href="{{ nodetype.get_absolute_url }}" title="{{ nodetype.title }}" rel="bookmark">{{ nodetype.title }}</a>
    <br />
    {% with nodetype.comments.count as comment_count %}
    <a href="{{ nodetype.get_absolute_url }}#comments" title="{{ nodetype.title }}">{{ comment_count }} {% trans "comment" %}{{ comment_count|pluralize }}</a>
    {% endwith %}
  </li>
  {% empty %}
  <li>
    {% trans "No nodetypes yet." %}
  </li>
  {% endfor %}
</ul>