Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
condenser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
condenser
Commits
d506793c
Commit
d506793c
authored
8 years ago
by
TimCliff
Browse files
Options
Downloads
Patches
Plain Diff
Do not show how many flags a post has received in post preview
parent
fb8bb7aa
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/components/cards/PostSummary.jsx
+1
-1
1 addition, 1 deletion
app/components/cards/PostSummary.jsx
app/components/elements/Voting.jsx
+0
-1
0 additions, 1 deletion
app/components/elements/Voting.jsx
with
1 addition
and
2 deletions
app/components/cards/PostSummary.jsx
+
1
−
1
View file @
d506793c
...
@@ -178,7 +178,7 @@ class PostSummary extends React.Component {
...
@@ -178,7 +178,7 @@ class PostSummary extends React.Component {
return
(
return
(
<
article
className
=
{
'
PostSummary hentry
'
+
(
thumb
?
'
with-image
'
:
'
'
)
+
commentClasses
.
join
(
'
'
)
}
itemScope
itemType
=
"http://schema.org/blogPost"
>
<
article
className
=
{
'
PostSummary hentry
'
+
(
thumb
?
'
with-image
'
:
'
'
)
+
commentClasses
.
join
(
'
'
)
}
itemScope
itemType
=
"http://schema.org/blogPost"
>
<
div
className
=
{
hasFlag
?
''
:
'
PostSummary__collapse
'
}
>
<
div
className
=
"
PostSummary__collapse
"
>
<
div
className
=
"float-right"
><
Voting
post
=
{
post
}
flag
/></
div
>
<
div
className
=
"float-right"
><
Voting
post
=
{
post
}
flag
/></
div
>
</
div
>
</
div
>
{
reblogged_by
}
{
reblogged_by
}
...
...
This diff is collapsed.
Click to expand it.
app/components/elements/Voting.jsx
+
0
−
1
View file @
d506793c
...
@@ -146,7 +146,6 @@ class Voting extends React.Component {
...
@@ -146,7 +146,6 @@ class Voting extends React.Component {
const
flagClickAction
=
myVote
===
null
||
myVote
===
0
?
this
.
toggleWeightDown
:
this
.
voteDown
const
flagClickAction
=
myVote
===
null
||
myVote
===
0
?
this
.
toggleWeightDown
:
this
.
voteDown
return
<
span
className
=
"Voting"
>
return
<
span
className
=
"Voting"
>
<
span
className
=
{
classDown
}
>
<
span
className
=
{
classDown
}
>
{
down_votes
>
0
&&
<
span
className
=
"Voting__button-downvotes"
>
{
down_votes
}
</
span
>
}
{
votingDownActive
?
down
:
<
a
href
=
"#"
onClick
=
{
flagClickAction
}
title
=
"Flag"
>
{
down
}
</
a
>
}
{
votingDownActive
?
down
:
<
a
href
=
"#"
onClick
=
{
flagClickAction
}
title
=
"Flag"
>
{
down
}
</
a
>
}
{
dropdown
}
{
dropdown
}
</
span
>
</
span
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment