add: albums link under pictures

This commit is contained in:
2025-05-06 20:03:32 +02:00
parent b434d0837a
commit b895e5d85c
7 changed files with 47 additions and 23 deletions

View File

@ -6,7 +6,7 @@
</head>
<body>
<h1>{{ album._name }}</h1>
<h1>{{ album.name }}</h1>
<div class="picture-container">
{% for picture in album._pictures %}
<a href="{{ picture.get_page().html.get_url() }}">

View File

@ -28,11 +28,15 @@ body {
padding: 10px;
}
.picture-container-item {
.picture {
padding: 5px;
background-color: var(--content1);
}
.albums_container {
margin-right: 0;
}
img {
max-width: 100%;
height: auto;

View File

@ -29,14 +29,22 @@
<div class="picture-container">
{% for picture in page._pictures %}
<div class="picture-container-item">
<a href="{{ picture.get_small().get_url() }}">
<img src='{{ picture.get_small().get_url() }}'>
</a>
<div class="meta-picture">
<a href="{{ picture.get_large().get_url() }}">Large</a>
{% if picture._profile_file.exist() %}
<a class="profile" href="{{ picture.get_profile_file().get_url() }}">Raw therapee profile</a>
{% endif %}
<div class="picture">
<a href="{{ picture.get_small().get_url() }}">
<img src='{{ picture.get_small().get_url() }}'>
</a>
<div class="meta-picture">
<a href="{{ picture.get_large().get_url() }}">Large</a>
{% if picture._profile_file.exist() %}
<a class="profile" href="{{ picture.get_profile_file().get_url() }}">Raw therapee profile</a>
{% endif %}
</div>
</div>
<div class="albums_container">
<h1>Albums:</h1>
{% for album in picture.albums %}
<a href="{{ album.path.get_url() }}" class="album_item">{{ album.name }}</a>
{% endfor %}
</div>
</div>
{% endfor %}