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.

46 lines
964B

  1. {% extends "base.html" %}
  2. {% block content %}
  3. <div class="">
  4. <div class="border-b-2 border-black grid gap-8 lg:grid-cols-[52rem,30rem] content-start">
  5. <div class="mx-2 lg:ml-[13rem] text my-8 meta max-w-[30rem]">
  6. {{ text|safe }}
  7. <br/>
  8. <a href="{{ url_for(request.endpoint, view='list') }}">LIST VIEW</a>
  9. </div>
  10. </div>
  11. {% if view == 'list' %}
  12. {% for tool in tools %}
  13. {{ resource_list(tool, loop, false) }}
  14. {% endfor %}
  15. {% else %}
  16. {% for tool in tools %}
  17. {{ resource_with_related(tool, loop, false) }}
  18. {% endfor %}
  19. {% endif %}
  20. {% if view == 'list' %}
  21. {% for book in books %}
  22. {{ resource_list(book, loop, false) }}
  23. {% endfor %}
  24. {% else %}
  25. {% for book in books %}
  26. {{ resource_with_related(book, loop, false) }}
  27. {% endfor %}
  28. {% endif %}
  29. </div>
  30. {% endblock %}