Add search

This commit is contained in:
Nyymix 2025-04-05 10:10:44 +03:00
parent 333ed61b6e
commit f3ec438305
4 changed files with 76 additions and 1 deletions

View file

@ -0,0 +1,35 @@
{% extends "base_dark.html" %}
{% load static %}
<!-- Title -->
{% block title %} Gallery : Search {% endblock %}
<!-- Parallax -->
{% block parallax %}
{% include "./partials/parallax.html" %}
{% endblock %}
<!-- Content -->
{% block content %}
<div class="uk-grid-small uk-child-width-1-2@s uk-child-width-1-3@m" uk-grid="masonry: true">
{% for album in results %}
<div>
<div class="uk-card uk-card-default">
<div class="uk-card-media-top">
<a href="{{ album.get_absolute_url }}">
<img src="{{ album.cover_url }}" alt="{{ album.name }}">
</a>
</div>
<div class="uk-overlay uk-overlay-primary uk-position-bottom uk-padding-small">
<h3 class="uk-card-title"><a href="{{ album.get_absolute_url }}">{{ album }}</a></h3>
<p>{{ album.album_date|date:"d.m.Y" }} &bull; {{ album.photos_in_album }} photos</p>
</div>
</div>
</div>
{% endfor %}
</div>
{% include "./partials/pagination.html" %}
{% endblock %}