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
7a3290a2
Commit
7a3290a2
authored
Sep 07, 2017
by
Matthew Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show recipient for owner notification
parent
7945a7ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/components/activity/activity.jsx
src/components/activity/activity.jsx
+9
-3
No files found.
src/components/activity/activity.jsx
View file @
7a3290a2
...
@@ -36,12 +36,18 @@ var Activity = React.createClass({
...
@@ -36,12 +36,18 @@ var Activity = React.createClass({
<
ul
key=
"activity-ul"
>
<
ul
key=
"activity-ul"
>
{
this
.
props
.
items
.
map
(
function
(
item
)
{
{
this
.
props
.
items
.
map
(
function
(
item
)
{
if
(
item
.
message
.
replace
(
/
\s
/g
,
''
))
{
if
(
item
.
message
.
replace
(
/
\s
/g
,
''
))
{
var
actorProfileUrl
=
'
/users/
'
+
item
.
actor
.
username
+
'
/
'
;
var
username
=
''
;
var
actionDate
=
new
Date
(
item
.
datetime_created
+
'
Z
'
);
if
(
item
.
type
===
22
)
{
username
=
item
.
recipient_username
;
}
else
{
username
=
item
.
actor
.
username
;
}
var
actorProfileUrl
=
'
/users/
'
+
username
+
'
/
'
;
var
activityMessageHTML
=
(
var
activityMessageHTML
=
(
'
<a href=
'
+
actorProfileUrl
+
'
>
'
+
item
.
actor
.
username
+
'
</a>
'
+
'
<a href=
'
+
actorProfileUrl
+
'
>
'
+
username
+
'
</a>
'
+
item
.
message
item
.
message
);
);
var
actionDate
=
new
Date
(
item
.
datetime_created
+
'
Z
'
);
return
(
return
(
<
li
key=
{
item
.
pk
}
>
<
li
key=
{
item
.
pk
}
>
<
a
href=
{
actorProfileUrl
}
>
<
a
href=
{
actorProfileUrl
}
>
...
...
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