diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-29 08:01:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-29 08:01:41 +0000 |
commit | 152f973833bc5f4ed444b9086a8b0ee48a4b9785 (patch) | |
tree | e88cb31d012d194718d89394eb1daf3a6d1173bb /app/helpers/wiki_helper.rb | |
parent | 824e3a504936d1374ebffbc9abdaa676701d2693 (diff) | |
download | redmine-152f973833bc5f4ed444b9086a8b0ee48a4b9785.tar.gz redmine-152f973833bc5f4ed444b9086a8b0ee48a4b9785.zip |
Add update info at the bottom of the wiki page.
git-svn-id: http://svn.redmine.org/redmine/trunk@16905 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/wiki_helper.rb')
-rw-r--r-- | app/helpers/wiki_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/wiki_helper.rb b/app/helpers/wiki_helper.rb index 2a49f0871..88a73be31 100644 --- a/app/helpers/wiki_helper.rb +++ b/app/helpers/wiki_helper.rb @@ -64,4 +64,8 @@ module WikiHelper project_wiki_page_path(page.project, page.title) end end + + def wiki_content_update_info(content) + l(:label_updated_time_by, :author => content.author.name, :age => distance_of_time_in_words(Time.now, content.updated_on)).html_safe + end end |