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
Jérome Perrin
gitlab-ce
Commits
2148e199
Commit
2148e199
authored
Nov 08, 2014
by
Nikita Verkhovin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add issue edited timestamp
parent
36f9224e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
app/helpers/issues_helper.rb
app/helpers/issues_helper.rb
+13
-0
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+1
-1
No files found.
app/helpers/issues_helper.rb
View file @
2148e199
...
...
@@ -62,6 +62,19 @@ module IssuesHelper
''
end
def
issue_timestamp
(
issue
)
# Shows the created at time and the updated at time if different
ts
=
"
#{
time_ago_with_tooltip
(
issue
.
created_at
,
'bottom'
,
'note_created_ago'
)
}
"
if
issue
.
updated_at
!=
issue
.
created_at
ts
<<
capture_haml
do
haml_tag
:small
do
haml_concat
" (Edited
#{
time_ago_with_tooltip
(
issue
.
updated_at
,
'bottom'
,
'issue_edited_ago'
)
}
)"
end
end
end
ts
.
html_safe
end
# Checks if issues_tracker setting exists in gitlab.yml
def
external_issues_tracker_enabled?
Gitlab
.
config
.
issues_tracker
&&
Gitlab
.
config
.
issues_tracker
.
values
.
any?
...
...
app/views/projects/issues/show.html.haml
View file @
2148e199
...
...
@@ -39,7 +39,7 @@
Open
.creator
Created by
#{
link_to_member
(
@project
,
@issue
.
author
)
}
#{
time_ago_with_tooltip
(
@issue
.
created_at
)
}
Created by
#{
link_to_member
(
@project
,
@issue
.
author
)
}
#{
issue_timestamp
(
@issue
)
}
%h4
.title
=
gfm
escape_once
(
@issue
.
title
)
...
...
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