-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add request prominence counts in admin UI
Make it easy to quickly see the distribution of prominence states for requests on body and user admin pages. The use case for this was wanting to know if a request hidden due to a data breach was the first for the authority in question or yet another in a long history of breaches. We do try to minimise reduced prominence to specific messages or even attachments after #1005 [1], so only showing request prominence counts doesn't tell the whole story, but it's a start. [1] #1005
- Loading branch information
1 parent
cef7ca4
commit 946fedf
Showing
4 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<ul class="thumbnails"> | ||
<% InfoRequest::Prominence::VALUES.each do |prominence| %> | ||
<li class="span3"> | ||
<div class="thumbnail"> | ||
<%= prominence_icon(prominence) %> | ||
|
||
<%= prominence %>: | ||
<%= info_requests.where(prominence: prominence).size %> | ||
</div> | ||
</li> | ||
<% end %> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters