Mercurial > kallithea
comparison rhodecode/templates/changeset/changeset_file_comment.html @ 2391:91fae60bf2b6 codereview
merge with beta
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 05 Jun 2012 21:22:23 +0200 |
parents | d3f1b71099ab c2f131502037 |
children | 9f37281195a2 |
comparison
equal
deleted
inserted
replaced
2364:9d61aad859bc | 2391:91fae60bf2b6 |
---|---|
35 </%def> | 35 </%def> |
36 | 36 |
37 | 37 |
38 <%def name="comment_inline_form(changeset)"> | 38 <%def name="comment_inline_form(changeset)"> |
39 <div id='comment-inline-form-template' style="display:none"> | 39 <div id='comment-inline-form-template' style="display:none"> |
40 <div class="comment-inline-form"> | 40 <div class="comment-inline-form ac"> |
41 %if c.rhodecode_user.username != 'default': | 41 %if c.rhodecode_user.username != 'default': |
42 <div class="overlay"><div class="overlay-text">${_('Submitting...')}</div></div> | 42 <div class="overlay"><div class="overlay-text">${_('Submitting...')}</div></div> |
43 ${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=changeset.raw_id),class_='inline-form')} | 43 ${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=changeset.raw_id),class_='inline-form')} |
44 <div class="clearfix"> | 44 <div class="clearfix"> |
45 <div class="comment-help">${_('Commenting on line {1}.')} | 45 <div class="comment-help">${_('Commenting on line {1}.')} |
46 ${(_('Comments parsed using %s syntax with %s support.') % (('<a href="%s">RST</a>' % h.url('rst_help')), | 46 ${(_('Comments parsed using %s syntax with %s support.') % (('<a href="%s">RST</a>' % h.url('rst_help')), |
47 '<span style="color:#003367" class="tooltip" title="%s">@mention</span>' % | 47 '<span style="color:#003367" class="tooltip" title="%s">@mention</span>' % |
48 _('Use @username inside this text to send notification to this RhodeCode user')))|n}</div> | 48 _('Use @username inside this text to send notification to this RhodeCode user')))|n} |
49 <textarea id="text_{1}" name="text"></textarea> | 49 </div> |
50 <div class="mentions-container" id="mentions_container_{1}"></div> | |
51 <textarea id="text_{1}" name="text" class="yui-ac-input"></textarea> | |
50 </div> | 52 </div> |
51 <div class="comment-button"> | 53 <div class="comment-button"> |
52 <input type="hidden" name="f_path" value="{0}"> | 54 <input type="hidden" name="f_path" value="{0}"> |
53 <input type="hidden" name="line" value="{1}"> | 55 <input type="hidden" name="line" value="{1}"> |
54 ${h.submit('save', _('Comment'), class_='ui-btn save-inline-form')} | 56 ${h.submit('save', _('Comment'), class_='ui-btn save-inline-form')} |
98 <div id="comment-tr-${co.comment_id}"> | 100 <div id="comment-tr-${co.comment_id}"> |
99 ${comment_block(co)} | 101 ${comment_block(co)} |
100 </div> | 102 </div> |
101 %endfor | 103 %endfor |
102 %if c.rhodecode_user.username != 'default': | 104 %if c.rhodecode_user.username != 'default': |
103 <div class="comment-form"> | 105 <div class="comment-form ac"> |
104 ${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=changeset.raw_id))} | 106 ${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=changeset.raw_id))} |
105 <strong>${_('Leave a comment')}</strong> | 107 <strong>${_('Leave a comment')}</strong> |
106 <div class="clearfix"> | 108 <div class="clearfix"> |
107 <div class="comment-help"> | 109 <div class="comment-help"> |
108 ${(_('Comments parsed using %s syntax with %s support.') % (('<a href="%s">RST</a>' % h.url('rst_help')), | 110 ${(_('Comments parsed using %s syntax with %s support.') % (('<a href="%s">RST</a>' % h.url('rst_help')), |
117 <div class=""> | 119 <div class=""> |
118 <img src="${h.url('/images/icons/flag_status_%s.png' % status)}" /> <input ${'checked="checked"' if status == h.changeset_status(c.rhodecode_db_repo, c.changeset.raw_id) else ''}" type="radio" name="changeset_status" value="${status}"> <label>${lbl}</label> | 120 <img src="${h.url('/images/icons/flag_status_%s.png' % status)}" /> <input ${'checked="checked"' if status == h.changeset_status(c.rhodecode_db_repo, c.changeset.raw_id) else ''}" type="radio" name="changeset_status" value="${status}"> <label>${lbl}</label> |
119 </div> | 121 </div> |
120 %endfor | 122 %endfor |
121 </div> | 123 </div> |
122 ${h.textarea('text')} | 124 <div class="mentions-container" id="mentions_container"></div> |
125 ${h.textarea('text')} | |
123 </div> | 126 </div> |
124 <div class="comment-button"> | 127 <div class="comment-button"> |
125 ${h.submit('save', _('Comment'), class_='ui-button')} | 128 ${h.submit('save', _('Comment'), class_='ui-button')} |
126 </div> | 129 </div> |
127 ${h.end_form()} | 130 ${h.end_form()} |
128 </div> | 131 </div> |
129 %endif | 132 %endif |
130 </div> | 133 </div> |
134 <script> | |
135 YUE.onDOMReady(function () { | |
136 MentionsAutoComplete('text', 'mentions_container', _USERS_AC_DATA, _GROUPS_AC_DATA); | |
137 }); | |
138 </script> | |
131 </%def> | 139 </%def> |