[refs #194] render user name
This commit is contained in:
parent
9e6d06f1c9
commit
af69c02a6d
|
@ -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
|
||||
|
||||
|
|
|
@ -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/
|
||||
|
|
Loading…
Reference in New Issue