#151 #96 Add album descriptions

This commit is contained in:
Alan Grainger
2026-02-16 21:48:14 +13:00
parent fe0aee8df9
commit 08b9cd1056
5 changed files with 27 additions and 1 deletions
+1
View File
@@ -12,6 +12,7 @@
"allowSlugLinks": true,
"showHomePage": true,
"showGalleryTitle": false,
"showGalleryDescription": false,
"showMetadata": {
"description": false
},
+12 -1
View File
@@ -52,9 +52,12 @@ html {
color: white;
}
#header {
#header, #album-description {
font-family: system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, Arial, "Helvetica Neue", sans-serif;
color: white;
}
#header {
width: 100%;
display: flex;
}
@@ -65,6 +68,14 @@ html {
margin: 4px;
}
#album-description h2 {
font-size: 12pt;
font-weight: normal;
font-style: italic;
margin: 4px;
white-space: pre;
}
#download-all {
margin: auto 4px auto auto;
}
+8
View File
@@ -158,6 +158,7 @@ class Render {
items,
openItem,
title: this.title(share),
description: getConfigOption('ipp.showGalleryDescription', false) ? this.description(share) : '',
publicBaseUrl,
path: '/share/' + share.key,
showDownload: canDownload(share),
@@ -173,6 +174,13 @@ class Render {
return share.description || share?.album?.albumName || 'Gallery'
}
/**
* Get the Immich shared link description
*/
description (share: SharedLink) {
return share?.album?.description || ''
}
/**
* Download all assets as a zip file
*/
+1
View File
@@ -49,6 +49,7 @@ export interface SharedLink {
id: string;
albumName?: string;
order?: string;
description?: string;
}
expiresAt: string | null;
}
+5
View File
@@ -32,6 +32,11 @@
</div>
<% } %>
</div>
<% if (description) { %>
<div id="album-description">
<h2><%= description %></h2>
</div>
<% } %>
<div id="lightgallery">
<%
// Load the first 50 thumbnails, then load more as the user scrolls. See web.js