Displaying 1 result from an estimated 1 matches for "link_to_author".
2006 May 04
3
Please explain me this ruby code...
Hi all,
This is small code from typo 2.6.0''s "articles_helper.rb" file
================================
def author_link(article)
if config[''link_to_author''] and article.user and
article.user.email.to_s.size>0
"<a
href=\"mailto:#{article.user.email}\">#{article.user.name}</a>"
elsif article.user and article.user.name.to_s.size>0
article.user.name
else
article.author
end
e...