structables/templates/projects.html
Kumi bcdbf5ec69
Enhanced search integration
Refactored the project search function to dynamically construct query parameters, improving readability and maintainability. Introduced several new parameters to refine search results and included a timeout for reliability. Added logging for better debugging and transparency about the search operations.

Updated category and search routes to use the new search function capabilities, ensuring relevant results and proper exception handling. Additionally, implemented pagination support for better user experience when browsing projects.

To improve the UI, the category and project listing templates have been refreshed with a modern layout, including the use of Bootstrap classes and better organization of content.

Resolves issues with inefficient search parameter construction and user interface inconsistencies.
2024-01-31 19:22:58 +01:00

45 lines
1.4 KiB
HTML

{% extends "base.html" %} {% block content %}
<center>
<h1>{{ title }}</h1>
<span><a href="{{ path }}/">Featured</a></span>
<span><a href="{{ path }}/recent/">Recent</a></span>
<span><a href="{{ path }}/popular/">Popular</a></span>
<span><a href="{{ path }}/views/">Views</a></span>
<span><a href="{{ path }}/winners/">Winners</a></span>
<br />
<div class="container">
<div class="row">
{% for ible in ibles %}
<div class="ible-list-item col-xs-12 col-sm-6 col-lg-4">
<a href="{{ ible.link }}" style="color: #bbc2cf">
<img
style="max-width: 350px"
src="{{ ible.img }}"
alt="{{ ible.title }}"
/>
<p>{{ ible.title }}</p>
</a>
<p>
by <a href="{{ ible.author_link }}">{{ ible.author }}</a> in
<a href="{{ ible.channel_link }}">{{ ible.channel }}</a>
</p>
<p>{{ ible.views }} Views, {{ ible.favorites }} Favorites</p>
</div>
{% endfor %}
<ul class="pagination">
{% for page in pagination %}
<li class="page-item">
<a
class="page-link {% if page.active %}active{% endif %} {% if page.disabled %}disabled{% endif %}"
href="{{ page.link }}"
>{{ page.text }}</a
>
</li>
{% endfor %}
</ul>
</div>
</div>
</center>
{% endblock %}