From e499dda70908ab360d70d48c63129438d4be9481 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Wed, 19 Nov 2014 13:05:41 -0500 Subject: [PATCH] widgets/Stream.js added check for system_job_templates for when processing activity stream rows --- awx/ui/static/js/widgets/Stream.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/awx/ui/static/js/widgets/Stream.js b/awx/ui/static/js/widgets/Stream.js index 14a9ab43fa..bcdbc4f34c 100644 --- a/awx/ui/static/js/widgets/Stream.js +++ b/awx/ui/static/js/widgets/Stream.js @@ -456,6 +456,10 @@ angular.module('StreamWidget', ['RestServices', 'Utilities', 'StreamListDefiniti type = 'project'; url = '/projects/' + activity.summary_fields[type].id + '/schedules/?id__int='; } + else if (activity.summary_fields.system_job_template) { + type = 'system_job_template'; + url = '/system_job_templates/' + activity.summary_fields[type].id + '/schedules/?id__int='; + } else if (activity.summary_fields.job_template) { type = 'job_template'; url = '/job_templates/' + activity.summary_fields[type].id + '/schedules/?id__int=';