mirror of
https://github.com/ansible/awx.git
synced 2026-08-01 10:29:56 -02:30
First iteration of Activity Stream. Added Home/Groups page. Increased icon size for icon-only buttons. Dashboard jobs widget- group and job links now work. Closed AC-621, AC-618.
This commit is contained in:
62
awx/ui/static/js/lists/Streams.js
Normal file
62
awx/ui/static/js/lists/Streams.js
Normal file
@@ -0,0 +1,62 @@
|
||||
/*********************************************
|
||||
* Copyright (c) 2013 AnsibleWorks, Inc.
|
||||
*
|
||||
* Streams.js
|
||||
* List view object for activity stream data model.
|
||||
*
|
||||
*
|
||||
*/
|
||||
angular.module('StreamListDefinition', [])
|
||||
.value(
|
||||
'StreamList', {
|
||||
|
||||
name: 'activities',
|
||||
iterator: 'activity',
|
||||
editTitle: 'Activity Stream',
|
||||
selectInstructions: '',
|
||||
index: false,
|
||||
hover: true,
|
||||
"class": "table-condensed",
|
||||
|
||||
fields: {
|
||||
event_time: {
|
||||
key: true,
|
||||
label: 'When'
|
||||
},
|
||||
user: {
|
||||
label: 'Who',
|
||||
sourceModel: 'user',
|
||||
sourceField: 'username'
|
||||
},
|
||||
operation: {
|
||||
label: 'Operation'
|
||||
},
|
||||
description: {
|
||||
label: 'Description'
|
||||
}
|
||||
},
|
||||
|
||||
actions: {
|
||||
refresh: {
|
||||
dataPlacement: 'top',
|
||||
icon: "icon-refresh",
|
||||
mode: 'all',
|
||||
'class': 'btn-xs btn-primary',
|
||||
awToolTip: "Refresh the page",
|
||||
ngClick: "refreshStream()",
|
||||
iconSize: 'large'
|
||||
},
|
||||
close: {
|
||||
dataPlacement: 'top',
|
||||
icon: "icon-arrow-left",
|
||||
mode: 'all',
|
||||
'class': 'btn-xs btn-primary',
|
||||
awToolTip: "Close Activity Stream view",
|
||||
ngClick: "closeStream()",
|
||||
iconSize: 'large'
|
||||
}
|
||||
},
|
||||
|
||||
fieldActions: {
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user