Mercurial > kallithea
comparison rhodecode/templates/changeset/changeset_file_comment.html @ 2369:c2f131502037 beta
Autocomplete fixes
- use translation MAP
- move translation to top level in order to be used inside rhodecode.js
- re-use user and groups data in changesets page
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 01 Jun 2012 23:29:41 +0200 |
parents | 5143b8df576c |
children | 91fae60bf2b6 f467c75544af |
comparison
equal
deleted
inserted
replaced
2368:5143b8df576c | 2369:c2f131502037 |
---|---|
28 </%def> | 28 </%def> |
29 | 29 |
30 | 30 |
31 <%def name="comment_inline_form(changeset)"> | 31 <%def name="comment_inline_form(changeset)"> |
32 <div id='comment-inline-form-template' style="display:none"> | 32 <div id='comment-inline-form-template' style="display:none"> |
33 <div class="comment-inline-form"> | 33 <div class="comment-inline-form ac"> |
34 %if c.rhodecode_user.username != 'default': | 34 %if c.rhodecode_user.username != 'default': |
35 <div class="overlay"><div class="overlay-text">${_('Submitting...')}</div></div> | 35 <div class="overlay"><div class="overlay-text">${_('Submitting...')}</div></div> |
36 ${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=changeset.raw_id),class_='inline-form')} | 36 ${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=changeset.raw_id),class_='inline-form')} |
37 <div class="clearfix"> | 37 <div class="clearfix"> |
38 <div class="comment-help">${_('Commenting on line {1}.')} | 38 <div class="comment-help">${_('Commenting on line {1}.')} |
39 ${(_('Comments parsed using %s syntax with %s support.') % (('<a href="%s">RST</a>' % h.url('rst_help')), | 39 ${(_('Comments parsed using %s syntax with %s support.') % (('<a href="%s">RST</a>' % h.url('rst_help')), |
40 '<span style="color:#003367" class="tooltip" title="%s">@mention</span>' % | 40 '<span style="color:#003367" class="tooltip" title="%s">@mention</span>' % |
41 _('Use @username inside this text to send notification to this RhodeCode user')))|n} | 41 _('Use @username inside this text to send notification to this RhodeCode user')))|n} |
42 </div> | 42 </div> |
43 <div class="mentions-container" id="mentions_container_{1}"></div> | 43 <div class="mentions-container" id="mentions_container_{1}"></div> |
44 <textarea id="text_{1}" name="text" class="yui-ac-input"></textarea> | 44 <textarea id="text_{1}" name="text" class="yui-ac-input"></textarea> |
45 </div> | 45 </div> |
46 <div class="comment-button"> | 46 <div class="comment-button"> |
47 <input type="hidden" name="f_path" value="{0}"> | 47 <input type="hidden" name="f_path" value="{0}"> |
48 <input type="hidden" name="line" value="{1}"> | 48 <input type="hidden" name="line" value="{1}"> |
49 ${h.submit('save', _('Comment'), class_='ui-btn save-inline-form')} | 49 ${h.submit('save', _('Comment'), class_='ui-btn save-inline-form')} |
113 </div> | 113 </div> |
114 %endif | 114 %endif |
115 </div> | 115 </div> |
116 <script> | 116 <script> |
117 YUE.onDOMReady(function () { | 117 YUE.onDOMReady(function () { |
118 | 118 MentionsAutoComplete('text', 'mentions_container', _USERS_AC_DATA, _GROUPS_AC_DATA); |
119 MentionsAutoComplete( | |
120 'text', | |
121 'mentions_container', | |
122 ${c.users_array|n}, | |
123 ${c.users_groups_array|n}, | |
124 "${_('Group')}", | |
125 "${_('members')}" | |
126 ); | |
127 }); | 119 }); |
128 </script> | 120 </script> |
129 </%def> | 121 </%def> |