Use l10n property for image permalink
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 31 Jul 2015 15:06:53 +0000 (17:06 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 31 Jul 2015 15:06:53 +0000 (17:06 +0200)
src/main/resources/i18n/sone.en.properties
src/main/resources/templates/include/viewImage.html

index eb10915..1793b09 100644 (file)
@@ -373,6 +373,8 @@ View.Post.ShowLess=show less
 
 View.Album.SizeAndAuthor={1,number} {1,choice,0#images|1#image|1<images} by [link]{0}[/link]
 
+View.Image.Permalink=link image
+
 View.UpdateStatus.Text.ChooseSenderIdentity=Choose the sender identity
 
 View.Trust.Tooltip.Trust=Trust this person
index 4e9087b..cdf5da1 100644 (file)
@@ -5,7 +5,7 @@
                </a>
        </div>
        <div class="information">
-               <div class="link"><a href="image://<% image.id|html>">[link image]</a></div>
+               <div class="link"><a href="image://<% image.id|html>">[<%= View.Image.Permalink|l10n|html>]</a></div>
                <div class="title"><a href="imageBrowser.html?image=<% image.id|html>"><% image.title|html></a></div>
                <div class="description"><% image.description|parse sone=image.sone|render></div>
        </div>