##// END OF EJS Templates
remove inline comments forms for anonymous users
marcink -
r1678:aa6a1c6f beta
parent child Browse files
Show More
@@ -35,6 +35,7 b''
35 35 <%def name="comment_inline_form()">
36 36 <div id='comment-inline-form-template' style="display:none">
37 37 <div class="comment-inline-form">
38 %if c.rhodecode_user.username != 'default':
38 39 ${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=c.changeset.raw_id))}
39 40 <div class="clearfix">
40 41 <div class="comment-help">${_('Commenting on line')} {1} ${_('comments parsed using RST syntax')}</div>
@@ -47,6 +48,18 b''
47 48 ${h.reset('hide-inline-form', _('Hide'), class_='ui-button-small hide-inline-form')}
48 49 </div>
49 50 ${h.end_form()}
51 %else:
52 ${h.form('')}
53 <div class="clearfix">
54 <div class="comment-help">
55 ${'You need to be logged in to comment.'} <a href="${h.url('login_home',came_from=h.url.current())}">${_('Login now')}</a>
56 </div>
57 </div>
58 <div class="comment-button">
59 ${h.reset('hide-inline-form', _('Hide'), class_='ui-button-small hide-inline-form')}
60 </div>
61 ${h.end_form()}
62 %endif
50 63 </div>
51 64 </div>
52 65 </%def> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now