Files
awx/awx/ui/static/js/lists/Streams.js

62 lines
1.6 KiB
JavaScript

/*********************************************
* 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: {
}
});