Skip to content

Commit

Permalink
adding the terminal containers to landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
thelamer committed Feb 22, 2019
1 parent 7052ca6 commit 44513f1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .gitlab-ci.yml

This file was deleted.

3 changes: 3 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ <h4>Stacks:</h4>
<h4 class="card-title">VDI:</h4>
<div class="row" id="vdi"></div>
<hr/>
<h4 class="card-title">Terminals:</h4>
<div class="row" id="term"></div>
<hr/>
<h4 class="card-title">Development:</h4>
<div class="row" id="dev"></div>
<hr/>
Expand Down
9 changes: 9 additions & 0 deletions public/js/gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ $( document ).ready(function() {
</div>\
');
}
else if (labels.stacktype && container.State == 'running' && labels.stacktype == 'terminal'){
var linkurl = window.location.href.replace('taisun-gateway', 'user:' + pass + '@' + taisunport) + '/terminal/' + container.Id;
$('#term').append('\
<div class="mx-auto" style="width:140px;cursor:pointer;" onclick="window.open(\'' + linkurl + '\',\'_blank\');">\
<center><img src="/public/img/terminal.png">\
<h4 class="card-title">'+ labels.stackname + '</h4></center>\
</div>\
');
}
else if (labels.devport && container.State == 'running'){
var linkurl = window.location.href.replace('taisun-gateway', 'user:' + pass + '@' + labels.devport);
$('#dev').append('\
Expand Down

0 comments on commit 44513f1

Please sign in to comment.