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.

show_object.html 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. {% import 'macros/show_object.html' as show_object %}
  17. {% import 'components/components.html' as components %}
  18. {% set my_class = leapi.name2class(classname) %}
  19. {% set obj = my_class.get_from_uid(lodel_id) %}
  20. {% if obj is none %}
  21. ERROR <!-- conception failure, the controller should test this before calling the template -->
  22. {% endif %}
  23. {% if my_class.is_abstract() %}
  24. {% set classname = obj.data('classname') %}
  25. {% set my_class = my_class.name2class(classname) %}
  26. {% endif %}
  27. {% block title %}Object {{ lodel_id }} {% endblock %}
  28. {% block content %}
  29. <ol class="breadcrumb">
  30. <li><a href="/{{ root_url }}/">Home</a></li>
  31. <li><a href="/{{ root_url }}/list_classes">Types</a></li>
  32. <li><a href="/{{ root_url }}/show_class?classname={{ classname }}">{{ classname }}</a></li>
  33. <li class="active">{{ lodel_id }}</li>
  34. </ol>
  35. <h1 class="h1_lodel">Lodel 2 - {{ classname }} with uid {{ lodel_id }}</h1>
  36. {{ show_object.object_ul(obj) }}
  37. {% endblock %}