File: list.html

package info (click to toggle)
python-django-parler 2.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,032 kB
  • sloc: python: 4,293; makefile: 164; sh: 6
file content (17 lines) | stat: -rw-r--r-- 529 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% extends "base.html" %}

{% block headtitle %}List of articles{% endblock %}

{% block main %}
  <h1>List of articles</h1>

  {% if object_list %}
    <ul>
    {% for article in object_list %}
      <li><a href="{% url 'article-details' article.slug %}">/{{ article.slug }}/ - &ldquo;{{ article.title }}&rdquo;</a></li>
    {% endfor %}
    </ul>
  {% else %}
    <p>No articles yet in this language, <a href="{% url 'admin:article_article_add' %}?language={{ LANGUAGE_CODE }}">create one</a>.</p>
  {% endif %}
{% endblock %}