Skip to content

Commit

Permalink
fix : ejs error
Browse files Browse the repository at this point in the history
  • Loading branch information
qfdk committed Mar 2, 2024
1 parent 144392f commit f012bde
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 77 deletions.
4 changes: 2 additions & 2 deletions views/containers.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% include include/header.html %>
<%- include('include/header.html') %>
<div class="col-md-12">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> New container
Expand Down Expand Up @@ -188,4 +188,4 @@ <h4 class="modal-title" id="myModalLabel">New container</h4>
</div>
</div>
</div>
<% include include/footer.html %>
<%- include('include/footer.html') %>
4 changes: 2 additions & 2 deletions views/error.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% include include/header.html %>
<%- include('include/header.html') %>
<div class="container">
<div class="row">
<div class="text-center">
Expand All @@ -10,4 +10,4 @@ <h2><%= error.status %> <%= message %></h2>
</div>
</div>
</div>
<% include include/footer.html %>
<%- include('include/footer.html') %>
4 changes: 2 additions & 2 deletions views/images.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% include include/header.html %>
<%- 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> Pull image
Expand Down Expand Up @@ -79,4 +79,4 @@ <h4 class="modal-title" id="myModalLabel">Pull image</h4>
</div>
</div>
</div>
<% include include/footer.html %>
<%- include('include/footer.html') %>
4 changes: 2 additions & 2 deletions views/login.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% include include/header.html %>
<%- include('include/header.html') %>
<div class="container" data-page="login">
<div class="jumbotron">
<h3>Easy Docker Web Login page</h3>
Expand All @@ -23,4 +23,4 @@ <h3>Easy Docker Web Login page</h3>
</div>
</form>
</div>
<% include include/footer.html %>
<%- include('include/footer.html') %>
4 changes: 2 additions & 2 deletions views/logs.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% include include/header.html %>
<%- include('include/header.html') %>
<div class="container" data-page="logs">
<div id="terminal"></div>
</div>
<% include include/footer.html %>
<%- include('include/footer.html') %>
133 changes: 66 additions & 67 deletions views/overview.html
Original file line number Diff line number Diff line change
@@ -1,86 +1,85 @@
<% include include/header.html %>
<div class="container" data-page="overview">
<div class="row">
<div class="col-md-3">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">OS</h3>
</div>
<div class="panel-body">
<%= info.OperatingSystem %>
</div>
<%- include('include/header.html') %>
<div class="container" data-page="overview">
<div class="row">
<div class="col-md-3">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">OS</h3>
</div>
<div class="panel-body">
<%= info.OperatingSystem %>
</div>
</div>
<div class="col-md-3">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Docker version</h3>
</div>
<div class="panel-body">
<%= info.ServerVersion %>
</div>
</div>
<div class="col-md-3">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Docker version</h3>
</div>
<div class="panel-body">
<%= info.ServerVersion %>
</div>
</div>
</div>

<div class="col-md-3">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">CPU</h3>
</div>
<div class="panel-body">
<%= info.NCPU %>
</div>
<div class="col-md-3">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">CPU</h3>
</div>
</div>
<div class="col-md-3">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Name</h3>
</div>
<div class="panel-body">
<%= info.Name %>
</div>
<div class="panel-body">
<%= info.NCPU %>
</div>
</div>
</div>

<div class="row">
<div class="col-md-6">
<div class="panel panel-success">
<a href="/containers" class="panel-heading panel-title btn btn-success btn-sm" style="width: 100%;">Containers</a>
<div class="panel-body">
<div class="col-md-4">
<p class="text-success">Running :
<%= info.ContainersRunning %>
</p>
</div>
<div class="col-md-4">
<p class="text-warning">Paused :
<%= info.ContainersPaused %>
</p>
</div>
<div class="col-md-4">
<p class="text-danger">Stopped :
<%= info.ContainersStopped %>
</p>
</div>
</div>
<div class="col-md-3">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Name</h3>
</div>
<div class="panel-body">
<%= info.Name %>
</div>
</div>
</div>
</div>

<div class="col-md-6">
<div class="panel panel-success">
<a href="/images" class="panel-heading panel-title btn btn-success btn-sm" style="width: 100%;">Images</a>
<div class="panel-body">
<p class="text-center">
<%= info.Images %>
<div class="row">
<div class="col-md-6">
<div class="panel panel-success">
<a href="/containers" class="panel-heading panel-title btn btn-success btn-sm" style="width: 100%;">Containers</a>
<div class="panel-body">
<div class="col-md-4">
<p class="text-success">Running :
<%= info.ContainersRunning %>
</p>
</div>
<div class="col-md-4">
<p class="text-warning">Paused :
<%= info.ContainersPaused %>
</p>
</div>
<div class="col-md-4">
<p class="text-danger">Stopped :
<%= info.ContainersStopped %>
</p>
</div>
</div>
</div>


</div>

<div class="col-md-6">
<div class="panel panel-success">
<a href="/images" class="panel-heading panel-title btn btn-success btn-sm"
style="width: 100%;">Images</a>
<div class="panel-body">
<p class="text-center">
<%= info.Images %>
</p>
</div>
</div>
</div>
</div>
<% include include/footer.html %>

</div>
<%- include('include/footer.html') %>

0 comments on commit f012bde

Please sign in to comment.