87 lines
2.5 KiB
HTML
87 lines
2.5 KiB
HTML
{% extends "adminlte/base.html" %}
|
|
{% import "adminlte/layout.html" as layout with context %}
|
|
{% import "adminlte/widgets.html" as widgets with context %}
|
|
|
|
{% block title %}Server - {{ title }}{% endblock %}
|
|
{% block description %}{{ block_description }}{% endblock %}
|
|
|
|
{% block navbar %}
|
|
|
|
{% include "navbar.html" %}
|
|
|
|
{%- endblock navbar %}
|
|
|
|
|
|
{% block sidebar -%}
|
|
|
|
{% include 'sidebar.html' %}
|
|
|
|
{% include 'sidebar_menu.html' %}
|
|
|
|
{%- endblock sidebar %}
|
|
|
|
|
|
{% block content_header -%}
|
|
{% include 'server/content_header.html' %}
|
|
{%- endblock content_header %}
|
|
|
|
{% block content -%}
|
|
<!-- Main content -->
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="box">
|
|
<div class="box-body">
|
|
<table id="example2" class="table table-bordered table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>Image Name</th>
|
|
<th>Type</th>
|
|
<th>Status</th>
|
|
<th>Format</th>
|
|
<th>Size</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for image in images %}
|
|
<tr>
|
|
<td>{{ image.name.title() }}</td>
|
|
<td>
|
|
{% if image.image_location %}
|
|
{{ image.image_location.title() }}
|
|
{% else %}
|
|
Image
|
|
{% endif %}
|
|
</td>
|
|
<td>{{ image.status.title() }}</td>
|
|
<td>{{ image.disk_format.upper() }}</td>
|
|
<td>{{ humanize.naturalsize(image.size) }}</td>
|
|
<td>
|
|
<a href="{{ url_for('admin.edit_user_admin', id=user.id) }}">Edit</a>
|
|
|
|
|
<a href="{{ url_for('admin.delete_user_admin', id=user.id) }}">Delete</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<th>Image Name</th>
|
|
<th>Type</th>
|
|
<th>Status</th>
|
|
<th>Format</th>
|
|
<th>Size</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
<!-- /.box-body -->
|
|
</div>
|
|
<!-- /.box -->
|
|
</div>
|
|
<!-- /.col -->
|
|
</div>
|
|
<!-- /.row -->
|
|
|
|
{%- endblock content %} |