2015-03-03 14:53:10 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% block title %}{% trans "Interfaces" %} - {{ compute.name }}{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
{% include 'sidebar.html' %}
|
|
|
|
|
|
|
|
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
|
|
|
|
|
|
|
|
{% include "create_stg_block.html" %}
|
|
|
|
|
|
|
|
<h1 class="page-header">{{ compute.name }}</h1>
|
|
|
|
|
|
|
|
{% include 'compute_block_link.html' %}
|
|
|
|
|
|
|
|
{% include 'errors_block.html' %}
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
2015-03-04 13:43:29 +00:00
|
|
|
{% if not ifaces_all %}
|
|
|
|
<div class="well">
|
|
|
|
<h4>{% trans "You do not have any storage pools" %}</h4>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
{% for iface in ifaces_all %}
|
|
|
|
<div class="col-xs-12 col-sm-4">
|
|
|
|
<div class="panel {% ifequal iface.state 1 %}panel-success{% else %}panel-danger{% endifequal %} panel-data">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title"><a href="{% url 'interface' compute.id iface.name %}">{{ iface.name }}</a>
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<p>{% trans "Type" %}: {{ iface.type }}</p>
|
|
|
|
|
|
|
|
<p>{% trans "MAC" %}: {{ iface.mac }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
2015-03-03 14:53:10 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|