Skip to content

Commit

Permalink
[.com] Remove comment stats from dashboard bottom.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Jan 10, 2024
1 parent b47f803 commit 4fb32e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions perllib/FixMyStreet/App/Controller/Dashboard.pm
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ sub generate_summary_figures {
# problems this month by state
$c->stash->{"summary_$_"} = 0 for values %$state_map;

return if $c->cobrand->moniker eq 'fixmystreet'; # Not wanted on .com

$c->stash->{summary_open} = $c->stash->{objects_rs}->count;

my $params = $c->stash->{params};
Expand Down
2 changes: 2 additions & 0 deletions templates/web/base/dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ <h1>[% loc('Summary statistics') %]</h1>
</tr>
</table>

[% IF summary_open %]
<p>
[% loc('Within the specified timeframe:') %]
[%
Expand All @@ -198,5 +199,6 @@ <h1>[% loc('Summary statistics') %]</h1>
tprintf( loc('%s opened, %s closed, %s fixed'),
decode(summary_open), decode(summary_closed), decode(summary_fixed) ) %]
</p>
[% END %]

[% INCLUDE 'footer.html' %]

0 comments on commit 4fb32e2

Please sign in to comment.