diff options
Diffstat (limited to 'data/tpl/vnpage_stats')
-rw-r--r-- | data/tpl/vnpage_stats | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/tpl/vnpage_stats b/data/tpl/vnpage_stats index 841fce37..653987a1 100644 --- a/data/tpl/vnpage_stats +++ b/data/tpl/vnpage_stats @@ -10,7 +10,7 @@ ]] [[ if(!$d{user} || ($d{pv} && $d{user}{votes})) { ]]- <li><h3>Vote graph <p class="actions">[[= $total ]]- vote[[= $total==1?'':'s' ]]- total - [[= $total ? sprintf(', average: %.1f.', $sum/$total) : '' ]]</p></h3> + [[= $total && $d{user} ? sprintf(', average: %.1f.', $sum/$total) : '' ]]</p></h3> <table id="tvg"> [[ for (0..$#{$d{votes}{graph}}) { ]]- <tr> @@ -26,7 +26,7 @@ [[ for (@{$d{votes}{latest}}) { ]]- <tr> [[ if(!$d{user}) { ]]- - <td class="tc1"><a href="/u[[= $_->{uid} ]]">[[: $_->{username} ]]</a></td> + <td class="tc1">[[= userstr $_ ]]</td> [[ } else { ]]- <td class="tc1"><a href="/v[[= $_->{vid} ]]">[[: length($_->{title})>30?substr($_->{title},0,27).'...':$_->{title} ]]</a></td> [[ } ]]- @@ -56,7 +56,7 @@ [[ for (@{$d{lists}{latest}}) { ]]- <tr> [[ if(!$d{user}) { ]]- - <td class="tc1"><a href="/u[[= $_->{uid} ]]">[[: $_->{username} ]]</a></td> + <td class="tc1">[[= userstr $_ ]]</td> [[ } else { ]]- <td class="tc1"><a href="/v[[= $_->{vid} ]]">[[: length($_->{title})>25?substr($_->{title},0,23).'...':$_->{title} ]]</a></td> [[ } ]]- |