# HG changeset patch # User Milka Kuzminski # Date 2020-11-24 21:28:12 # Node ID 629b4bc9606dc57dc4cd095751065357c094bdcd # Parent b81539945963e7c64e5b284b706861083f3bbc0e comments: fix UX for not logged users when they try to comment. diff --git a/rhodecode/templates/codeblocks/diffs.mako b/rhodecode/templates/codeblocks/diffs.mako --- a/rhodecode/templates/codeblocks/diffs.mako +++ b/rhodecode/templates/codeblocks/diffs.mako @@ -645,12 +645,18 @@ return '%s_%s_%i' % (h.md5_safe(commit+f
+ % if c.rhodecode_user.username != h.DEFAULT_USER: ${base.gravatar(c.rhodecode_user.email, 20, tooltip=True, user=c.rhodecode_user)} + % endif
+
+ % if c.rhodecode_user.username != h.DEFAULT_USER: ## initial reply button, some JS logic can append here a FORM to leave a first comment. + % endif
+ ##% endif