projects
/
Sone.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9ee1da2
)
Add element IDs to new-element notifications.
author
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Thu, 7 Apr 2011 09:13:28 +0000
(11:13 +0200)
committer
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Thu, 7 Apr 2011 09:13:28 +0000
(11:13 +0200)
src/main/resources/static/css/sone.css
patch
|
blob
|
history
src/main/resources/templates/notify/newPostNotification.html
patch
|
blob
|
history
src/main/resources/templates/notify/newReplyNotification.html
patch
|
blob
|
history
src/main/resources/templates/notify/newSoneNotification.html
patch
|
blob
|
history
diff --git
a/src/main/resources/static/css/sone.css
b/src/main/resources/static/css/sone.css
index
38fcd19
..
f6bb62d
100644
(file)
--- a/
src/main/resources/static/css/sone.css
+++ b/
src/main/resources/static/css/sone.css
@@
-121,6
+121,10
@@
textarea {
float: right;
}
float: right;
}
+#sone #notification-area .notification .hidden {
+ display: none;
+}
+
#sone #plugin-warning {
border: solid 0.5em red;
padding: 0.5em;
#sone #plugin-warning {
border: solid 0.5em red;
padding: 0.5em;
diff --git
a/src/main/resources/templates/notify/newPostNotification.html
b/src/main/resources/templates/notify/newPostNotification.html
index
177b470
..
54008dc
100644
(file)
--- a/
src/main/resources/templates/notify/newPostNotification.html
+++ b/
src/main/resources/templates/notify/newPostNotification.html
@@
-12,6
+12,7
@@
</form>
<%= Notification.NewPost.Text|l10n|html>
<%foreach posts post>
</form>
<%= Notification.NewPost.Text|l10n|html>
<%foreach posts post>
+ <div class="hidden post-id"><%post.id|html></div>
<a class="link-<% post.id|html>" href="viewPost.html?post=<% post.id|html>"><% post.sone.niceName|html></a><%notlast>,<%/notlast><%last>.<%/last>
<%/foreach>
</div>
<a class="link-<% post.id|html>" href="viewPost.html?post=<% post.id|html>"><% post.sone.niceName|html></a><%notlast>,<%/notlast><%last>.<%/last>
<%/foreach>
</div>
diff --git
a/src/main/resources/templates/notify/newReplyNotification.html
b/src/main/resources/templates/notify/newReplyNotification.html
index
21a5ca0
..
1253da5
100644
(file)
--- a/
src/main/resources/templates/notify/newReplyNotification.html
+++ b/
src/main/resources/templates/notify/newReplyNotification.html
@@
-12,6
+12,7
@@
</form>
<%= Notification.NewReply.Text|l10n|html>
<%foreach replies reply>
</form>
<%= Notification.NewReply.Text|l10n|html>
<%foreach replies reply>
+ <div class="hidden reply-id"><%reply.id|html></div>
<a class="link-<% reply.post.id|html>" href="viewPost.html?post=<% reply.post.id|html>"><% reply.sone.niceName|html></a><%notlast>,<%/notlast><%last>.<%/last>
<%/foreach>
</div>
<a class="link-<% reply.post.id|html>" href="viewPost.html?post=<% reply.post.id|html>"><% reply.sone.niceName|html></a><%notlast>,<%/notlast><%last>.<%/last>
<%/foreach>
</div>
diff --git
a/src/main/resources/templates/notify/newSoneNotification.html
b/src/main/resources/templates/notify/newSoneNotification.html
index
45357b1
..
aaa0d14
100644
(file)
--- a/
src/main/resources/templates/notify/newSoneNotification.html
+++ b/
src/main/resources/templates/notify/newSoneNotification.html
@@
-12,6
+12,7
@@
</form>
<%= Notification.NewSone.Text|l10n|html>
<%foreach sones sone>
</form>
<%= Notification.NewSone.Text|l10n|html>
<%foreach sones sone>
+ <div class="hidden sone-id"><% sone.id|html></div>
<a href="viewSone.html?sone=<% sone.id|html>" title="<% sone.requestUri|html>"><% sone.niceName|html></a><%notlast>,<%/notlast><%last>.<%/last>
<%/foreach>
</div>
<a href="viewSone.html?sone=<% sone.id|html>" title="<% sone.requestUri|html>"><% sone.niceName|html></a><%notlast>,<%/notlast><%last>.<%/last>
<%/foreach>
</div>