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.

resources.html 3.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {% extends 'base.html' %}
  2. {% block content %}
  3. <div class="cell-margin">
  4. <div class="mb-8">
  5. <h2>
  6. {% block title %}
  7. {% autoescape false %}
  8. {{ type + 's' | replace(" ","<br>") }}
  9. {% endautoescape %}
  10. {% endblock %}
  11. </h2>
  12. <p>
  13. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget viverra magna. Nam in ante ultricies
  14. purus feugiat vestibulum et ac erat. Donec in sagittis ante. Maecenas non mauris et eros commodo fringilla.
  15. Integer accumsan ullamcorper diam, non rhoncus tellus molestie ut. Maecenas finibus pretium dolor ac sagittis.
  16. </p>
  17. </div>
  18. </div>
  19. <div class="">
  20. <div class="search sticky top-11 z-10 border-b-2 border-black">
  21. <div class="sticky top-20 flex p-2 pt-4 gap-8 bg-white ">
  22. <input class="border-2 border-black p-2 mb-2" type="text" placeholder="filter by search...">
  23. {% if practices_filter %}
  24. <details class="min-w-[10rem]">
  25. <summary>Practices</summary>
  26. <div class="">
  27. {% for practice in practices_filter %}
  28. <div {% if request.args.get('practice')==practice[0]|string %} class="active" {% endif %}>
  29. <a href="/{{type + 's'}}?practice={{practice[0]}}">{{ practice[1] }}</a>
  30. </div>
  31. {% endfor %}
  32. </div>
  33. </details>
  34. {% endif %}
  35. {% if year_filter %}
  36. <details class="min-w-[10rem]">
  37. <summary>Year</summary>
  38. <div id="filter-year" class="collapse filter-items">
  39. {% for year in year_filter %}
  40. <li {% if request.args.get('year')==year %} class="active" {% endif %}>
  41. <a href="/books?year={{year}}">{{ year }}</a>
  42. </li>
  43. {% endfor %}
  44. </div>
  45. </details>
  46. {% endif %}
  47. {% if typology_filter %}
  48. <details class="min-w-[10rem]">
  49. <summary class="">Typology category</summary>
  50. <div class="">
  51. {% for typology in typology_filter %}
  52. <div {% if request.args.get('typology')==typology %} class="active" {% endif %}>
  53. <a href="/books?typology={{typology}}">{{ typology }}</a>
  54. </div>
  55. {% endfor %}
  56. </div>
  57. </details>
  58. {% endif %}
  59. {% if languages_filter %}
  60. <details class="min-w-[10rem]">
  61. <summary>Scripting languages</summary>
  62. <div class="">
  63. {% for language in languages_filter %}
  64. <div {% if request.args.get('scriptingLanguage')==language %} class="active" {% endif %}>
  65. <a href="/tools?scriptingLanguage={{language}}">{{ language }}</a>
  66. </div>
  67. {% endfor %}
  68. </div>
  69. </details>
  70. {% endif %}
  71. {% if licenses_filter %}
  72. <details class="min-w-[10rem]">
  73. <summary>License</summary>
  74. <div class="">
  75. {% for license in licenses_filter %}
  76. <div {% if request.args.get('license')==license %} class="active" {% endif %}>
  77. <a href="/tools?license={{license}}">{{ license }}</a>
  78. </div>
  79. {% endfor %}
  80. </div>
  81. </details>
  82. {% endif %}
  83. </div>
  84. </div>
  85. <div class="col-md-8 col-lg-9">
  86. <div class="grid lg:grid-cols-3">
  87. {% for resource in resources %}
  88. {{ resource_small(resource) }}
  89. {% endfor %}
  90. </div>
  91. </div>
  92. </div>
  93. {% endblock %}