Skip to content

Commit c1ca28f

Browse files
author
Oleg Komarov
committed
UI tweaks: make labels more descriptive, ask for confirmation in admin UI
1 parent 95f0481 commit c1ca28f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

options/locale/locale_en-US.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -693,9 +693,9 @@ block.list = Blocked users
693693
block.list.none = You have not blocked any users.
694694
695695
spamreport.info = Report a user as a spammer, reports are processed automatically, all content created by the user will be deleted!
696-
spamreport.report = Report
697-
spamreport.report.user = Report spam
698-
spamreport.title = Report a user
696+
spamreport.report = Schedule account purge
697+
spamreport.report.user = Purge spam account
698+
spamreport.title = Purge spam account
699699
spamreport.existing = The user has already been reported as a spammer, the report is %s.
700700
701701
[settings]

templates/admin/navbar.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</a>
1414
</div>
1515
</details>
16-
<details class="item toggleable-item" {{if or .PageIsAdminUsers .PageIsAdminEmails .PageIsAdminOrganizations .PageIsAdminAuthentications}}open{{end}}>
16+
<details class="item toggleable-item" {{if or .PageIsAdminUsers .PageIsAdminEmails .PageIsAdminOrganizations .PageIsAdminAuthentications .PageIsSpamReports}}open{{end}}>
1717
<summary>{{ctx.Locale.Tr "admin.identity_access"}}</summary>
1818
<div class="menu">
1919
<a class="{{if .PageIsAdminAuthentications}}active {{end}}item" href="{{AppSubUrl}}/-/admin/auths">

templates/admin/spamreports/list.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ document.addEventListener('DOMContentLoaded', function(event) {
7171
</div>
7272
{{if eq $.FilterStatus 0}}
7373
<br />
74-
<button type="submit" name="action" value="process" class="ui submit primary button btn-submit">Process</button>
75-
<button type="submit" name="action" value="dismiss" class="ui submit primary button btn-submit red">Dismiss</button>
74+
<button type="submit" name="action" value="process" class="ui submit primary button btn-submit red" onclick="return confirm('Purge selected accounts?');">Purge accounts</button>
75+
<button type="submit" name="action" value="dismiss" class="ui submit primary button btn-submit">Dismiss reports</button>
7676
{{end}}
7777
</form>
7878
{{template "base/paginate" .}}

0 commit comments

Comments
 (0)