@@ -12,6 +12,7 @@
|
|||||||
"allowSlugLinks": true,
|
"allowSlugLinks": true,
|
||||||
"showHomePage": true,
|
"showHomePage": true,
|
||||||
"showGalleryTitle": false,
|
"showGalleryTitle": false,
|
||||||
|
"showGalleryDescription": false,
|
||||||
"showMetadata": {
|
"showMetadata": {
|
||||||
"description": false
|
"description": false
|
||||||
},
|
},
|
||||||
|
|||||||
+12
-1
@@ -52,9 +52,12 @@ html {
|
|||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header {
|
#header, #album-description {
|
||||||
font-family: system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, Arial, "Helvetica Neue", sans-serif;
|
font-family: system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, Arial, "Helvetica Neue", sans-serif;
|
||||||
color: white;
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
@@ -65,6 +68,14 @@ html {
|
|||||||
margin: 4px;
|
margin: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#album-description h2 {
|
||||||
|
font-size: 12pt;
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: italic;
|
||||||
|
margin: 4px;
|
||||||
|
white-space: pre;
|
||||||
|
}
|
||||||
|
|
||||||
#download-all {
|
#download-all {
|
||||||
margin: auto 4px auto auto;
|
margin: auto 4px auto auto;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ class Render {
|
|||||||
items,
|
items,
|
||||||
openItem,
|
openItem,
|
||||||
title: this.title(share),
|
title: this.title(share),
|
||||||
|
description: getConfigOption('ipp.showGalleryDescription', false) ? this.description(share) : '',
|
||||||
publicBaseUrl,
|
publicBaseUrl,
|
||||||
path: '/share/' + share.key,
|
path: '/share/' + share.key,
|
||||||
showDownload: canDownload(share),
|
showDownload: canDownload(share),
|
||||||
@@ -173,6 +174,13 @@ class Render {
|
|||||||
return share.description || share?.album?.albumName || 'Gallery'
|
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
|
* Download all assets as a zip file
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ export interface SharedLink {
|
|||||||
id: string;
|
id: string;
|
||||||
albumName?: string;
|
albumName?: string;
|
||||||
order?: string;
|
order?: string;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
expiresAt: string | null;
|
expiresAt: string | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
|
<% if (description) { %>
|
||||||
|
<div id="album-description">
|
||||||
|
<h2><%= description %></h2>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
||||||
<div id="lightgallery">
|
<div id="lightgallery">
|
||||||
<%
|
<%
|
||||||
// Load the first 50 thumbnails, then load more as the user scrolls. See web.js
|
// Load the first 50 thumbnails, then load more as the user scrolls. See web.js
|
||||||
|
|||||||
Reference in New Issue
Block a user