[refs #194] render user name

This commit is contained in:
Alexander Machehin 2012-03-06 18:29:42 +06:00
parent 9e6d06f1c9
commit af69c02a6d
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class CommentPresenter < ApplicationPresenter
end
def header
res = link_to @user.uname, user_path(@user.uname)
res = link_to "#{@user.uname} (#{@user.name})", user_path(@user.uname)
res += ' ' + t("layout.comments.has_commented")
end

View File

@ -8,7 +8,7 @@
.image
=image_tag(@issue.creator.avatar(42), :alt => 'avatar') if @issue.creator
.text
%span.name=link_to(@issue.creator.uname, user_path(@issue.creator)) if @issue.creator
%span.name=link_to("#{@issue.creator.uname} (#{@issue.creator.name})", user_path(@issue.creator)) if @issue.creator
%br/
%span.date=@issue.created_at.to_s(:long)
%br/