forked from qfdk/EasyDockerWeb
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
2,346 additions
and
371 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,84 @@ | ||
<%- include('include/header.html') %> | ||
<div class="container"> | ||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modelImage"> | ||
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 下载镜像 | ||
</button> | ||
<hr> | ||
</div> | ||
<div class="container" data-page="images"> | ||
<table class="table table-bordered table-hover"> | ||
<thead> | ||
<tr> | ||
<th>名字</th> | ||
<th>版本</th> | ||
<th>大小</th> | ||
<th>操作</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% if(images){ %> | ||
<% images.forEach(function(image,index){ %> | ||
<tr> | ||
<td> | ||
<%= imageName(image.RepoTags) %> | ||
</td> | ||
<td> | ||
<%= imageTag(image.RepoTags) %> | ||
</td> | ||
<td> | ||
<%= imageSize(image.Size) %> MB | ||
</td> | ||
<td> | ||
<a class="btn btn-danger btn-xs" data-loading-text="<i class='fa fa-spinner fa-spin fa-fw' aria-hidden='true'></i> Waiting..." | ||
href="/images/remove/<%= image.Id %>"> | ||
<span class="glyphicon glyphicon-trash"></span> 删除 | ||
</a> | ||
</td> | ||
</tr> | ||
<% }) %> | ||
<div class="container"> | ||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modelImage"> | ||
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 下载镜像 | ||
</button> | ||
<hr> | ||
</div> | ||
<div class="container" data-page="images"> | ||
<table class="table table-bordered table-hover"> | ||
<thead> | ||
<tr> | ||
<th>名字</th> | ||
<th>版本</th> | ||
<th>大小</th> | ||
<th>操作</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% if(images){ %> | ||
<% images.forEach(function(image,index){ %> | ||
<tr> | ||
<td> | ||
<%= imageName(image.RepoTags) %> | ||
</td> | ||
<td> | ||
<%= imageTag(image.RepoTags) %> | ||
</td> | ||
<td> | ||
<%= imageSize(image.Size) %> MB | ||
</td> | ||
<td> | ||
<a class="btn btn-danger btn-xs" | ||
data-loading-text="<i class='fa fa-spinner fa-spin fa-fw' aria-hidden='true'></i> Waiting..." | ||
href="/images/remove/<%= image.Id %>"> | ||
<span class="glyphicon glyphicon-trash"></span> 删除 | ||
</a> | ||
</td> | ||
</tr> | ||
<% }) %> | ||
|
||
<% } %> | ||
</tbody> | ||
</table> | ||
</div> | ||
<div class="modal fade" id="modelImage" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> | ||
<div class="modal-dialog" role="document"> | ||
<div class="modal-content modal-lg"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
<h4 class="modal-title" id="myModalLabel">下载镜像</h4> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="form-group"> | ||
<div class="form-inline"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<label for="imageName">镜像名称: </label> | ||
<input type="text" class="form-control typeahead" data-provide="typeahead" autocomplete="off" | ||
name="imageName" id="imageName"> | ||
</div> | ||
<div class="col-md-6"> | ||
<label for="imageVersionName">版本: </label> | ||
<input type="text" class="form-control typeahead" placeholder="latest" autocomplete="off" | ||
name="imageVersionName" id="imageVersionName"> | ||
<% } %> | ||
</tbody> | ||
</table> | ||
</div> | ||
<div class="modal fade" id="modelImage" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> | ||
<div class="modal-dialog" role="document"> | ||
<div class="modal-content modal-lg"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
<h4 class="modal-title" id="myModalLabel">下载镜像</h4> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="form-group"> | ||
<div class="form-inline"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<label for="imageName">镜像名称: </label> | ||
<input type="text" style="width: 70% ;" class="form-control typeahead" | ||
data-provide="typeahead" autocomplete="off" name="imageName" id="imageName"> | ||
</div> | ||
<div class="col-md-6"> | ||
<label for="imageVersionName">版本: </label> | ||
<input type="text" class="form-control typeahead" placeholder="latest" | ||
autocomplete="off" name="imageVersionName" id="imageVersionName"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div id="terminal"></div> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div id="terminal"></div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button> | ||
<button id="pullImage" type="submit" | ||
data-loading-text="<i class='fa fa-spinner fa-spin fa-fw' aria-hidden='true'></i> Waiting..." | ||
class="btn btn-primary">下载</button> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button> | ||
<button id="pullImage" type="submit" data-loading-text="<i class='fa fa-spinner fa-spin fa-fw' aria-hidden='true'></i> Waiting..." | ||
class="btn btn-primary">下载</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<%- include('include/footer.html') %> | ||
<%- include('include/footer.html') %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<%- include('include/header.html') %> | ||
<div class="container" data-page="logs"> | ||
<a href="#" class="btn btn-danger" style="margin-bottom: 10px;" onclick="javascript:history.back(-1);">返回</a> | ||
<div id="terminal"></div> | ||
</div> | ||
<%- include('include/footer.html') %> | ||
<%- include('include/footer.html') %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.