BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
index.html.haml
app/views/admin/abuse_reports/index.html.haml
+1
-0
28059-add-pagination-to-admin-abuse-reports.yml
...nreleased/28059-add-pagination-to-admin-abuse-reports.yml
+4
-0
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 @@
...
@@ -12,6 +12,7 @@
%th
.wide
Message
%th
.wide
Message
%th
Action
%th
Action
=
render
@abuse_reports
=
render
@abuse_reports
=
paginate
@abuse_reports
,
theme:
'gitlab'
-
else
-
else
.empty-state
.empty-state
.text-center
.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
...
@@ -30,5 +30,24 @@ describe "Admin::AbuseReports", feature: true, js: true do
end
end
end
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
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