diff --git a/awx/ui/client/src/activity-stream/main.js b/awx/ui/client/src/activity-stream/main.js index 1b3f169de2..80e0ed1e53 100644 --- a/awx/ui/client/src/activity-stream/main.js +++ b/awx/ui/client/src/activity-stream/main.js @@ -7,7 +7,9 @@ import activityStreamRoute from './activitystream.route'; import activityStreamController from './activitystream.controller'; -export default angular.module('activityStream', []) +import streamDetailModal from './streamDetailModal/main'; + +export default angular.module('activityStream', [streamDetailModal.name]) .controller('activityStreamController', activityStreamController) .run(['$stateExtender', function($stateExtender) { $stateExtender.addState(activityStreamRoute); diff --git a/awx/ui/client/src/activity-stream/streamDetailModal/main.js b/awx/ui/client/src/activity-stream/streamDetailModal/main.js new file mode 100644 index 0000000000..03533073aa --- /dev/null +++ b/awx/ui/client/src/activity-stream/streamDetailModal/main.js @@ -0,0 +1,11 @@ +/************************************************* + * Copyright (c) 2015 Ansible, Inc. + * + * All Rights Reserved + *************************************************/ + +import streamDetailModalDirective from './streamDetailModal.directive'; + +export default + angular.module('streamDetailModal', []) + .directive('streamDetailModal', streamDetailModalDirective); diff --git a/awx/ui/client/src/activity-stream/streamDetailModal/streamDetailModal.block.less b/awx/ui/client/src/activity-stream/streamDetailModal/streamDetailModal.block.less new file mode 100644 index 0000000000..ae6de6cdae --- /dev/null +++ b/awx/ui/client/src/activity-stream/streamDetailModal/streamDetailModal.block.less @@ -0,0 +1,35 @@ +@import "../shared/branding/colors.default.less"; + +.StreamDetail-actionButton { + padding: 4px 25px!important; +} + +.StreamDetail-inlineRow { + margin-bottom: 20px; + display: flex; +} + +.StreamDetail-rowTitle { + color: @default-interface-txt; +} + +.StreamDetail-inlineRowTitle { + flex: 0 0 110px; +} + +.StreamDetail-inlineRowData { + flex: 1 0; +} + +.StreamDetail-changesRowTitle { + margin-bottom: 5px; +} + +.StreamDetail-changes { + border: none; + background-color: @default-secondary-bg; + margin-bottom: 0; + max-height: 200px; + overflow: scroll; + color: @as-detail-changes-txt; +} diff --git a/awx/ui/client/src/activity-stream/streamDetailModal/streamDetailModal.directive.js b/awx/ui/client/src/activity-stream/streamDetailModal/streamDetailModal.directive.js new file mode 100644 index 0000000000..e144663f96 --- /dev/null +++ b/awx/ui/client/src/activity-stream/streamDetailModal/streamDetailModal.directive.js @@ -0,0 +1,18 @@ +/************************************************* + * Copyright (c) 2015 Ansible, Inc. + * + * All Rights Reserved + *************************************************/ + +/* jshint unused: vars */ +export default + [ 'templateUrl', + function(templateUrl) { + return { + restrict: 'E', + scope: true, + replace: true, + templateUrl: templateUrl('activity-stream/streamDetailModal/streamDetailModal') + }; + } + ]; diff --git a/awx/ui/client/src/activity-stream/streamDetailModal/streamDetailModal.partial.html b/awx/ui/client/src/activity-stream/streamDetailModal/streamDetailModal.partial.html new file mode 100644 index 0000000000..34c322c72b --- /dev/null +++ b/awx/ui/client/src/activity-stream/streamDetailModal/streamDetailModal.partial.html @@ -0,0 +1,29 @@ +