Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
bfdd2e66
Commit
bfdd2e66
authored
Oct 13, 2015
by
Leigh B Stoller
Browse files
Add hardware type to the list view.
parent
22baba62
Changes
2
Hide whitespace changes
Inline
Side-by-side
www/aptui/js/status.js
View file @
bfdd2e66
...
...
@@ -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
)
{
...
...
www/aptui/template/status.html
View file @
bfdd2e66
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment