Kumi
bcdbf5ec69
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.
73 lines
2 KiB
HTML
73 lines
2 KiB
HTML
{% extends "base.html" %}
|
|
{% block content %}
|
|
<div class="container">
|
|
<h1 class="text-center">{{ title }}</h1>
|
|
<div class="row">
|
|
{% for channel in channels %}
|
|
<div class="col-6 col-md-4 col-lg-3 text-center mb-3">
|
|
<a href="/{{ channel }}" class="btn btn-primary d-block position-relative">
|
|
{{ channel }}
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<h2 class="text-center">
|
|
<a href="{{ path }}projects/">Featured Projects</a>
|
|
</h2>
|
|
<div class="row">
|
|
{% for ible in ibles %}
|
|
<div class="col-12 col-sm-6 col-md-4 col-lg-3 mb-4">
|
|
<div class="card">
|
|
<a href="{{ ible.link }}" class="text-dark text-decoration-none">
|
|
<img
|
|
src="{{ ible.img }}"
|
|
alt="{{ ible.title }}"
|
|
class="card-img-top"
|
|
/>
|
|
<div class="card-body">
|
|
<h5 class="card-title">{{ ible.title }}</h5>
|
|
<p class="card-text">
|
|
<small class="text-muted"
|
|
>by
|
|
<a href="{{ ible.author_link }}" class="text-primary"
|
|
>{{ ible.author }}</a
|
|
></small
|
|
>
|
|
<br />
|
|
<small class="text-muted"
|
|
>in
|
|
<a href="{{ ible.channel_link }}" class="text-primary"
|
|
>{{ ible.channel }}</a
|
|
></small
|
|
>
|
|
<br />
|
|
<small class="text-muted">{{ ible.views }} Views</small>
|
|
<br />
|
|
<small class="text-muted">{{ ible.favorites }} Favorites</small>
|
|
</p>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<!-- Doesn't seem to be current
|
|
<h2 class="text-center"><a href="/contest/">Contests</a></h2>
|
|
<div class="row">
|
|
<div class="col">
|
|
{% for contest in contests %}
|
|
<a href="{{ contest.link }}">
|
|
<img
|
|
src="{{ contest.img }}"
|
|
alt="{{ contest.title }}"
|
|
class="img-fluid"
|
|
/>
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
-->
|
|
</div>
|
|
{% endblock %}
|