summaryrefslogtreecommitdiff
path: root/app/helpers/notes_helper.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-06-17 14:04:14 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-06-17 16:37:10 -0400
commit8c8cd8be43e1e50a3dd99d1e491cfcb4fb54f945 (patch)
tree995e73b558f148f33a7ef2a294ac2fdb6d024ae0 /app/helpers/notes_helper.rb
parente12b643192a945f5ff40da3dd1883616ae04e8d9 (diff)
downloadgitlab-ce-8c8cd8be43e1e50a3dd99d1e491cfcb4fb54f945.tar.gz
Update time_ago_with_tooltip helper
Minor refactoring, add specs, changes arguments to use keywords.
Diffstat (limited to 'app/helpers/notes_helper.rb')
-rw-r--r--app/helpers/notes_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/notes_helper.rb b/app/helpers/notes_helper.rb
index a7c1fa0b071..dda9b17d61d 100644
--- a/app/helpers/notes_helper.rb
+++ b/app/helpers/notes_helper.rb
@@ -25,13 +25,13 @@ module NotesHelper
def note_timestamp(note)
# Shows the created at time and the updated at time if different
- ts = "#{time_ago_with_tooltip(note.created_at, 'bottom', 'note_created_ago')}"
+ ts = time_ago_with_tooltip(note.created_at, placement: 'bottom', html_class: 'note_created_ago')
if note.updated_at != note.created_at
ts << capture_haml do
haml_tag :span do
haml_concat '&middot;'
haml_concat icon('edit', title: 'edited')
- haml_concat time_ago_with_tooltip(note.updated_at, 'bottom', 'note_edited_ago')
+ haml_concat time_ago_with_tooltip(note.updated_at, placement: 'bottom', html_class: 'note_edited_ago')
end
end
end