Skip to content

Commit

Permalink
List detailed status in support ticket list
Browse files Browse the repository at this point in the history
Rather than just listing "open" or "closed" alongside each support
ticket, work out and also list as appropriate "additional help needed"
or "awaiting close".

Fixes dreamwidth#1402.
  • Loading branch information
me-and committed Jun 27, 2015
1 parent 85b663b commit 7b4db05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion htdocs/support/history.bml
Expand Up @@ -113,11 +113,14 @@ body<=
# verify user can see this category (public_read or has supportread in it)
next unless $cats->{$reqs{$id}->{spcatid}}{public_read} ||
LJ::Support::can_read_cat($cats->{$reqs{$id}->{spcatid}}, $remote);
my $status = $reqs{$id}->{state} eq "closed" ? "closed" :
LJ::Support::open_request_status($reqs{$id}->{timetouched},
$reqs{$id}->{timelasthelp});

# print out this request row
$ret .= '<tr>';
$ret .= "<td><a href=\"see_request?id=$reqs{$id}->{spid}\">$reqs{$id}->{subject}</a></td>\n";
$ret .= "<td align='center'>$reqs{$id}->{state}</td>\n";
$ret .= "<td align='center'>$status</td>\n";
$ret .= '<td align="center">';
if ($reqs{$id}->{state} eq 'closed' && $reqs{$id}->{winner}) {
$ret .= LJ::ljuser($reqs{$id}->{winner}) . " ($reqs{$id}->{points})";
Expand Down

0 comments on commit 7b4db05

Please sign in to comment.