show more info for hosts on the GUI
This commit is contained in:
parent
34a3dfd10e
commit
f8a5a2a685
@ -2,8 +2,8 @@
|
|||||||
<script id="rowTemplate" type="text/html">
|
<script id="rowTemplate" type="text/html">
|
||||||
<tr action="api" class="<<fresh>>">
|
<tr action="api" class="<<fresh>>">
|
||||||
<input type="hidden" name="host" value="<< host >>" />
|
<input type="hidden" name="host" value="<< host >>" />
|
||||||
<td><a target="_blank" href="http://<<host>>"><<host>></a></td>
|
<td><a target="_blank" href="<<forcessl>><<host>>"><<forcessl>><<host>></a></td>
|
||||||
<td><<ip>></td>
|
<td><< targetssl >><< ip >>:<< targetPort >></td>
|
||||||
<td class="hidden-xs"><<updated_on>></td>
|
<td class="hidden-xs"><<updated_on>></td>
|
||||||
<td>
|
<td>
|
||||||
<button type="button" data-host="<< host >>" onclick="editHost(this);" class="btn btn-sm btn-default">Edit</button>
|
<button type="button" data-host="<< host >>" onclick="editHost(this);" class="btn btn-sm btn-default">Edit</button>
|
||||||
@ -47,7 +47,9 @@
|
|||||||
if(err) return app.util.actionMessage(err, {type: 'danger'});
|
if(err) return app.util.actionMessage(err, {type: 'danger'});
|
||||||
if(data){
|
if(data){
|
||||||
$.each(data, function( key, value ) {
|
$.each(data, function( key, value ) {
|
||||||
value['updated_on'] = moment(value['updated_on'], "x").fromNow()
|
value['updated_on'] = moment(value['updated_on'], "x").fromNow();
|
||||||
|
value['targetssl'] = value['targetssl'] ? "https://" : "http://";
|
||||||
|
value['forcessl'] = value['forcessl'] ? "https://" : "http://";
|
||||||
host_row = ich.rowTemplate(value);
|
host_row = ich.rowTemplate(value);
|
||||||
$('#tableAJAX').append(host_row);
|
$('#tableAJAX').append(host_row);
|
||||||
});
|
});
|
||||||
@ -151,8 +153,6 @@
|
|||||||
<input type="text" name="host" class="form-control" placeholder="ex: proxy.cloud-ops.net" validate=":3" >
|
<input type="text" name="host" class="form-control" placeholder="ex: proxy.cloud-ops.net" validate=":3" >
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr />
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label">Target IP or Host Name</label>
|
<label class="control-label">Target IP or Host Name</label>
|
||||||
<input type="text" name="ip" class="form-control" placeholder="ex: 10.10.10.10" validate=":3" />
|
<input type="text" name="ip" class="form-control" placeholder="ex: 10.10.10.10" validate=":3" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user