diff options
Diffstat (limited to 'web')
-rwxr-xr-x | web/ajax.cgi | 10 | ||||
-rwxr-xr-x | web/index.cgi | 9 | ||||
-rwxr-xr-x | web/rss.cgi | 3 |
3 files changed, 13 insertions, 9 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>'; } diff --git a/web/index.cgi b/web/index.cgi index 83b3b421c..e503f50ba 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -820,8 +820,8 @@ sub display_location { my $report_url = NewURL($q, -retain => 1, -url => '/report/' . $_->{id}, pc => undef, x => undef, 'y' => undef); $report_url = Cobrand::url($cobrand, $report_url, $q); $on_list .= '<li><a href="' . $report_url . '">'; - $on_list .= ent($_->{title}); - $on_list .= '</a>'; + $on_list .= ent($_->{title}) . '</a> <small>('; + $on_list .= Page::prettify_epoch($q, $_->{time}, 1) . ')</small>'; $on_list .= ' <small>' . _('(fixed)') . '</small>' if $_->{state} eq 'fixed'; $on_list .= '</li>'; } @@ -834,8 +834,9 @@ sub display_location { $around_list .= '<li><a href="' . $report_url . '">'; my $dist = int($_->{distance}/100+0.5); $dist = $dist / 10; - $around_list .= ent($_->{title}) . ' <small>(' . $dist . 'km)</small>'; - $around_list .= '</a>'; + $around_list .= ent($_->{title}) . '</a> <small>('; + $around_list .= Page::prettify_epoch($q, $_->{time}, 1) . ', '; + $around_list .= $dist . 'km)</small>'; $around_list .= ' <small>' . _('(fixed)') . '</small>' if $_->{state} eq 'fixed'; $around_list .= '</li>'; push @pins, [ $_->{easting}, $_->{northing}, $_->{state} eq 'fixed' ? 'green' : 'red' ]; diff --git a/web/rss.cgi b/web/rss.cgi index a716d93e9..8885af249 100755 --- a/web/rss.cgi +++ b/web/rss.cgi @@ -76,7 +76,8 @@ sub rss_local_problems { $state = 'all' unless $state =~ /^(all|open|fixed)$/; # state is getting lost in the redirects. Add it on to the end as a query - my $state_qs = "?state=$state" unless $state eq 'all'; + my $state_qs = ''; + $state_qs = "?state=$state" unless $state eq 'all'; $state = 'confirmed' if $state eq 'open'; |