Commit 576ad4453afbcf8a68e6740bf66d9c1365f9e44c

Authored by Dmitriy Zaporozhets
1 parent adc51a9b

Replace all occurs of {{created_at}} at project wall

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/assets/javascripts/wall.js.coffee
@@ -60,7 +60,7 @@ class Wall @@ -60,7 +60,7 @@ class Wall
60 renderNote: (note) -> 60 renderNote: (note) ->
61 template = @noteTemplate() 61 template = @noteTemplate()
62 template = template.replace('{{author_name}}', note.author.name) 62 template = template.replace('{{author_name}}', note.author.name)
63 - template = template.replace('{{created_at}}', note.created_at) 63 + template = template.replace(/{{created_at}}/g, note.created_at)
64 template = template.replace('{{text}}', linkify(sanitize(note.body))) 64 template = template.replace('{{text}}', linkify(sanitize(note.body)))
65 65
66 if note.attachment 66 if note.attachment