Don't show "0 comments" when not a tooltip
Patch by kareila.
diffs (63 lines):
diff -r df172bc1bdff -r 12d853f89f6c bin/upgrading/s2layers/core2.s2
--- a/bin/upgrading/s2layers/core2.s2 Tue Jun 16 23:31:43 2009 +0800
+++ b/bin/upgrading/s2layers/core2.s2 Wed Jun 17 13:43:38 2009 +0000
@@ -3155,10 +3155,15 @@ function print_module_pagesummary() {
var string comment_display;
if ($*module_pagesummary_opts_comments_tooltip) {
$comment_display = "title='$module_comment_text'>$subject</a>";
- }
- else {
- $comment_display = ">$subject</a> +$module_comment_text";
- }
+ }
+ else {
+ if ($e.comments.count != 0) {
+ $comment_display = ">$subject</a> +$module_comment_text";
+ }
+ else {
+ $comment_display = ">$subject</a>";
+ }
+ }
if (not $e.poster->equals($e.journal)) {
$links[size $links] = """$poster in $e.journal - <a
href="#entry-$e.itemid" $comment_display""";
@@ -3178,10 +3183,15 @@ function print_module_pagesummary() {
var string comment_display;
if ($*module_pagesummary_opts_comments_tooltip) {
$comment_display = "title='$module_comment_text'>$subject</a>";
- }
- else {
- $comment_display = ">$subject</a> +$module_comment_text";
- }
+ }
+ else {
+ if ($e.comments.count != 0) {
+ $comment_display = ">$subject</a> +$module_comment_text";
+ }
+ else {
+ $comment_display = ">$subject</a>";
+ }
+ }
if (not $e.poster->equals($e.journal)) {
$poster = $e.poster->ljuser();
@@ -3203,10 +3213,15 @@ function print_module_pagesummary() {
var string comment_display;
if ($*module_pagesummary_opts_comments_tooltip) {
$comment_display = "title='$module_comment_text'>$subject</a>";
- }
- else {
- $comment_display = ">$subject</a> +$module_comment_text";
- }
+ }
+ else {
+ if ($e.comments.count != 0) {
+ $comment_display = ">$subject</a> +$module_comment_text";
+ }
+ else {
+ $comment_display = ">$subject</a>";
+ }
+ }
if (not $e.poster->equals($e.journal)) {
$poster = $e.poster->ljuser();
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog