From d68f8401b3f0c3a9b2c887122979e83d95409a69 Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Sun, 19 Feb 2012 21:56:18 +0200 Subject: [PATCH] wiki: improve history --- app/views/wikis/history.html.haml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/wikis/history.html.haml b/app/views/wikis/history.html.haml index 513f3777bf4..53bfe7ae840 100644 --- a/app/views/wikis/history.html.haml +++ b/app/views/wikis/history.html.haml @@ -9,6 +9,11 @@ - @wikis.each_with_index do |wiki_page, i| %tr %td= i + 1 - %td= link_to wiki_page.created_at.to_s(:short), project_wiki_path(@project, wiki_page, :old_page_id => wiki_page.id) + %td + = link_to wiki_page.created_at.to_s(:short), project_wiki_path(@project, wiki_page, :old_page_id => wiki_page.id) + ( + = time_ago_in_words(wiki_page.created_at) + ago + ) %td= wiki_page.user.name