projects
/
Sone.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e2e8fe4
)
Show a Sone’s number of images in context menu and Sone info.
author
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Tue, 27 Sep 2011 19:14:00 +0000
(21:14 +0200)
committer
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Tue, 27 Sep 2011 19:14:00 +0000
(21:14 +0200)
src/main/resources/i18n/sone.en.properties
patch
|
blob
|
history
src/main/resources/templates/include/soneMenu.html
patch
|
blob
|
history
src/main/resources/templates/include/viewSone.html
patch
|
blob
|
history
diff --git
a/src/main/resources/i18n/sone.en.properties
b/src/main/resources/i18n/sone.en.properties
index
d6ba9a7
..
539f0e2
100644
(file)
--- 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<posts}
View.Sone.Stats.Replies={0,number} {0,choice,0#replies|1#reply|1<replies}
View.Sone.Text.UnknownDate=unknown
View.Sone.Stats.Posts={0,number} {0,choice,0#posts|1#post|1<posts}
View.Sone.Stats.Replies={0,number} {0,choice,0#replies|1#reply|1<replies}
+View.Sone.Stats.Images={0,number} {0,choice,0#images|1#image|1<images}
View.Sone.Button.UnlockSone=unlock
View.Sone.Button.UnlockSone.Tooltip=Allow this Sone to be inserted now
View.Sone.Button.LockSone=lock
View.Sone.Button.UnlockSone=unlock
View.Sone.Button.UnlockSone.Tooltip=Allow this Sone to be inserted now
View.Sone.Button.LockSone=lock
diff --git
a/src/main/resources/templates/include/soneMenu.html
b/src/main/resources/templates/include/soneMenu.html
index
87114cc
..
128e389
100644
(file)
--- a/
src/main/resources/templates/include/soneMenu.html
+++ b/
src/main/resources/templates/include/soneMenu.html
@@
-4,7
+4,7
@@
<div class="inner-menu">
<div>
<a class="author" href="viewSone.html?sone=<%sone.id|html>"><%sone.niceName|html></a>
<div class="inner-menu">
<div>
<a class="author" href="viewSone.html?sone=<%sone.id|html>"><%sone.niceName|html></a>
- (<%= 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>
)
</div>
<div><a href="/WebOfTrust/ShowIdentity?id=<%sone.id|html>">» <% =View.Post.WebOfTrustLink|l10n|html></a></div>
<%foreach sone.albums album>
</div>
<div><a href="/WebOfTrust/ShowIdentity?id=<%sone.id|html>">» <% =View.Post.WebOfTrustLink|l10n|html></a></div>
<%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
(file)
--- a/
src/main/resources/templates/include/viewSone.html
+++ b/
src/main/resources/templates/include/viewSone.html
@@
-8,7
+8,7
@@
<div class="last-update"><%= View.Sone.Label.LastUpdate|l10n|html> <span class="time" title="<% sone.time|unknown|date format="MMM d, yyyy, HH:mm:ss">"><%sone.lastUpdatedText|html></span></div>
<div>
<div class="profile-link"><a href="viewSone.html?sone=<% sone.id|html>" title="<% sone.requestUri|html>"><% sone.niceName|html></a></div>
<div class="last-update"><%= View.Sone.Label.LastUpdate|l10n|html> <span class="time" title="<% sone.time|unknown|date format="MMM d, yyyy, HH:mm:ss">"><%sone.lastUpdatedText|html></span></div>
<div>
<div class="profile-link"><a href="viewSone.html?sone=<% sone.id|html>" title="<% sone.requestUri|html>"><% sone.niceName|html></a></div>
- <div class="sone-stats">(<%= View.Sone.Stats.Posts|l10n 0=sone.posts.size>, <%= View.Sone.Stats.Replies|l10n 0=sone.replies.size>)</div>
+ <div class="sone-stats">(<%= 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>
)</div>
</div>
<div class="short-request-uri"><% sone.requestUri|substring start=4 length=43|html></div>
<div class="hidden"><% sone.blacklisted></div>
</div>
<div class="short-request-uri"><% sone.requestUri|substring start=4 length=43|html></div>
<div class="hidden"><% sone.blacklisted></div>