fix errored in ansible role badge

This commit is contained in:
Akihiro Uchida 2016-04-03 18:07:26 +09:00
parent 27ef17defb
commit fa109d5e39

View File

@ -3722,8 +3722,7 @@ cache(function(data, match, sendBadge, request) {
}
try {
if (type === 'role') {
badgeData.text[1] = json.summary_fields.owner.username +
'.' + json.name;
badgeData.text[1] = json.namespace + '.' + json.name;
badgeData.colorscheme = 'blue';
} else {
badgeData.text[1] = 'unknown';