1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 20:14:15 +00:00
webvirtcloud/storages/templates/storages.html

67 lines
3.5 KiB
HTML
Raw Normal View History

2015-03-03 14:53:10 +00:00
{% extends "base.html" %}
{% load i18n %}
{% block title %}{% trans "Storages" %} - {{ compute.name }}{% endblock %}
{% block content %}
2015-03-05 09:55:15 +00:00
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
2015-04-02 13:20:46 +00:00
{% include 'create_stg_block.html' %}
2015-03-05 09:55:15 +00:00
<h1 class="page-header">{{ compute.name }}</h1>
<ol class="breadcrumb">
<li class="active">
<i class="fa fa-dashboard"></i> <a href="{% url 'overview' compute.id %}">{% trans "Overview" %}</a>
</li>
<li>
<i class="fa fa-hdd-o"></i> {% trans "Storages" %}
</li>
<li>
<i class="fa fa-sitemap"></i> <a href="{% url 'networks' compute.id %}">{% trans "Networks" %}</a>
</li>
<li>
<i class="fa fa-wifi"></i> <a href="{% url 'interfaces' compute.id %}">{% trans "Interfaces" %}</a>
</li>
<li>
<i class="fa fa-key"></i> <a href="{% url 'secrets' compute.id %}">{% trans "Secrets" %}</a>
</li>
</ol>
</div>
</div>
<!-- /.row -->
2015-03-03 14:53:10 +00:00
{% include 'errors_block.html' %}
<div class="row">
2015-03-04 13:43:29 +00:00
{% if not storages %}
2015-03-05 09:55:15 +00:00
<div class="col-lg-12">
<div class="alert alert-warning alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<i class="fa fa-exclamation-triangle"></i> <strong>{% trans "Warning:" %}</strong> {% trans "Hypervisor doesn't have any Storages" %}
</div>
2015-03-04 13:43:29 +00:00
</div>
{% else %}
{% for pool in storages %}
2015-03-05 09:55:15 +00:00
<div class="col-xs-12 col-sm-4">
2015-03-04 13:43:29 +00:00
<div class="panel {% if pool.status %}panel-success{% else %}panel-danger{% endif %} panel-data">
<div class="panel-heading">
<h3 class="panel-title"><a href="{% url 'storage' compute.id pool.name %}">{{ pool.name }}</a></h3>
</div>
<div class="panel-body">
2015-03-05 09:55:15 +00:00
<div class="row">
<div class="col-xs-4 col-sm-4">
<p><strong>{% trans "Type:" %}</strong></p>
<p><strong>{% trans "Size:" %}</strong></p>
<p><strong>{% trans "Volumes:" %}</strong></p>
</div>
<div class="col-xs-6 col-sm-7">
<p>{{ pool.type|upper }}</p>
<p>{{ pool.size|filesizeformat }}</p>
<p>{{ pool.volumes }}</p>
</div>
</div>
2015-03-04 13:43:29 +00:00
</div>
</div>
</div>
{% endfor %}
{% endif %}
2015-03-03 14:53:10 +00:00
</div>
{% endblock %}