@@ -12,6 +12,7 @@
|
||||
"allowSlugLinks": true,
|
||||
"showHomePage": true,
|
||||
"showGalleryTitle": false,
|
||||
"showGalleryDescription": false,
|
||||
"showMetadata": {
|
||||
"description": false
|
||||
},
|
||||
|
||||
+12
-1
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -49,6 +49,7 @@ export interface SharedLink {
|
||||
id: string;
|
||||
albumName?: string;
|
||||
order?: string;
|
||||
description?: string;
|
||||
}
|
||||
expiresAt: string | null;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user