##// 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
35 <%def name="comment_inline_form()">
35 <%def name="comment_inline_form()">
36 <div id='comment-inline-form-template' style="display:none">
36 <div id='comment-inline-form-template' style="display:none">
37 <div class="comment-inline-form">
37 <div class="comment-inline-form">
38 %if c.rhodecode_user.username != 'default':
38 ${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=c.changeset.raw_id))}
39 ${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=c.changeset.raw_id))}
39 <div class="clearfix">
40 <div class="clearfix">
40 <div class="comment-help">${_('Commenting on line')} {1} ${_('comments parsed using RST syntax')}</div>
41 <div class="comment-help">${_('Commenting on line')} {1} ${_('comments parsed using RST syntax')}</div>
@@ -47,6 +48,18
47 ${h.reset('hide-inline-form', _('Hide'), class_='ui-button-small hide-inline-form')}
48 ${h.reset('hide-inline-form', _('Hide'), class_='ui-button-small hide-inline-form')}
48 </div>
49 </div>
49 ${h.end_form()}
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 </div>
63 </div>
51 </div>
64 </div>
52 </%def> No newline at end of file
65 </%def>
General Comments 0
You need to be logged in to leave comments. Login now