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
8edf6444
Commit
8edf6444
authored
8 years ago
by
bitcoiner
Committed by
Valentine Zavgorodnev
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Show Resteemed on Blog (#426)
parent
58c7762a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/components/cards/PostSummary.jsx
+7
-0
7 additions, 0 deletions
app/components/cards/PostSummary.jsx
app/components/cards/PostsList.jsx
+2
-1
2 additions, 1 deletion
app/components/cards/PostsList.jsx
app/components/pages/UserProfile.jsx
+1
-0
1 addition, 0 deletions
app/components/pages/UserProfile.jsx
with
10 additions
and
1 deletion
app/components/cards/PostSummary.jsx
+
7
−
0
View file @
8edf6444
...
@@ -52,6 +52,7 @@ export default class PostSummary extends React.Component {
...
@@ -52,6 +52,7 @@ export default class PostSummary extends React.Component {
render
()
{
render
()
{
const
{
currentCategory
,
thumbSize
,
ignore
,
onClick
}
=
this
.
props
;
const
{
currentCategory
,
thumbSize
,
ignore
,
onClick
}
=
this
.
props
;
const
{
post
,
content
,
pending_payout
,
total_payout
}
=
this
.
props
;
const
{
post
,
content
,
pending_payout
,
total_payout
}
=
this
.
props
;
const
{
account
}
=
this
.
props
;
if
(
!
content
)
return
null
;
if
(
!
content
)
return
null
;
const
archived
=
content
.
get
(
'
mode
'
)
===
'
archived
'
const
archived
=
content
.
get
(
'
mode
'
)
===
'
archived
'
...
@@ -63,6 +64,12 @@ export default class PostSummary extends React.Component {
...
@@ -63,6 +64,12 @@ export default class PostSummary extends React.Component {
</
div
>
</
div
>
}
}
if
(
account
&&
account
!=
content
.
get
(
'
author
'
))
{
reblogged_by
=
<
div
className
=
"PostSummary__reblogged_by"
>
<
Icon
name
=
"reblog"
/>
Resteemed
</
div
>
}
const
{
gray
,
pictures
,
authorRepLog10
,
hasFlag
}
=
content
.
get
(
'
stats
'
,
Map
()).
toJS
()
const
{
gray
,
pictures
,
authorRepLog10
,
hasFlag
}
=
content
.
get
(
'
stats
'
,
Map
()).
toJS
()
const
p
=
extractContent
(
immutableAccessor
,
content
);
const
p
=
extractContent
(
immutableAccessor
,
content
);
let
desc
=
p
.
desc
let
desc
=
p
.
desc
...
...
This diff is collapsed.
Click to expand it.
app/components/cards/PostsList.jsx
+
2
−
1
View file @
8edf6444
...
@@ -154,12 +154,13 @@ class PostsList extends React.Component {
...
@@ -154,12 +154,13 @@ class PostsList extends React.Component {
render
()
{
render
()
{
const
{
posts
,
loading
,
category
,
emptyText
}
=
this
.
props
;
const
{
posts
,
loading
,
category
,
emptyText
}
=
this
.
props
;
const
{
comments
}
=
this
.
props
const
{
comments
}
=
this
.
props
const
{
account
}
=
this
.
props
const
{
thumbSize
,
showPost
}
=
this
.
state
const
{
thumbSize
,
showPost
}
=
this
.
state
if
(
!
loading
&&
!
posts
.
length
&&
emptyText
)
{
if
(
!
loading
&&
!
posts
.
length
&&
emptyText
)
{
return
<
Callout
body
=
{
emptyText
}
type
=
"success"
/>;
return
<
Callout
body
=
{
emptyText
}
type
=
"success"
/>;
}
}
const
renderSummary
=
items
=>
items
.
map
(({
item
,
ignore
,
netVoteSign
,
authorRepLog10
})
=>
<
li
key
=
{
item
}
>
const
renderSummary
=
items
=>
items
.
map
(({
item
,
ignore
,
netVoteSign
,
authorRepLog10
})
=>
<
li
key
=
{
item
}
>
<
PostSummary
post
=
{
item
}
currentCategory
=
{
category
}
thumbSize
=
{
thumbSize
}
<
PostSummary
account
=
{
account
}
post
=
{
item
}
currentCategory
=
{
category
}
thumbSize
=
{
thumbSize
}
ignore
=
{
ignore
}
netVoteSign
=
{
netVoteSign
}
authorRepLog10
=
{
authorRepLog10
}
onClick
=
{
this
.
onPostClick
}
/>
ignore
=
{
ignore
}
netVoteSign
=
{
netVoteSign
}
authorRepLog10
=
{
authorRepLog10
}
onClick
=
{
this
.
onPostClick
}
/>
</
li
>)
</
li
>)
return
(
return
(
...
...
This diff is collapsed.
Click to expand it.
app/components/pages/UserProfile.jsx
+
1
−
0
View file @
8edf6444
...
@@ -163,6 +163,7 @@ export default class UserProfile extends React.Component {
...
@@ -163,6 +163,7 @@ export default class UserProfile extends React.Component {
if
(
account
.
blog
)
{
if
(
account
.
blog
)
{
tab_content
=
<
PostsList
tab_content
=
<
PostsList
emptyText
=
{
`Looks like
${
account
.
name
}
hasn't started blogging yet!`
}
emptyText
=
{
`Looks like
${
account
.
name
}
hasn't started blogging yet!`
}
account
=
{
account
.
name
}
posts
=
{
account
.
blog
}
posts
=
{
account
.
blog
}
loading
=
{
fetching
}
loading
=
{
fetching
}
category
=
"blog"
category
=
"blog"
...
...
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