Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
ae69e876
Commit
ae69e876
authored
Feb 14, 2017
by
Eric Eastwood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore pagination to admin abuse reports
parent
14527293
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
app/views/admin/abuse_reports/index.html.haml
app/views/admin/abuse_reports/index.html.haml
+1
-0
changelogs/unreleased/28059-add-pagination-to-admin-abuse-reports.yml
...nreleased/28059-add-pagination-to-admin-abuse-reports.yml
+4
-0
spec/features/admin/admin_abuse_reports_spec.rb
spec/features/admin/admin_abuse_reports_spec.rb
+19
-0
No files found.
app/views/admin/abuse_reports/index.html.haml
View file @
ae69e876
...
...
@@ -12,6 +12,7 @@
%th
.wide
Message
%th
Action
=
render
@abuse_reports
=
paginate
@abuse_reports
,
theme:
'gitlab'
-
else
.empty-state
.text-center
...
...
changelogs/unreleased/28059-add-pagination-to-admin-abuse-reports.yml
0 → 100644
View file @
ae69e876
---
title
:
Restore pagination to admin abuse reports
merge_request
:
author
:
spec/features/admin/admin_abuse_reports_spec.rb
View file @
ae69e876
...
...
@@ -30,5 +30,24 @@ describe "Admin::AbuseReports", feature: true, js: true do
end
end
end
describe
'if a many users have been reported for abuse'
do
let
(
:report_count
)
{
AbuseReport
.
default_per_page
+
3
}
before
do
report_count
.
times
do
create
(
:abuse_report
,
user:
create
(
:user
))
end
end
describe
'in the abuse report view'
do
it
'presents information about abuse report'
do
visit
admin_abuse_reports_path
expect
(
page
).
to
have_selector
(
'.pagination'
)
expect
(
page
).
to
have_selector
(
'.pagination .page'
,
count:
(
report_count
.
to_f
/
AbuseReport
.
default_per_page
).
ceil
)
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment