-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: devopstales <42894256+devopstales@users.noreply.github.com>
- Loading branch information
1 parent
20b9498
commit 8dfe9cf
Showing
5 changed files
with
316 additions
and
1 deletion.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,107 @@ | ||
{% extends "base.html.j2" %} | ||
|
||
{% block header %} | ||
<link href="{{ url_for('static',filename='/vendor/datatables/dataTables.bootstrap4.min.css') }}" rel="stylesheet" > | ||
<link href="{{ url_for('static',filename='/vendor/google/material-icons.css') }}" rel="stylesheet" > | ||
{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<nav aria-label="breadcrumb"> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item">Workloads</li> | ||
<li class="breadcrumb-item"><a href="/priorityclass">Priority Class</a></li> | ||
<li class="breadcrumb-item active" aria-current="page">{{ pc_data.name }}</li> | ||
<div class="col"> | ||
<a class="card-link float-right pr-1" data-toggle="collapse" href="#" onclick="reload()"> | ||
<i class="material-icons">refresh</i> | ||
</a> | ||
</div> | ||
</ol> | ||
</nav> | ||
|
||
<div class="card shadow mb-4"> | ||
<div class="card-header"> | ||
<h6 class="m-0 font-weight-bold text-primary">Priority Class Data</h6> | ||
</div> | ||
<div class="card-body"> | ||
<div class="tab-content" id="nav-tabContent"> | ||
<!-- policy --> | ||
<div class="card shadow mb-4"> | ||
<div class="card-body"> | ||
<div class="table-responsive"> | ||
<table class="table table-bordered" id="policyInfoTable" width="100%" cellspacing="0"> | ||
<tr> | ||
<th>Name:</th> | ||
<td>{{ pc_data.name }}</td> | ||
</tr> | ||
<tr> | ||
<th>Description:</th> | ||
<td>{{ pc_data.description }}</td> | ||
</tr> | ||
<tr> | ||
<th>Value:</th> | ||
<td>{{ pc_data.value }}</td> | ||
</tr> | ||
<tr> | ||
<th>Preemption Policy:</th> | ||
<td>{{ pc_data.preemption_policy }}</td> | ||
</tr> | ||
<tr> | ||
<th>Global Default:</th> | ||
<td> | ||
{% if pc_data.global_default %} | ||
True | ||
{% else %} | ||
False | ||
{% endif %} | ||
</td> | ||
</tr> | ||
<tr> | ||
<th>Creation:</th> | ||
<td>{{ pc_data.creation }}</td> | ||
</tr> | ||
<tr> | ||
<th>Annotations:</th> | ||
<td> | ||
{% if pc_data.annotations %} | ||
{% for an_key, an_value in pc_data.annotations.items() %} | ||
{% if an_key != "kubectl.kubernetes.io/last-applied-configuration" %} | ||
<span class="badge badge-tag badge-secondary">{{ an_key }}: {{ an_value }}</span> | ||
{% if not loop.last %}<br>{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
</td> | ||
</tr> | ||
<tr> | ||
<th>Labels:</th> | ||
<td> | ||
{% if pc_data.labels %} | ||
{% for an_key, an_value in pc_data.labels.items() %} | ||
{% if an_key != "kubectl.kubernetes.io/last-applied-configuration" %} | ||
<span class="badge badge-tag badge-secondary">{{ an_key }}: {{ an_value }}</span> | ||
{% if not loop.last %}<br>{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block scripts %} | ||
|
||
<!-- Page level plugins --> | ||
<script src="{{ url_for('static',filename='vendor/datatables/jquery.dataTables.js') }}"></script> | ||
<script src="{{ url_for('static',filename='vendor/datatables/dataTables.bootstrap4.min.js') }}"></script> | ||
|
||
<!-- Page level custom scripts --> | ||
<script src="{{ url_for('static',filename='js/demo/datatables-demo.js') }}"></script> | ||
{% endblock %} |
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{% extends "base.html.j2" %} | ||
|
||
{% block header %} | ||
<link href="{{ url_for('static',filename='/vendor/datatables/dataTables.bootstrap4.min.css') }}" rel="stylesheet" > | ||
<link href="{{ url_for('static',filename='/vendor/datatables/jquery.dataTables.css') }}" rel="stylesheet" > | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<nav aria-label="breadcrumb"> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item">Security</li> | ||
<li class="breadcrumb-item active" aria-current="page">Priority Classes</li> | ||
<div class="col"> | ||
<a class="card-link float-right" data-toggle="collapse" href="#" onclick="reload()"> | ||
<i class="material-icons">refresh</i> | ||
</a> | ||
</div> | ||
</ol> | ||
</nav> | ||
|
||
<div class="card shadow mb-4"> | ||
<div class="card-header py-3"> | ||
<h6 class="m-0 font-weight-bold text-primary">Priority Class List</h6> | ||
</div> | ||
<div class="card-body"> | ||
<div class="table-responsive"> | ||
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0"> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Value</th> | ||
<th>Global Default</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for pc in priorityclass %} | ||
{% if selected == pc.name %} | ||
<tr class="selected" > | ||
{% else %} | ||
<tr> | ||
{% endif %} | ||
<td> | ||
<form action="/priorityclass/data" method="POST"> | ||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"> | ||
<input type="hidden" name="pc_name" value="{{ pc.name }}" /> | ||
<a href="javascript:;" onclick="parentNode.submit();">{{ pc.name }}</a> | ||
</form> | ||
</td> | ||
<td> | ||
<span class="badge badge-tag badge-secondary">{{ pc.value }}</span> | ||
</td> | ||
<td> | ||
{% if pc.global_default %} | ||
True | ||
{% else %} | ||
False | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% endblock %} | ||
|
||
{% block scripts %} | ||
<!-- Page level plugins --> | ||
<script src="{{ url_for('static',filename='vendor/datatables/jquery.dataTables.js') }}"></script> | ||
<script src="{{ url_for('static',filename='vendor/datatables/dataTables.bootstrap4.min.js') }}"></script> | ||
|
||
<!-- Page level custom scripts --> | ||
<script src="{{ url_for('static',filename='js/demo/datatables-demo.js') }}"></script> | ||
{% endblock %} |