リビジョン 04643542
| app/helpers/glossary_helper.rb | ||
|---|---|---|
|
|
||
|
|
||
|
def updated_by(updated, author)
|
||
|
time_tag = content_tag('acronym', distance_of_time_in_words(Time.now, updated), :title => format_time(updated))
|
||
|
author_tag = (author.is_a?(User) && !author.is_a?(AnonymousUser)) ? link_to(h(author), :controller => 'account', :action => 'show', :id => author) : h(author || 'Anonymous')
|
||
|
l(:label_updated_time_by, :author => author_tag, :age => time_tag)
|
||
|
l(:label_updated_time_by,
|
||
|
:author => link_to_user(author), :age => time_tag(updated)).html_safe
|
||
|
end
|
||
|
|
||
|
end
|
||
compatible to Redmine1.4 and add Frech language (merge from Martin's github)