1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

AC-175 on Job Events page, Event is the now the only linkd or clickable column. Clicking expands or collapses parent nodes.

This commit is contained in:
chouseknecht 2013-06-30 03:59:39 -04:00
parent 1eb82e2f01
commit 184430d0a2
2 changed files with 3 additions and 4 deletions

View File

@ -23,7 +23,7 @@ angular.module('JobEventsListDefinition', [])
key: true,
nosort: true,
searchable: false,
ngClick: "viewJobEvent(\{\{ jobevent.id \}\})",
link: false
},
status: {
label: 'Status',
@ -38,13 +38,12 @@ angular.module('JobEventsListDefinition', [])
event_display: {
label: 'Event',
hasChildren: true,
ngClick: "viewJobEvent(\{\{ jobevent.id \}\})",
ngClick: "toggleChildren(\{\{ jobevent.id \}\}, '\{\{ jobevent.related.children \}\}')",
nosort: true,
searchable: false
},
host: {
label: 'Host',
ngClick: "viewJobEvent(\{\{ jobevent.id \}\})",
ngBind: 'jobevent.summary_fields.host.name',
searchField: 'hosts__name',
nosort: true,

View File

@ -105,7 +105,7 @@ angular.module('GeneratorHelpers', ['GeneratorHelpers'])
else if (field.ngClick) {
html += "<a href=\"\"" + Attr(field, 'ngClick') + "\">";
}
else {
else if (field.link == undefined || field.link) {
html += "<a href=\"#/" + base + "/{{" + list.iterator + ".id }}\">";
}
}