[dw-free] page summary displaying "0 comments"
[commit: http://hg.dwscoalition.org/dw-free/rev/12d853f89f6c]
http://bugs.dwscoalition.org/show_bug.cgi?id=1312
Don't show "0 comments" when not a tooltip
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1312
Don't show "0 comments" when not a tooltip
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- bin/upgrading/s2layers/core2.s2
-------------------------------------------------------------------------------- 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(); --------------------------------------------------------------------------------