Mercurial > kallithea
comparison rhodecode/templates/changeset/changeset_file_comment.html @ 1678:aa6a1c6f2ac5 beta
remove inline comments forms for anonymous users
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 13 Nov 2011 16:38:34 +0200 |
parents | 7276b170ce8b |
children | cf370b6d3977 |
comparison
equal
deleted
inserted
replaced
1677:7276b170ce8b | 1678:aa6a1c6f2ac5 |
---|---|
33 | 33 |
34 | 34 |
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> |
41 ${h.textarea('text')} | 42 ${h.textarea('text')} |
42 </div> | 43 </div> |
45 <input type="hidden" name="line" value="{1}"> | 46 <input type="hidden" name="line" value="{1}"> |
46 ${h.submit('save', _('Comment'), class_='ui-button-small')} | 47 ${h.submit('save', _('Comment'), class_='ui-button-small')} |
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> | 65 </%def> |