forked from ansible/awx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ansible#766 from mabashian/activity-stream
Added activity stream route and view
- Loading branch information
Showing
15 changed files
with
184 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
awx/ui/client/src/activity-stream/activitystream.controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/************************************************* | ||
* Copyright (c) 2016 Ansible, Inc. | ||
* | ||
* All Rights Reserved | ||
*************************************************/ | ||
|
||
/** | ||
* @ngdoc function | ||
* @name controllers.function:Activity Stream | ||
* @description This controller controls the activity stream. | ||
*/ | ||
function activityStreamController($scope, Stream) { | ||
|
||
// Open the stream | ||
Stream({ | ||
scope: $scope | ||
}); | ||
|
||
} | ||
|
||
export default ['$scope', 'Stream', activityStreamController]; |
3 changes: 3 additions & 0 deletions
3
awx/ui/client/src/activity-stream/activitystream.partial.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="Panel" id="stream-container"> | ||
<div id="stream-content"></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/************************************************* | ||
* Copyright (c) 2016 Ansible, Inc. | ||
* | ||
* All Rights Reserved | ||
*************************************************/ | ||
|
||
import {templateUrl} from '../shared/template-url/template-url.factory'; | ||
|
||
export default { | ||
name: 'activityStream', | ||
route: '/activity_stream?target&id', | ||
templateUrl: templateUrl('activity-stream/activitystream'), | ||
controller: 'activityStreamController', | ||
ncyBreadcrumb: { | ||
label: "ACTIVITY STREAM" | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/************************************************* | ||
* Copyright (c) 2016 Ansible, Inc. | ||
* | ||
* All Rights Reserved | ||
*************************************************/ | ||
|
||
import activityStreamRoute from './activitystream.route'; | ||
import activityStreamController from './activitystream.controller'; | ||
|
||
export default angular.module('activityStream', []) | ||
.controller('activityStreamController', activityStreamController) | ||
.run(['$stateExtender', function($stateExtender) { | ||
$stateExtender.addState(activityStreamRoute); | ||
}]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.