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.

index.html 1.3KB

3 yıl önce
1 yıl önce
1 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <div class="">
  4. <div class="border-b-2 border-black grid grid-cols-[52rem,30rem] content-start">
  5. <div class="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 class="h-full ">
  11. <div class="flex h-full gap-8 justify-start items-center ">
  12. <div class="text-right">Show<br>related</div>
  13. <label class="switch">
  14. <input type="checkbox">
  15. <span class="slider round"></span>
  16. </label>
  17. <div class="">Simpler<br>List</div>
  18. </div>
  19. </div>
  20. </div>
  21. {% if view == 'list' %}
  22. THIS IS LIST VIEW
  23. {% else %}
  24. {% for tool in tools %}
  25. {{ resource_with_related(tool, loop, false) }}
  26. {% endfor %}
  27. {% for book in books %}
  28. {{ resource_with_related(book, loop, false) }}
  29. {% endfor %}
  30. {% for tool in tools2 %}
  31. {{ resource_with_related(tool, loop, false) }}
  32. {% endfor %}
  33. {% for book in books2 %}
  34. {{ resource_with_related(book, loop, false) }}
  35. {% endfor %}
  36. {% endif %}
  37. </div>
  38. {% endblock %}