Skip to content

Commit

Permalink
adding new RDP VNC types to remote access landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
thelamer committed May 25, 2019
1 parent c376adc commit 68819ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<h4>Stacks:</h4>
<div class="row" id="stacks"></div>
<hr/>
<h4 class="card-title">VDI:</h4>
<h4 class="card-title">Desktops:</h4>
<div class="row" id="vdi"></div>
<hr/>
<h4 class="card-title">Terminals:</h4>
Expand Down
9 changes: 9 additions & 0 deletions public/js/gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ $( document ).ready(function() {
</div>\
');
}
else if (labels.stacktype == 'rdpvnc' && container.State == 'running'){
var linkurl = window.location.href.replace('taisun-gateway', 'user:' + pass + '@' + taisunport) + '/' + labels.remote_type + '/' + container.Id;
$('#vdi').append('\
<div class="mx-auto" style="width:140px;cursor:pointer;" onclick="window.open(\'' + linkurl + '\',\'_blank\');">\
<center><img src="/public/img/monitor.png">\
<h4 class="card-title">'+ labels.stackname + '</h4></center>\
</div>\
');
}
}
});
// Add Taisun link
Expand Down

0 comments on commit 68819ae

Please sign in to comment.