No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

list_classes.html 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!--
  2. This file is part of Lodel 2 (https://github.com/OpenEdition)
  3. Copyright (C) 2015-2017 Cléo UMS-3287
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as published
  6. by the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. {% extends "base.html" %}
  16. {% block title %}Lodel 2 - List of Classes{% endblock %}
  17. {% block content %}
  18. <ol class="breadcrumb">
  19. <li><a href="/{{ root_url }}/">Home</a></li>
  20. <li class="active">Types</li>
  21. </ol>
  22. <h1 class="h1_lodel">All types</h1>
  23. <ul>
  24. {% for classe in my_classes %}
  25. {% if classe.is_abstract() and allclasses == 1 %}
  26. {% set abst = ' - Abstract type ' %}
  27. <li> <a href="show_class?classname={{ classe.__name__ }}" >{{ classe.__name__ }} </a>{{ abst }}</li>
  28. {% elif not classe.is_abstract() %}
  29. {% set abst = ' - ' ~ classe.get(None)|length %}
  30. <li> <a href="show_class?classname={{ classe.__name__ }}" >{{ classe.__name__ }} </a>{{ abst }}</li>
  31. {% endif %}
  32. {% endfor %}
  33. </ul>
  34. {% endblock %}