Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
680642f2
Unverified
Commit
680642f2
authored
Jul 08, 2019
by
Kyle Keating
Committed by
GitHub
Jul 08, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1225 from hypothesis/moderation-banner-bug
Fix rendering bug in moderation-banner component
parents
953c22bf
ace29e63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
24 deletions
+1
-24
moderation-banner.js
src/sidebar/components/moderation-banner.js
+1
-1
moderation-banner.html
src/sidebar/templates/moderation-banner.html
+0
-23
No files found.
src/sidebar/components/moderation-banner.js
View file @
680642f2
...
...
@@ -75,7 +75,7 @@ function ModerationBanner({ annotation, api, flash }) {
}
return
(
<
div
className
=
{
bannerClasses
}
>
{
flagCount
&&
!
annotation
.
hidden
&&
(
{
!!
flagCount
&&
!
annotation
.
hidden
&&
(
<
span
>
Flagged
for
review
x
{
flagCount
}
<
/span
>
)}
{
annotation
.
hidden
&&
(
...
...
src/sidebar/templates/moderation-banner.html
deleted
100644 → 0
View file @
953c22bf
<div
class=
"moderation-banner"
ng-if=
"vm.isHiddenOrFlagged()"
ng-class=
"{'is-flagged': vm.flagCount() > 0,
'is-hidden': vm.isHidden(),
'is-reply': vm.isReply()}"
>
<span
ng-if=
"vm.flagCount() > 0 && !vm.isHidden()"
>
Flagged for review x{{ vm.flagCount() }}
</span>
<span
ng-if=
"vm.isHidden()"
>
Hidden from users. Flagged x{{ vm.flagCount() }}
</span>
<span
class=
"u-stretch"
></span>
<button
ng-if=
"!vm.isHidden()"
ng-click=
"vm.hideAnnotation()"
title=
"Hide this annotation from non-moderators"
>
Hide
</button>
<button
ng-if=
"vm.isHidden()"
ng-click=
"vm.unhideAnnotation()"
title=
"Make this annotation visible to everyone"
>
Unhide
</button>
</div>
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