Commit bfdd2e66 authored by Leigh B Stoller's avatar Leigh B Stoller

Add hardware type to the list view.

parent 22baba62
......@@ -1043,6 +1043,7 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
"<tr id='listview-row'>" +
" <td name='client_id'>n/a</td>" +
" <td name='node_id'>n/a</td>" +
" <td name='type'>n/a</td>" +
" <td name='sshurl'>n/a</td>" +
" <td name='menu' align=center> " +
" <div name='action-menu' class='dropdown'>" +
......@@ -1126,10 +1127,12 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
$('#listview_table > tbody:last').append(clone);
// Set the client_id in the first column.
$('#listview-row-' + node + " [name=client_id]").html(node);
// And the node_id.
// And the node_id/type
if (vnode.length) {
$('#listview-row-' + node + " [name=node_id]")
.html($(vnode).attr("name"));
$('#listview-row-' + node + " [name=type]")
.html($(vnode).attr("hardware_type"));
}
if (login.length && dossh) {
......
......@@ -235,6 +235,7 @@
<tr>
<th>ID</th>
<th>Node</th>
<th>Type</th>
<th>SSH command <small>
(if you provided your own key)</small>
</th>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment