From: David ‘Bombe’ Roden Date: Tue, 27 Sep 2011 19:14:00 +0000 (+0200) Subject: Show a Sone’s number of images in context menu and Sone info. X-Git-Tag: 0.7.2^2~15 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=f6b86a900cacf7555143f12bd12e44b39e0c252f Show a Sone’s number of images in context menu and Sone info. --- diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index d6ba9a7..539f0e2 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -291,6 +291,7 @@ View.Sone.Label.LastUpdate=Last update: View.Sone.Text.UnknownDate=unknown View.Sone.Stats.Posts={0,number} {0,choice,0#posts|1#post|1
<%sone.niceName|html> - (<%= View.Sone.Stats.Posts|l10n 0=sone.posts.size>, <%= View.Sone.Stats.Replies|l10n 0=sone.replies.size>) + (<%= View.Sone.Stats.Posts|l10n 0=sone.posts.size>, <%= View.Sone.Stats.Replies|l10n 0=sone.replies.size><%if ! sone.allImages.size|match value=0>, <%= View.Sone.Stats.Images|l10n 0=sone.allImages.size><%/if>)
» <% =View.Post.WebOfTrustLink|l10n|html>
<%foreach sone.albums album> diff --git a/src/main/resources/templates/include/viewSone.html b/src/main/resources/templates/include/viewSone.html index ba5c8e4..59ba792 100644 --- a/src/main/resources/templates/include/viewSone.html +++ b/src/main/resources/templates/include/viewSone.html @@ -8,7 +8,7 @@
<%= View.Sone.Label.LastUpdate|l10n|html> "><%sone.lastUpdatedText|html>
-
(<%= View.Sone.Stats.Posts|l10n 0=sone.posts.size>, <%= View.Sone.Stats.Replies|l10n 0=sone.replies.size>)
+
(<%= View.Sone.Stats.Posts|l10n 0=sone.posts.size>, <%= View.Sone.Stats.Replies|l10n 0=sone.replies.size><%if ! sone.allImages.size|match value=0>, <%= View.Sone.Stats.Images|l10n 0=sone.allImages.size><%/if>)
<% sone.requestUri|substring start=4 length=43|html>