Use l10n property for album permalink
[Sone.git] / src / main / resources / templates / include / viewAlbum.html
1 <div class="image-with-information">
2         <div class="image">
3                 <a href="imageBrowser.html?album=<% album.id|html>">
4                         <%ifnull album.images.random>
5                                 <img src="images/broken-album.png" width="160" height="120" title="<% album.title|html>" style="opacity: 0.25;"/>
6                         <%else>
7                                 <% album.images.random|image-link max-width==160 max-height==120 mode==enlarge title=album.title>
8                         <%/if>
9                 </a>
10         </div>
11         <div class="information">
12                 <div class="link"><a href="album://<% album.id|html>">[<%= View.Album.Permalink|l10n|html>]</a></div>
13                 <div class="title"><a href="imageBrowser.html?album=<% album.id|html>"><% album.title|html></a></div>
14                 <div class="author"><% =View.Album.SizeAndAuthor|l10n 0=album.sone.niceName 1=album.images.size|html|replace needle=="[link]" replacement=='<a href="viewSone.html?sone=<sone-id>">'|replace needle=='[/link]' replacement=='</a>'|replace needle=='<sone-id>' replacement=album.sone.id></div>
15                 <div class="description"><% album.description|parse sone=album.sone|render></div>
16         </div>
17 </div>