Add Album_list & Album_detail

This commit is contained in:
Nyymix 2025-01-04 20:04:20 +02:00
parent 1a65aec740
commit bcf2c3612b
6 changed files with 75 additions and 5 deletions

View file

@ -0,0 +1,17 @@
{% extends "base.html" %}
<!-- Title -->
{% block title %} Gallery : Albums : {{ album.name }} {% endblock %}
<!-- Breadcrumb -->
{% block breadcrumb %}
<li><a href="{% url 'gallery:albums_url' %}">Albums</a></li>
<li>{{ album.name }}</li>
{% endblock %}
<!-- Content -->
{% block content %}
<h1>{{ album.name }}</h1>
{% endblock %}

View file

@ -0,0 +1,22 @@
{% extends "base.html" %}
<!-- Title -->
{% block title %} Gallery : Albums {% endblock %}
<!-- Breadcrumb -->
{% block breadcrumb %}
<li>Albums</li>
{% endblock %}
<!-- Content -->
{% block content %}
<ul>
{% for album in album_list %}
<li>
<a href="{{ album.get_absolute_url }}"> {{ album.name }} </a> - {{ album.album_date|date:"d.m.Y" }}
</li>
{% endfor %}
</ul>
{% endblock %}