Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
be7e83db
Commit
be7e83db
authored
Nov 28, 2017
by
Matthew Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change avatar to use `uploads` endpoint
parent
425f2273
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
23 deletions
+30
-23
src/components/grid/grid.jsx
src/components/grid/grid.jsx
+30
-23
No files found.
src/components/grid/grid.jsx
View file @
be7e83db
...
...
@@ -32,7 +32,8 @@ var Grid = React.createClass({
if
(
this
.
props
.
itemType
==
'
projects
'
)
{
return
(
<
Thumbnail
key=
{
key
}
<
Thumbnail
key=
{
key
}
showLoves=
{
this
.
props
.
showLoves
}
showFavorites=
{
this
.
props
.
showFavorites
}
showRemixes=
{
this
.
props
.
showRemixes
}
...
...
@@ -42,23 +43,29 @@ var Grid = React.createClass({
href=
{
href
}
title=
{
item
.
title
}
src=
{
item
.
image
}
avatar=
{
'
https://cdn2.scratch.mit.edu/get_image/user/
'
+
item
.
author
.
id
+
'
_32x32.png
'
}
avatar=
{
'
https://uploads.scratch.mit.edu/users/avatars/
'
+
item
.
author
.
id
+
'
.png
'
}
creator=
{
item
.
author
.
username
}
loves=
{
item
.
stats
.
loves
}
favorites=
{
item
.
stats
.
favorites
}
remixes=
{
item
.
stats
.
remixes
}
views=
{
item
.
stats
.
views
}
/>
views=
{
item
.
stats
.
views
}
/>
);
}
else
{
return
(
<
Thumbnail
key=
{
key
}
<
Thumbnail
key=
{
key
}
type=
{
'
gallery
'
}
href=
{
href
}
title=
{
item
.
title
}
src=
{
item
.
image
}
owner=
{
item
.
owner
}
/>
owner=
{
item
.
owner
}
/>
);
}
}.
bind
(
this
))
}
...
...
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