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
Léo-Paul Géneau
gitlab-ce
Commits
12506abf
Commit
12506abf
authored
Mar 03, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Single if statement
parent
538f3e0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+3
-5
No files found.
app/helpers/application_helper.rb
View file @
12506abf
...
...
@@ -196,11 +196,9 @@ module ApplicationHelper
output
=
content_tag
(
:span
,
"Edited "
)
output
<<
time_ago_with_tooltip
(
object
.
updated_at
,
placement:
placement
,
html_class:
html_class
)
if
include_author
if
object
.
updated_by
&&
object
.
updated_by
!=
object
.
author
output
<<
content_tag
(
:span
,
" by "
)
output
<<
link_to_member
(
object
.
project
,
object
.
updated_by
,
avatar:
false
,
author_class:
nil
)
end
if
include_author
&&
object
.
updated_by
&&
object
.
updated_by
!=
object
.
author
output
<<
content_tag
(
:span
,
" by "
)
output
<<
link_to_member
(
object
.
project
,
object
.
updated_by
,
avatar:
false
,
author_class:
nil
)
end
output
...
...
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