comments: fix UX for not logged users when they try to comment.
This commit is contained in:
parent
192aab4d86
commit
174cb4eceb
1 changed files with 6 additions and 0 deletions
|
|
@ -645,12 +645,18 @@ return '%s_%s_%i' % (h.md5_safe(commit+filename), type, line)
|
|||
<div class="reply-thread-container-wrapper${extra_class}" style="${extra_style}">
|
||||
<div class="reply-thread-container${extra_class}">
|
||||
<div class="reply-thread-gravatar">
|
||||
% if c.rhodecode_user.username != h.DEFAULT_USER:
|
||||
${base.gravatar(c.rhodecode_user.email, 20, tooltip=True, user=c.rhodecode_user)}
|
||||
% endif
|
||||
</div>
|
||||
|
||||
<div class="reply-thread-reply-button">
|
||||
% if c.rhodecode_user.username != h.DEFAULT_USER:
|
||||
## initial reply button, some JS logic can append here a FORM to leave a first comment.
|
||||
<button class="cb-comment-add-button" onclick="return Rhodecode.comments.createComment(this, '${f_path}', '${line_no}', null)">Reply...</button>
|
||||
% endif
|
||||
</div>
|
||||
##% endif
|
||||
<div class="reply-thread-last"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue