Add Boards Report to Admin Reports

This commit is contained in:
John R. Supplee 2021-12-20 16:52:18 +02:00
parent 84d0817894
commit d9c290deda
4 changed files with 107 additions and 0 deletions

View file

@ -26,6 +26,11 @@ template(name="adminReports")
i.fa.fa-magic
| {{_ 'rulesReportTitle'}}
li
a.js-report-boards(data-id="report-boards")
i.fa.fa-magic
| {{_ 'boardsReportTitle'}}
li
a.js-report-cards(data-id="report-cards")
i.fa.fa-magic
@ -42,6 +47,8 @@ template(name="adminReports")
+orphanedFilesReport
else if showRulesReport.get
+rulesReport
else if showBoardsReport.get
+boardsReport
else if showCardsReport.get
+cardsReport
@ -139,3 +146,20 @@ template(name="cardsReport")
td {{userNames card.assignees }}
else
div {{_ 'no-results' }}
template(name="boardsReport")
h1 {{_ 'boardsReportTitle'}}
if resultsCount
table.table
tr
th Title
th Id
th Members
each board in results
tr
td {{abbreviate board.title }}
td {{abbreviate board._id }}
td {{userNames board.members }}
else
div {{_ 'no-results' }}