Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
b82870af
Commit
b82870af
authored
May 02, 2017
by
blackst0ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add author to 'Edited time ago by ...' message
parent
323596f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+1
-1
No files found.
app/helpers/application_helper.rb
View file @
b82870af
...
@@ -187,7 +187,7 @@ module ApplicationHelper
...
@@ -187,7 +187,7 @@ module ApplicationHelper
output
=
content_tag
(
:span
,
"Edited "
)
output
=
content_tag
(
:span
,
"Edited "
)
output
<<
time_ago_with_tooltip
(
object
.
updated_at
,
placement:
placement
,
html_class:
html_class
)
output
<<
time_ago_with_tooltip
(
object
.
updated_at
,
placement:
placement
,
html_class:
html_class
)
if
include_author
&&
object
.
updated_by
&&
object
.
updated_by
!=
object
.
author
if
include_author
&&
object
.
updated_by
output
<<
content_tag
(
:span
,
" by "
)
output
<<
content_tag
(
:span
,
" by "
)
output
<<
link_to_member
(
object
.
project
,
object
.
updated_by
,
avatar:
false
,
author_class:
nil
)
output
<<
link_to_member
(
object
.
project
,
object
.
updated_by
,
avatar:
false
,
author_class:
nil
)
end
end
...
...
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