Show More
@@ -209,8 +209,10 b' var ReviewerAutoComplete = function(inpu' | |||||
209 | formatResult: autocompleteFormatResult, |
|
209 | formatResult: autocompleteFormatResult, | |
210 | lookupFilter: autocompleteFilterResult, |
|
210 | lookupFilter: autocompleteFilterResult, | |
211 | onSelect: function(suggestion, data){ |
|
211 | onSelect: function(suggestion, data){ | |
|
212 | var msg = _gettext('added manually by "{0}"'); | |||
|
213 | var reasons = [msg.format(templateContext.rhodecode_user.username)]; | |||
212 | addReviewMember(data.id, data.first_name, data.last_name, |
|
214 | addReviewMember(data.id, data.first_name, data.last_name, | |
213 | data.username, data.icon_link); |
|
215 | data.username, data.icon_link, reasons); | |
214 | $('#'+input_id).val(''); |
|
216 | $('#'+input_id).val(''); | |
215 | } |
|
217 | } | |
216 | }); |
|
218 | }); |
@@ -12,6 +12,8 b" if getattr(c, 'rhodecode_user', None) an" | |||||
12 | c.template_context['rhodecode_user']['username'] = c.rhodecode_user.username |
|
12 | c.template_context['rhodecode_user']['username'] = c.rhodecode_user.username | |
13 | c.template_context['rhodecode_user']['email'] = c.rhodecode_user.email |
|
13 | c.template_context['rhodecode_user']['email'] = c.rhodecode_user.email | |
14 | c.template_context['rhodecode_user']['notification_status'] = c.rhodecode_user.get_instance().user_data.get('notification_status', True) |
|
14 | c.template_context['rhodecode_user']['notification_status'] = c.rhodecode_user.get_instance().user_data.get('notification_status', True) | |
|
15 | c.template_context['rhodecode_user']['first_name'] = c.rhodecode_user.name | |||
|
16 | c.template_context['rhodecode_user']['last_name'] = c.rhodecode_user.lastname | |||
15 |
|
17 | |||
16 | c.template_context['visual']['default_renderer'] = h.get_visual_attr(c, 'default_renderer') |
|
18 | c.template_context['visual']['default_renderer'] = h.get_visual_attr(c, 'default_renderer') | |
17 | %> |
|
19 | %> |
General Comments 0
You need to be logged in to leave comments.
Login now