2024-02-04 23:15:29 +00:00
|
|
|
accessing
|
|
|
|
viewInstancesFor: aView
|
|
|
|
<gtView>
|
2024-02-04 23:54:11 +00:00
|
|
|
| columnedList columnNames |
|
2024-02-04 23:15:29 +00:00
|
|
|
self instances isEmptyOrNil ifTrue: [ ^ aView empty].
|
|
|
|
columnedList := aView columnedList
|
|
|
|
title: 'Instances';
|
|
|
|
items: [ self instanceRows ];
|
2024-02-04 23:54:11 +00:00
|
|
|
priority: 1.
|
|
|
|
columnNames := #('Instance' 'Healthy' 'Uptime %' 'RSS' 'Nitter Version').
|
|
|
|
columnNames doWithIndex: [:aName :index |
|
|
|
|
columnedList
|
|
|
|
column: aName
|
2024-02-10 17:34:50 +00:00
|
|
|
text: [:instanceRow | (instanceRow slots at: index) ifNil: [''] ]
|
2024-02-04 23:54:11 +00:00
|
|
|
].
|
2024-02-04 23:15:29 +00:00
|
|
|
^ columnedList
|