X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=3a720b6095ba39c3c4965c448fd3ff21868aec8c;hb=fd936f56bc88ffea49bb81baf9c113fe933b14a2;hp=d399862ec19a63d9b3dcfe4699e6b28dce651f87;hpb=5777a17f983636923bc2231daec8d0383955d1f5;p=Sone.git diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index d399862..3a720b6 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -244,7 +244,7 @@ var albumDescriptionField = getAlbum(data.albumId).find(".album-description"); if (data.success) { albumTitleField.text(data.title); - albumDescriptionField.text(data.description); + albumDescriptionField.html(data.description); getAlbum(data.albumId).find(":input[name='title']").attr("defaultValue", title); getAlbum(data.albumId).find(":input[name='description']").attr("defaultValue", description); } else { @@ -391,51 +391,46 @@ <%first>

<%= Page.ImageBrowser.Header.Images|l10n|html>

<%include include/pagination.html pageParameter=="page"> +
<%/first> - <%if loop.count|mod divisor==3>
<%/if> -
- - -
-
<% image.title|html>
-
<% image.description|parse sone=image.sone|render>
-
- <%if album.sone.local> -
- - - - -
- - -
- -
<%include include/pagination.html pageParameter=="page"><%/last> <%/foreach> <%if album.sone.local> @@ -614,32 +609,19 @@ <%first>

<%= Page.ImageBrowser.Header.Albums|l10n|html>

<%include include/pagination.html pagination=albumPagination pageParameter=="page"> +
<%/first> - <%if loop.count|mod divisor==3>
<%/if> + <%if loop.even>
<%/if>
- -
- -
<% album.title|html> (<%= View.Sone.Stats.Images|l10n 0=album.images.size>)
-
<% album.description|parse sone=album.sone|render>
-
+ <%include include/viewAlbum.html>
<%= false|store key==endRow> - <%if loop.count|mod divisor==3 offset==1><%= true|store key==endRow><%/if> + <%if loop.odd><%= true|store key==endRow><%/if> <%last><%= true|store key==endRow><%/last> - <%if endRow> -
- <%/if> + <%if endRow>
<%/if> <%last> +
<%include include/pagination.html pagination=albumPagination pageParameter=="page"> <%/last> <%/foreach>