summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/milestone.js.coffee
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-03-06 14:03:41 +0100
committerDouwe Maan <douwe@gitlab.com>2015-03-06 14:08:40 +0100
commitbe94e135524943236f85a63de08fa8ccc445a0af (patch)
tree0af840bfe892b12ace286039c2cb8018885a3b5d /app/assets/javascripts/milestone.js.coffee
parentdc558eb24e7432570e1fdbd73c9d67551602c8dc (diff)
downloadgitlab-ce-be94e135524943236f85a63de08fa8ccc445a0af.tar.gz
Add assignee icon to milestone merge requests.
Diffstat (limited to 'app/assets/javascripts/milestone.js.coffee')
-rw-r--r--app/assets/javascripts/milestone.js.coffee7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/milestone.js.coffee b/app/assets/javascripts/milestone.js.coffee
index c42f31933d3..d644d50b669 100644
--- a/app/assets/javascripts/milestone.js.coffee
+++ b/app/assets/javascripts/milestone.js.coffee
@@ -49,6 +49,13 @@ class @Milestone
data: data
success: (data) ->
if data.saved == true
+ if data.assignee_avatar_url
+ img_tag = $('<img/>')
+ img_tag.attr('src', data.assignee_avatar_url)
+ img_tag.addClass('avatar s16')
+ $(li).find('.assignee-icon').html(img_tag)
+ else
+ $(li).find('.assignee-icon').html('')
$(li).effect 'highlight'
else
new Flash("Issue update failed", 'alert')