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:
9ef29dd
)
Display trust values a bit more concise.
author
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Wed, 15 Dec 2010 08:52:35 +0000
(09:52 +0100)
committer
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Wed, 15 Dec 2010 08:52:35 +0000
(09:52 +0100)
src/main/resources/static/css/sone.css
patch
|
blob
|
history
src/main/resources/templates/include/viewPost.html
patch
|
blob
|
history
src/main/resources/templates/include/viewReply.html
patch
|
blob
|
history
diff --git
a/src/main/resources/static/css/sone.css
b/src/main/resources/static/css/sone.css
index
c978cf2
..
ec5d1c0
100644
(file)
--- a/
src/main/resources/static/css/sone.css
+++ b/
src/main/resources/static/css/sone.css
@@
-181,6
+181,19
@@
textarea {
min-height: 48px;
}
min-height: 48px;
}
+#sone .trust {
+ font-size: 85%;
+ text-align: center;
+}
+
+#sone .trust .explicit {
+ color: rgb(0, 128, 0);
+}
+
+#sone .trust .implicit {
+ color: rgb(128, 128, 128);
+}
+
#sone .post .author, #sone .post .recipient {
display: inline;
font-weight: bold;
#sone .post .author, #sone .post .recipient {
display: inline;
font-weight: bold;
diff --git
a/src/main/resources/templates/include/viewPost.html
b/src/main/resources/templates/include/viewPost.html
index
8af0d08
..
d38441b
100644
(file)
--- a/
src/main/resources/templates/include/viewPost.html
+++ b/
src/main/resources/templates/include/viewPost.html
@@
-5,9
+5,13
@@
<img src="/WoT/GetIdenticon?identity=<% post.sone.id|html>&width=48&height=48" width="48" height="48" alt="Avatar Image" />
<%if !post.sone.current>
<br />
<img src="/WoT/GetIdenticon?identity=<% post.sone.id|html>&width=48&height=48" width="48" height="48" alt="Avatar Image" />
<%if !post.sone.current>
<br />
- <%ifnull !post.sone.trust.explicit><span class="trust"><% post.sone.trust.explicit></span><%/if>
- <%ifnull !post.sone.trust.implicit><span class="score"><% post.sone.trust.implicit></span><%/if>
- <%ifnull !post.sone.trust.distance><span class="rank"><% post.sone.trust.distance></span><%/if>
+ <div class="trust">
+ <%if post.sone.trust.assigned>
+ <span class="explicit"><% post.sone.trust.explicit></span>
+ <%else>
+ <span class="implicit"><% post.sone.trust.implicit></span>
+ <%/if>
+ </div>
<%/if>
</div>
<div class="inner-part">
<%/if>
</div>
<div class="inner-part">
diff --git
a/src/main/resources/templates/include/viewReply.html
b/src/main/resources/templates/include/viewReply.html
index
8b4c9ef
..
6d9a1f5
100644
(file)
--- a/
src/main/resources/templates/include/viewReply.html
+++ b/
src/main/resources/templates/include/viewReply.html
@@
-5,9
+5,13
@@
<img src="/WoT/GetIdenticon?identity=<% reply.sone.id|html>&width=36&height=36" width="36" height="36" alt="Avatar Image" />
<%if !reply.sone.current>
<br />
<img src="/WoT/GetIdenticon?identity=<% reply.sone.id|html>&width=36&height=36" width="36" height="36" alt="Avatar Image" />
<%if !reply.sone.current>
<br />
- <%ifnull !post.sone.trust.explicit><span class="trust"><% post.sone.trust.explicit></span><%/if>
- <%ifnull !post.sone.trust.implicit><span class="score"><% post.sone.trust.implicit></span><%/if>
- <%ifnull !post.sone.trust.distance><span class="rank"><% post.sone.trust.distance></span><%/if>
+ <div class="trust">
+ <%if reply.sone.trust.assigned>
+ <span class="explicit"><% reply.sone.trust.explicit></span>
+ <%else>
+ <span class="implicit"><% reply.sone.trust.implicit></span>
+ <%/if>
+ </div>
<%/if>
</div>
<div class="inner-part">
<%/if>
</div>
<div class="inner-part">