summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-18 19:39:29 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-18 19:39:29 -0800
commit3e17d15661a8c6bae2dc92fe09ed9e75a1f7a1a7 (patch)
treed3c74e4d00eaefddf7528b81f7b745afa4e22c3e
parent77adf81e870d2a8ec5faf296cca620dd7e485eb6 (diff)
downloadgitlab-ce-3e17d15661a8c6bae2dc92fe09ed9e75a1f7a1a7.tar.gz
Improve edited ago helpers
-rw-r--r--app/helpers/issues_helper.rb6
-rw-r--r--app/helpers/notes_helper.rb6
2 files changed, 8 insertions, 4 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index a5b393c1e3c..bcf108c5c48 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -67,8 +67,10 @@ module IssuesHelper
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')})"
+ haml_tag :span do
+ haml_concat '&middot;'
+ haml_concat '<i class="fa fa-edit" title="edited"></i> '
+ haml_concat time_ago_with_tooltip(issue.updated_at, 'bottom', 'issue_edited_ago')
end
end
end
diff --git a/app/helpers/notes_helper.rb b/app/helpers/notes_helper.rb
index 6d2244b8714..8f493f5d331 100644
--- a/app/helpers/notes_helper.rb
+++ b/app/helpers/notes_helper.rb
@@ -20,8 +20,10 @@ module NotesHelper
ts = "#{time_ago_with_tooltip(note.created_at, 'bottom', 'note_created_ago')}"
if note.updated_at != note.created_at
ts << capture_haml do
- haml_tag :small do
- haml_concat " (Edited #{time_ago_with_tooltip(note.updated_at, 'bottom', 'note_edited_ago')})"
+ haml_tag :span do
+ haml_concat '&middot;'
+ haml_concat '<i class="fa fa-edit" title="edited"></i> '
+ haml_concat time_ago_with_tooltip(note.updated_at, 'bottom', 'note_edited_ago')
end
end
end