aboutsummaryrefslogtreecommitdiffstats
path: root/web/ajax.cgi
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-01-20 23:15:57 +0000
committerMatthew Somerville <matthew@mysociety.org>2011-01-20 23:15:57 +0000
commitab6c078efbbb3fd01da903d0f6b076186371a1f9 (patch)
tree68019e0a9d22057ac5633f6b03f9d66ae9a96186 /web/ajax.cgi
parentd04fc9175445fa6db7df9dfe2fa929e70b3bb321 (diff)
Shorter dates.
Diffstat (limited to 'web/ajax.cgi')
-rwxr-xr-xweb/ajax.cgi10
1 files changed, 6 insertions, 4 deletions
diff --git a/web/ajax.cgi b/web/ajax.cgi
index fa722f02e..69c389765 100755
--- a/web/ajax.cgi
+++ b/web/ajax.cgi
@@ -50,8 +50,8 @@ sub main {
all_pins => undef,
no_pins => undef), $q);
$list .= '<li><a href="' . $link . '">';
- $list .= ent($_->{title});
- $list .= '</a>';
+ $list .= ent($_->{title}) . '</a> <small>(';
+ $list .= Page::prettify_epoch($q, $_->{time}, 1) . ')</small>';
$list .= ' <small>' . _('(fixed)') . '</small>' if $_->{state} eq 'fixed';
$list .= '</li>';
}
@@ -59,6 +59,7 @@ sub main {
$list = '';
foreach (@$around_map) {
+ my $dist = int($_->{distance}/100+.5)/10;
$link = Cobrand::url($cobrand, NewURL($q, -retain => 1,
-url => '/report/' . $_->{id},
pc => undef,
@@ -69,8 +70,9 @@ sub main {
all_pins => undef,
no_pins => undef), $q);
$list .= '<li><a href="' . $link . '">';
- $list .= ent($_->{title}) . ' <small>(' . int($_->{distance}/100+.5)/10 . 'km)</small>';
- $list .= '</a>';
+ $list .= ent($_->{title}) . '</a> <small>(';
+ $list .= Page::prettify_epoch($q, $_->{time}, 1) . ', ';
+ $list .= $dist . 'km)</small>';
$list .= ' <small>' . _('(fixed)') . '</small>' if $_->{state} eq 'fixed';
$list .= '</li>';
}