mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 17:45:18 -05:00
The person signing in still sees the same generic message whatever the reason, so a signed-out visitor cannot tell "no such user" from "wrong password". Every refusal is recorded with its precise reason (models/lib/loginRefusals.js, server/lib/loginRefusals.js): wrong password, unknown user, disabled account, brake, malformed request, and the LDAP reasons, which the LDAP handler now records before returning its one generic error - including the two messages that used to name the account. Problems / Summary groups them like a status dashboard: one row per reason with its count, first and latest time, latest account and address, the fix and the Admin Panel pane where it is made, and each problem area lists its three most frequent problems. Translated to every language. Thanks to Raymond-Voogt and xet7 ! Fixes #6942,
141 lines
6.0 KiB
Plaintext
141 lines
6.0 KiB
Plaintext
template(name="problemsSummary")
|
|
.global-search-results-list-wrapper
|
|
h1 {{_ 'summary'}}
|
|
|
|
//- Status overview: migrations / repairs in progress + detected problems.
|
|
//- Same data as `snap run wekan.problems`.
|
|
if statusOverview
|
|
h2 {{_ 'problems-status-title'}}
|
|
if statusOverview.anyInProgress
|
|
p {{_ 'problems-in-progress-help'}}
|
|
.admin-problem-banner
|
|
each item in inProgress
|
|
.admin-problem-item
|
|
i.fa.fa-spinner.fa-spin
|
|
span.admin-problem-path {{item.message}}
|
|
else
|
|
p {{_ 'problems-none-in-progress'}}
|
|
if statusOverview.anyProblems
|
|
.admin-problem-banner
|
|
each problem in statusProblems
|
|
.admin-problem-item
|
|
i.fa.fa-exclamation-triangle
|
|
span.admin-problem-path {{problem.title}}
|
|
if problem.count
|
|
span.admin-problem-count {{problem.count}}
|
|
br
|
|
span.quiet {{problem.detail}}
|
|
//- Broken cards are one of the two detected problems the admin can
|
|
//- fix from here: run the repair migration over every board.
|
|
if isBrokenCards problem
|
|
.admin-problem-actions
|
|
button.js-repair-broken-cards.primary(disabled="{{#if repairRunning}}disabled{{/if}}")
|
|
if repairRunning
|
|
i.fa.fa-spinner.fa-spin
|
|
| {{_ 'repairing'}}
|
|
else
|
|
i.fa.fa-wrench
|
|
| {{_ 'repair-broken-cards'}}
|
|
if repairResult
|
|
br
|
|
span.quiet {{repairResult}}
|
|
//- #6670: lists un-bound from their swimlane by the pre-#6515
|
|
//- automatic repair. The swimlane each list was created in is
|
|
//- still recorded, so this puts back exactly that and nothing else.
|
|
//- What it restores and what it leaves alone is in the problem's
|
|
//- own detail line above, so this needs no description of its own.
|
|
if isUnboundLists problem
|
|
.admin-problem-actions
|
|
button.js-restore-list-swimlanes.primary(disabled="{{#if restoreRunning}}disabled{{/if}}")
|
|
if restoreRunning
|
|
i.fa.fa-spinner.fa-spin
|
|
| {{_ 'repairing'}}
|
|
else
|
|
i.fa.fa-wrench
|
|
| {{_ 'restore'}}
|
|
if restoreResult
|
|
br
|
|
span.quiet {{restoreResult}}
|
|
//- Data health (models/lib/dataHealth.js): a Repair button where
|
|
//- the repair is safe; one that deletes data asks for a second click.
|
|
if problem.repair
|
|
.admin-problem-actions
|
|
button.js-data-health-repair.primary(data-check="{{problem.checkId}}" data-repair="{{problem.repair}}" disabled="{{#if dataHealthRepairing problem.checkId}}disabled{{/if}}")
|
|
if dataHealthRepairing problem.checkId
|
|
i.fa.fa-spinner.fa-spin
|
|
| {{_ 'repairing'}}
|
|
else if dataHealthConfirming problem.checkId
|
|
i.fa.fa-exclamation-triangle
|
|
| {{_ 'confirm'}}
|
|
else
|
|
i.fa.fa-wrench
|
|
| {{_ 'data-health-repair'}}
|
|
if dataHealthResult problem.checkId
|
|
br
|
|
span.quiet {{dataHealthResult problem.checkId}}
|
|
|
|
//- Data health: the nightly read-only scan behind the "Data health: ..."
|
|
//- problems above.
|
|
//- What the checks are and when it runs: docs/Features/Admin-Panel/
|
|
//- Problems/Data-Health.md; each finding explains itself above.
|
|
h2 {{_ 'data-health'}}
|
|
p.quiet {{_ 'last-run'}}: {{dataHealthStatus}}
|
|
.admin-problem-actions
|
|
button.js-data-health-scan.primary(disabled="{{#if dataHealthScanning}}disabled{{/if}}")
|
|
if dataHealthScanning
|
|
i.fa.fa-spinner.fa-spin
|
|
else
|
|
i.fa.fa-search
|
|
| {{_ 'start'}}
|
|
|
|
//- #6942: why sign-ins were refused - one row per reason, how often, the
|
|
//- latest account and address, and how to fix it. The person signing in
|
|
//- still sees one generic message (models/lib/loginRefusals.js).
|
|
if loginRefusals.length
|
|
h2 {{_ 'login-refusals'}}
|
|
table.admin-login-refusals
|
|
tbody
|
|
each loginRefusals
|
|
tr
|
|
td
|
|
strong {{_ labelKey}}
|
|
td {{_ 'data-access-times'}} {{count}}
|
|
td
|
|
if at
|
|
| {{when at}}
|
|
if username
|
|
| · {{username}}
|
|
if ip
|
|
| · {{ip}}
|
|
td
|
|
a(href="{{paneHref pane}}") {{_ fixKey}}
|
|
|
|
h2 {{_ 'problems'}}
|
|
if hasProblems
|
|
p {{_ 'problems-summary-help'}}
|
|
.admin-problem-banner
|
|
each area in areas
|
|
label.admin-problem-item
|
|
input.js-problem-check(type="checkbox" data-stream="{{area.stream}}")
|
|
i.fa.fa-exclamation-triangle
|
|
span.admin-problem-path {{_ 'admin-panel'}} → {{_ 'problems'}} → {{areaLabel area.stream}}
|
|
span.admin-problem-count {{_ 'new-problems-count' count=area.count}}
|
|
//- #6942: the area's most frequent kinds, as a status dashboard does.
|
|
if area.top.length
|
|
ul.admin-problem-top
|
|
each row in area.top
|
|
li
|
|
span.admin-problem-kind {{row.bleed}}
|
|
if row.source
|
|
span.quiet {{row.source}}
|
|
| · {{_ 'data-access-times'}} {{row.count}}
|
|
if row.at
|
|
| · {{when row.at}}
|
|
if row.who
|
|
| · {{row.who}}
|
|
.admin-problem-actions
|
|
button.js-ack-checked.primary {{_ 'acknowledge'}}
|
|
button.js-clear-checked {{_ 'clear-problems'}}
|
|
else
|
|
p {{_ 'no-new-problems'}}
|