Fixed display issues on Details Page caused by bootstrap 3 update

Per UX suggestion applied Bootstrap 'dl-horizontal' styling plus
added css to left justify the labels on the details page.  Also
addeds col-sm-12 div inside all row divs in detail views, to achieve
proper bootstrap grid usage.

Closes-bug: #1349602
Change-Id: I337150c7a8c90cc838fac8cb89a552a0566789e3
This commit is contained in:
Aaron Sahlin 2014-08-20 10:32:51 -05:00
parent b4735c6ce6
commit 4395851050
46 changed files with 560 additions and 548 deletions

View File

@ -3,7 +3,7 @@
<h3>{% blocktrans with router_name=router.name %}Router Overview: {{ router_name }}{% endblocktrans %}</h3>
<div class="info detail">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ router.name|default:_("None") }}</dd>
<dt>{% trans "ID" %}</dt>
@ -15,19 +15,18 @@
<dt>{% trans "Admin State" %}</dt>
<dd>{{ router.admin_state|default:_("Unknown") }}</dd>
{% if dvr_supported %}
<dt>{% trans "Distributed" %}</dt>
<dd>{{ router.distributed|yesno|capfirst }}</dd>
<dt>{% trans "Distributed" %}</dt>
<dd>{{ router.distributed|yesno|capfirst }}</dd>
{% endif %}
{% if ha_supported %}
<dt>{% trans "High Availability Mode" %}</dt>
<dd>{{ router.ha|yesno|capfirst }}</dd>
<dt>{% trans "High Availability Mode" %}</dt>
<dd>{{ router.ha|yesno|capfirst }}</dd>
{% endif %}
{% if router.external_gateway_info %}
<dt>{% trans "External Gateway Information" %}</dt>
<dd>
{% blocktrans with router_gw_info_network=router.external_gateway_info.network %}Connected External Network: {{ router_gw_info_network }}{% endblocktrans %}
</dd>
<dt>{% trans "External Gateway Information" %}</dt>
<dd>
{% blocktrans with router_gw_info_network=router.external_gateway_info.network %}Connected External Network: {{ router_gw_info_network }}{% endblocktrans %}
</dd>
{% endif %}
</dl>
</div>
</div>

View File

@ -7,10 +7,10 @@
{% endblock page_header %}
{% block main %}
{% include "admin/routers/_detail_overview.html" %}
<div class="row">
<div class="col-sm-12">
{{ tab_group.render }}
{% include "admin/routers/_detail_overview.html" %}
{{ tab_group.render }}
</div>
</div>
{% endblock %}

View File

@ -6,7 +6,7 @@
<div class="info row detail">
<h4>{% trans "Information" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ snapshot.name }}</dd>
<dt>{% trans "ID" %}</dt>
@ -29,7 +29,7 @@
<div class="specs row detail">
<h4>{% trans "Specs" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Size" %}</dt>
<dd>{{ snapshot.size }} {% trans "GB" %}</dd>
<dt>{% trans "Created" %}</dt>

View File

@ -6,16 +6,16 @@
{% block modal-body %}
<div class="info row detail clearfix">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Container Name" %}</dt>
<dd>{{ container.name }}</dd>
<dt>{% trans "Container Access" %}</dt>
{% if container.public_url %}
<dd>{% trans "Public" %}</dd>
<dt>{% trans "Public URL" %}</dt>
<dd>{{ container.public_url }}</dd>
<dd>{% trans "Public" %}</dd>
<dt>{% trans "Public URL" %}</dt>
<dd>{{ container.public_url }}</dd>
{% else %}
<dd>{% trans "Private" %}</dd>
<dd>{% trans "Private" %}</dd>
{% endif %}
<dt>{% trans "Object Count" %}</dt>
<dd>{{ container.container_object_count }}</dd>

View File

@ -6,7 +6,7 @@
{% block modal-body %}
<div class="info row detail">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ object.name }}</dd>
<dt>{% trans "Hash" %}</dt>

View File

@ -2,53 +2,53 @@
{% load url from future %}
<h3>{% trans "Template Overview" %}</h3>
<div class="status row detail">
<dl>
<dt>{% trans "Name" %}</dt>
<dd>{{ template.name }}</dd>
<dt>{% trans "ID" %}</dt>
<dd>{{ template.id }}</dd>
<dt>{% trans "Description" %}</dt>
<dd>{{ template.description|default:_("None") }}</dd>
</dl>
<dl>
<dt>{% trans "Plugin" %}</dt>
<dd><a href="{% url 'horizon:project:data_processing.data_plugins:details' template.plugin_name %}">{{ template.plugin_name }}</a></dd>
<dt>{% trans "Version" %}</dt>
<dd>{{ template.hadoop_version }}</dd>
</dl>
<dl>
<dt>{% trans "Anti-affinity enabled for" %}</dt>
{% if template.anti_affinity %}
<dd>
<ul class="list-bullet">
{% for process in template.anti_affinity %}
<li>{{ process }}</li>
{% endfor %}
</ul>
</dd>
{% else %}
<h6>{% trans "no processes" %}</h6>
{% endif %}
</dl>
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ template.name }}</dd>
<dt>{% trans "ID" %}</dt>
<dd>{{ template.id }}</dd>
<dt>{% trans "Description" %}</dt>
<dd>{{ template.description|default:_("None") }}</dd>
</dl>
<dl class="dl-horizontal">
<dt>{% trans "Plugin" %}</dt>
<dd><a href="{% url 'horizon:project:data_processing.data_plugins:details' template.plugin_name %}">{{ template.plugin_name }}</a></dd>
<dt>{% trans "Version" %}</dt>
<dd>{{ template.hadoop_version }}</dd>
</dl>
<dl class="dl-horizontal">
<dt>{% trans "Anti-affinity enabled for" %}</dt>
{% if template.anti_affinity %}
<dd>
<ul class="list-bullet">
{% for process in template.anti_affinity %}
<li>{{ process }}</li>
{% endfor %}
</ul>
</dd>
{% else %}
<h6>{% trans "no processes" %}</h6>
{% endif %}
</dl>
<dl class="dl-horizontal">
<dt>{% trans "Node Configurations" %}</dt>
{% if template.cluster_configs %}
<dd>
{% for service, service_conf in template.cluster_configs.items %}
<h4>{{ service }}</h4>
{% if service_conf %}
<ul>
{% for conf_name, conf_value in service_conf.items %}
<li>{% blocktrans %}{{ conf_name }}: {{ conf_value }}{% endblocktrans %}</li>
{% endfor %}
</ul>
{% else %}
<h6>{% trans "No configurations" %}</h6>
{% endif %}
{% endfor %}
</dd>
{% else %}
<dd>{% trans "Cluster configurations are not specified" %}</dd>
{% endif %}
</dl>
</div>
{% if template.cluster_configs %}
<dd>
{% for service, service_conf in template.cluster_configs.items %}
<h4>{{ service }}</h4>
{% if service_conf %}
<ul>
{% for conf_name, conf_value in service_conf.items %}
<li>{% blocktrans %}{{ conf_name }}: {{ conf_value }}{% endblocktrans %}</li>
{% endfor %}
</ul>
{% else %}
<h6>{% trans "No configurations" %}</h6>
{% endif %}
{% endfor %}
</dd>
{% else %}
<dd>{% trans "Cluster configurations are not specified" %}</dd>
{% endif %}
</dl>
</div>

View File

@ -2,90 +2,90 @@
{% load url from future %}
<h3>{% trans "Cluster Overview" %}</h3>
<div class="status row detail">
<dl>
<dt>{% trans "Name" %}</dt>
<dd>{{ cluster.name }}</dd>
<dt>{% trans "ID" %}</dt>
<dd>{{ cluster.id }}</dd>
<dt>{% trans "Description" %}</dt>
<dd>{{ cluster.description|default:_("None") }}</dd>
<dt>{% trans "Status" %}</dt>
<dd>{{ cluster.status }}</dd>
</dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ cluster.name }}</dd>
<dt>{% trans "ID" %}</dt>
<dd>{{ cluster.id }}</dd>
<dt>{% trans "Description" %}</dt>
<dd>{{ cluster.description|default:_("None") }}</dd>
<dt>{% trans "Status" %}</dt>
<dd>{{ cluster.status }}</dd>
</dl>
{% if cluster.error_description %}
{% if cluster.error_description %}
<h4>{% trans "Error Details" %}</h4>
<p class="well">
{{ cluster.error_description }}
</p>
{% endif %}
<dl class="dl-horizontal">
<dt>{% trans "Plugin" %}</dt>
<dd><a href="{% url 'horizon:project:data_processing.data_plugins:details' cluster.plugin_name %}">{{ cluster.plugin_name }}</a></dd>
<dt>{% trans "Version" %}</dt>
<dd>{{ cluster.hadoop_version }}</dd>
</dl>
<dl class="dl-horizontal">
<dt>{% trans "Template" %}</dt>
{% if cluster_template %}
<dd><a href="{% url 'horizon:project:data_processing.cluster_templates:details' cluster_template.id %}">{{ cluster_template.name }} </a></dd>
{% else %}
<dd>{% trans "Template not specified" %}</dd>
{% endif %}
<dl>
<dt>{% trans "Plugin" %}</dt>
<dd><a href="{% url 'horizon:project:data_processing.data_plugins:details' cluster.plugin_name %}">{{ cluster.plugin_name }}</a></dd>
<dt>{% trans "Version" %}</dt>
<dd>{{ cluster.hadoop_version }}</dd>
<dt>{% trans "Base Image" %}</dt>
<dd><a href="{% url 'horizon:project:images:images:detail' base_image.id %}">{{ base_image.name }}</a></dd>
{% if network %}
<dt>{% trans "Neutron Management Network" %}</dt>
<dd>{{ network }}</dd>
{% endif %}
<dt>{% trans "Keypair" %}</dt>
<dd>{{ cluster.user_keypair_id }}</dd>
</dl>
<dl class="dl-horizontal">
<dt>{% trans "Anti-affinity enabled for" %}</dt>
{% if cluster.anti_affinity %}
<dd>
<ul class="list-bullet">
{% for process in cluster.anti_affinity %}
<li>{{ process }}</li>
{% endfor %}
</ul>
</dd>
{% else %}
<h6>{% trans "no processes" %}</h6>
{% endif %}
</dl>
<dl>
<dt>{% trans "Template" %}</dt>
{% if cluster_template %}
<dd><a href="{% url 'horizon:project:data_processing.cluster_templates:details' cluster_template.id %}">{{ cluster_template.name }} </a></dd>
{% else %}
<dd>{% trans "Template not specified" %}</dd>
{% endif %}
<dt>{% trans "Base Image" %}</dt>
<dd><a href="{% url 'horizon:project:images:images:detail' base_image.id %}">{{ base_image.name }}</a></dd>
{% if network %}
<dt>{% trans "Neutron Management Network" %}</dt>
<dd>{{ network }}</dd>
{% endif %}
<dt>{% trans "Keypair" %}</dt>
<dd>{{ cluster.user_keypair_id }}</dd>
</dl>
<dl>
<dt>{% trans "Anti-affinity enabled for" %}</dt>
{% if cluster.anti_affinity %}
<dd>
<ul class="list-bullet">
{% for process in cluster.anti_affinity %}
<li>{{ process }}</li>
{% endfor %}
</ul>
</dd>
{% else %}
<h6>{% trans "no processes" %}</h6>
{% endif %}
</dl>
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Node Configurations" %}</dt>
{% if cluster.cluster_configs %}
<dd>
{% for service, service_conf in cluster.cluster_configs.items %}
<h4>{{ service }}</h4>
{% if service_conf %}
<ul>
{% for conf_name, conf_value in service_conf.items %}
<li>{% blocktrans %}{{ conf_name }}: {{ conf_value }}{% endblocktrans %}</li>
{% endfor %}
</ul>
{% else %}
<h6>{% trans "No configurations" %}</h6>
{% endif %}
{% endfor %}
</dd>
{% else %}
<dd>{% trans "Cluster configurations are not specified" %}</dd>
{% endif %}
</dl>
<dl>
{% for info_key, info_val in cluster.info.items %}
<dt>{{ info_key }}</dt>
{% for key, val in info_val.items %}
<dd>
{% autoescape off %}{% blocktrans %}{{ key }}: {{ val }}{% endblocktrans %}{% endautoescape %}
</dd>
{% endfor %}
{% if cluster.cluster_configs %}
<dd>
{% for service, service_conf in cluster.cluster_configs.items %}
<h4>{{ service }}</h4>
{% if service_conf %}
<ul>
{% for conf_name, conf_value in service_conf.items %}
<li>{% blocktrans %}{{ conf_name }}: {{ conf_value }}{% endblocktrans %}</li>
{% endfor %}
</ul>
{% else %}
<h6>{% trans "No configurations" %}</h6>
{% endif %}
{% endfor %}
</dl>
</dd>
{% else %}
<dd>{% trans "Cluster configurations are not specified" %}</dd>
{% endif %}
</dl>
<dl class="dl-horizontal">
{% for info_key, info_val in cluster.info.items %}
<dt>{{ info_key }}</dt>
{% for key, val in info_val.items %}
<dd>
{% autoescape off %}{% blocktrans %}{{ key }}: {{ val }}{% endblocktrans %}{% endautoescape %}
</dd>
{% endfor %}
{% endfor %}
</dl>
</div>

View File

@ -3,23 +3,22 @@
<h3>{% trans "Data Processing Plugin Overview" %}</h3>
<div class="status row detail">
<h4>{% trans "Information" %}</h4>
<hr class="header_rule">
<dl>
<dt>{% trans "Name" %}</dt>
<dd>{{ plugin.name }}</dd>
<dt>{% trans "Title" %}</dt>
<dd>{{ plugin.title }}</dd>
<dt>{% trans "Description" %}</dt>
<dd>{{ plugin.description }}</dd>
<dt>{% trans "Supported Versions" %}</dt>
<dd>
<ul class="list-bullet">
{% for version in plugin.versions %}
<li>{{ version }}</li>
{% endfor %}
</ul>
</dd>
</dl>
<h4>{% trans "Information" %}</h4>
<hr class="header_rule">
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ plugin.name }}</dd>
<dt>{% trans "Title" %}</dt>
<dd>{{ plugin.title }}</dd>
<dt>{% trans "Description" %}</dt>
<dd>{{ plugin.description }}</dd>
<dt>{% trans "Supported Versions" %}</dt>
<dd>
<ul class="list-bullet">
{% for version in plugin.versions %}
<li>{{ version }}</li>
{% endfor %}
</ul>
</dd>
</dl>
</div>

View File

@ -1,18 +1,18 @@
{% load i18n sizeformat %}
<h3>{% trans "Data Source Overview" %}</h3>
<div class="status row detail">
<dl>
<dt>{% trans "Name" %}</dt>
<dd>{{ data_source.name }}</dd>
<dt>{% trans "ID" %}</dt>
<dd>{{ data_source.id }}</dd>
<dt>{% trans "Type" %}</dt>
<dd>{{ data_source.type }}</dd>
<dt>{% trans "URL" %}</dt>
<dd>{{ data_source.url }}</dd>
<dt>{% trans "Description" %}</dt>
<dd>{{ data_source.description|default:_("None") }}</dd>
<dt>{% trans "Create time" %}</dt>
<dd>{{ data_source.created_at }}</dd>
</dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ data_source.name }}</dd>
<dt>{% trans "ID" %}</dt>
<dd>{{ data_source.id }}</dd>
<dt>{% trans "Type" %}</dt>
<dd>{{ data_source.type }}</dd>
<dt>{% trans "URL" %}</dt>
<dd>{{ data_source.url }}</dd>
<dt>{% trans "Description" %}</dt>
<dd>{{ data_source.description|default:_("None") }}</dd>
<dt>{% trans "Create time" %}</dt>
<dd>{{ data_source.created_at }}</dd>
</dl>
</div>

View File

@ -1,17 +1,17 @@
{% load i18n %}
<h3>{% trans "Job Binary Overview" %}</h3>
<div class="status row detail">
<dl>
<dt>{% trans "Name" %}</dt>
<dd>{{ job_binary.name }}</dd>
<dt>{% trans "ID" %}</dt>
<dd>{{ job_binary.id }}</dd>
<dt>{% trans "URL" %}</dt>
<dd>{{ job_binary.url }}</dd>
<dt>{% trans "Description" %}</dt>
<dd>{{ job_binary.description|default:_("None") }}</dd>
<dt>{% trans "Create time" %}</dt>
<dd>{{ job_binary.created_at }}</dd>
</dl>
<a href="{% url 'horizon:project:data_processing.job_binaries:download' job_binary.id %}">{% trans "Download job binary" %}</a>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ job_binary.name }}</dd>
<dt>{% trans "ID" %}</dt>
<dd>{{ job_binary.id }}</dd>
<dt>{% trans "URL" %}</dt>
<dd>{{ job_binary.url }}</dd>
<dt>{% trans "Description" %}</dt>
<dd>{{ job_binary.description|default:_("None") }}</dd>
<dt>{% trans "Create time" %}</dt>
<dd>{{ job_binary.created_at }}</dd>
</dl>
<a href="{% url 'horizon:project:data_processing.job_binaries:download' job_binary.id %}">{% trans "Download job binary" %}</a>
</div>

View File

@ -2,41 +2,41 @@
{% load url from future %}
<h3>{% trans "Job Execution Overview" %}</h3>
<div class="status row detail">
<dl>
<dt>{% trans "Status" %}</dt>
<dd>{{ job_execution.info.status }}</dd>
<dt>{% trans "ID" %}</dt>
<dd>{{ job_execution.id }}</dd>
<dt>{% trans "Job" %}</dt>
<dd><a href="{% url 'horizon:project:data_processing.jobs:details' job_execution.job_id %}">{{ object_names.job_name }}</a></dd>
<dt>{% trans "Input Data Source" %}</dt>
<dd><a href="{% url 'horizon:project:data_processing.data_sources:details' job_execution.input_id %}">{{ object_names.input_name }}</a></dd>
<dt>{% trans "Output Data Source" %}</dt>
<dd><a href="{% url 'horizon:project:data_processing.data_sources:details' job_execution.output_id %}">{{ object_names.output_name }}</a></dd>
<dt>{% trans "Cluster" %}</dt>
<dd><a href="{% url 'horizon:project:data_processing.clusters:details' job_execution.cluster_id %}">{{ object_names.cluster_name }}</a></dd>
<dt>{% trans "Last Updated" %}</dt>
<dd>{{ job_execution.updated_at }}</dd>
<dt>{% trans "Started" context "Start time" %}</dt>
<dd>{{ job_execution.start_time }}</dd>
<dt>{% trans "Ended" context "End time" %}</dt>
<dd>{{ job_execution.end_time }}</dd>
<dt>{% trans "Return Code" %}</dt>
<dd>{{ job_execution.return_code }}</dd>
<dt>{% trans "Oozie Job ID" %}</dt>
<dd>{{ job_execution.oozie_job_id }}</dd>
<dt>{% trans "Created" context "Created time" %}</dt>
<dd>{{ job_execution.created_at }}</dd>
<dt>{% trans "Job Configuration" %}</dt>
<dd>{% for group, vals in job_execution.job_configs.iteritems %}
<ul><li><span style="font-weight:bold">{% blocktrans %}{{ group }}:{% endblocktrans %}</span>
{%if group == "args" %}
<ul>{% for val in vals %} <li>{{ val }}</li> {% endfor %}</ul>
{% else %}
<ul>{% for key, val in vals.iteritems %} <li>{{ key }} = {{ val }}</li> {% endfor %}</ul>
{% endif %}
</li></ul>
{% endfor %}
</dd>
</dl>
<dl class="dl-horizontal">
<dt>{% trans "Status" %}</dt>
<dd>{{ job_execution.info.status }}</dd>
<dt>{% trans "ID" %}</dt>
<dd>{{ job_execution.id }}</dd>
<dt>{% trans "Job" %}</dt>
<dd><a href="{% url 'horizon:project:data_processing.jobs:details' job_execution.job_id %}">{{ object_names.job_name }}</a></dd>
<dt>{% trans "Input Data Source" %}</dt>
<dd><a href="{% url 'horizon:project:data_processing.data_sources:details' job_execution.input_id %}">{{ object_names.input_name }}</a></dd>
<dt>{% trans "Output Data Source" %}</dt>
<dd><a href="{% url 'horizon:project:data_processing.data_sources:details' job_execution.output_id %}">{{ object_names.output_name }}</a></dd>
<dt>{% trans "Cluster" %}</dt>
<dd><a href="{% url 'horizon:project:data_processing.clusters:details' job_execution.cluster_id %}">{{ object_names.cluster_name }}</a></dd>
<dt>{% trans "Last Updated" %}</dt>
<dd>{{ job_execution.updated_at }}</dd>
<dt>{% trans "Started" context "Start time" %}</dt>
<dd>{{ job_execution.start_time }}</dd>
<dt>{% trans "Ended" context "End time" %}</dt>
<dd>{{ job_execution.end_time }}</dd>
<dt>{% trans "Return Code" %}</dt>
<dd>{{ job_execution.return_code }}</dd>
<dt>{% trans "Oozie Job ID" %}</dt>
<dd>{{ job_execution.oozie_job_id }}</dd>
<dt>{% trans "Created" context "Created time" %}</dt>
<dd>{{ job_execution.created_at }}</dd>
<dt>{% trans "Job Configuration" %}</dt>
<dd>{% for group, vals in job_execution.job_configs.iteritems %}
<ul><li><span style="font-weight:bold">{% blocktrans %}{{ group }}:{% endblocktrans %}</span>
{%if group == "args" %}
<ul>{% for val in vals %} <li>{{ val }}</li> {% endfor %}</ul>
{% else %}
<ul>{% for key, val in vals.iteritems %} <li>{{ key }} = {{ val }}</li> {% endfor %}</ul>
{% endif %}
</li></ul>
{% endfor %}
</dd>
</dl>
</div>

View File

@ -2,26 +2,26 @@
{% load url from future %}
<h3>{% trans "Job" %}</h3>
<div class="status row detail">
<dl>
<dt>{% trans "Name" %}</dt>
<dd>{{ job.name }}</dd>
<dt>{% trans "ID" %}</dt>
<dd>{{ job.id }}</dd>
<dt>{% trans "Description" %}</dt>
<dd>{{ job.description|default:_("None") }}</dd>
<dt>{% trans "Mains" %}<dt>
{% for main in job.mains %}
<dd><a href="{% url 'horizon:project:data_processing.job_binaries:details' main.id %}">{{ main.name }}</a></dd>
{% empty %}
<dd>{% trans "None" %}</dd>
{% endfor %}
<dt>{% trans "Libs" %}<dt>
{% for lib in job.libs %}
<dd><a href="{% url 'horizon:project:data_processing.job_binaries:details' lib.id %}">{{ lib.name }}</a></dd>
{% empty %}
<dd>{% trans "None" %}</dd>
{% endfor %}
<dt>{% trans "Create time" %}</dt>
<dd>{{ job.created_at }}</dd>
</dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ job.name }}</dd>
<dt>{% trans "ID" %}</dt>
<dd>{{ job.id }}</dd>
<dt>{% trans "Description" %}</dt>
<dd>{{ job.description|default:_("None") }}</dd>
<dt>{% trans "Mains" %}</dt>
{% for main in job.mains %}
<dd><a href="{% url 'horizon:project:data_processing.job_binaries:details' main.id %}">{{ main.name }}</a></dd>
{% empty %}
<dd>{% trans "None" %}</dd>
{% endfor %}
<dt>{% trans "Libs" %}</dt>
{% for lib in job.libs %}
<dd><a href="{% url 'horizon:project:data_processing.job_binaries:details' lib.id %}">{{ lib.name }}</a></dd>
{% empty %}
<dd>{% trans "None" %}</dd>
{% endfor %}
<dt>{% trans "Create time" %}</dt>
<dd>{{ job.created_at }}</dd>
</dl>
</div>

View File

@ -2,7 +2,7 @@
{% load url from future %}
<h3>{% trans "Template Overview" %}</h3>
<div class="status row detail">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ template.name }}</dd>
<dt>{% trans "ID" %}</dt>
@ -10,65 +10,65 @@
<dt>{% trans "Description" %}</dt>
<dd>{{ template.description|default:_("None") }}</dd>
</dl>
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Flavor" %}</dt>
<dd>{{ flavor.name }}</dd>
</dl>
{% if template.availability_zone %}
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Availability Zone" %}</dt>
<dd>{{ template.availability_zone }}</dd>
</dl>
{% endif %}
{% if template.floating_ip_pool %}
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Floating IP Pool" %}</dt>
<dd><a href="{% url 'horizon:project:networks:detail' template.floating_ip_pool %}">{{ floating_ip_pool_name }}</a></dd>
</dl>
{% endif %}
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Plugin" %}</dt>
<dd><a href="{% url 'horizon:project:data_processing.data_plugins:details' template.plugin_name %}">{{ template.plugin_name }}</a></dd>
<dt>{% trans "Version" %}</dt>
<dd>{{ template.hadoop_version }}</dd>
</dl>
<dl>
<dt>{% trans "Auto Security Group" %}</dt>
<dd>{{ template.auto_security_group }}</dd>
</dl>
<dl class="dl-horizontal">
<dt>{% trans "Auto Security Group" %}</dt>
<dd>{{ template.auto_security_group }}</dd>
</dl>
<dl>
<dt>{% trans "Security Groups" %}</dt>
<dd>
<ul class="list-bullet">
{% for group in template.security_groups %}
<li>{{ group }}</li>
{% endfor %}
</ul>
</dd>
</dl>
<dl class="dl-horizontal">
<dt>{% trans "Security Groups" %}</dt>
<dd>
<ul class="list-bullet">
{% for group in template.security_groups %}
<li>{{ group }}</li>
{% endfor %}
</ul>
</dd>
</dl>
<dl>
<dt>{% trans "Node Processes" %}</dt>
<dd>
<ul class="list-bullet">
{% for process in template.node_processes %}
<li>{{ process }}</li>
{% endfor %}
</ul>
</dd>
</dl>
<dl>
<h4>{% trans "HDFS placement" %}</h4>
{% if template.volumes_per_node %}
<h6>{% trans "Cinder volumes" %}</h6>
<dt>{% trans "Volumes per node" %}</dt>
<dd>{{ template.volumes_per_node }}</dd>
<dt>{% trans "Volumes size" %}</dt>
<dd>{{ template.volumes_size }}</dd>
{% else %}
<h6>{% trans "Ephemeral drive" %}</h6>
{% endif %}
</dl>
<dl class="dl-horizontal">
<dt>{% trans "Node Processes" %}</dt>
<dd>
<ul class="list-bullet">
{% for process in template.node_processes %}
<li>{{ process }}</li>
{% endfor %}
</ul>
</dd>
</dl>
<dl class="dl-horizontal">
<h4>{% trans "HDFS placement" %}</h4>
{% if template.volumes_per_node %}
<h6>{% trans "Cinder volumes" %}</h6>
<dt>{% trans "Volumes per node" %}</dt>
<dd>{{ template.volumes_per_node }}</dd>
<dt>{% trans "Volumes size" %}</dt>
<dd>{{ template.volumes_size }}</dd>
{% else %}
<h6>{% trans "Ephemeral drive" %}</h6>
{% endif %}
</dl>
</div>

View File

@ -1,7 +1,7 @@
{% load i18n sizeformat %}
<h3>{% trans "Service Configurations" %}</h3>
<div class="status row detail">
<dl>
<dl class="dl-horizontal">
{% for service, config in template.node_configs.items %}
<dt>{{ service }}</dt>
<dd>
@ -20,4 +20,4 @@
{% endfor %}
</dl>
</div>
</div>

View File

@ -14,7 +14,7 @@
<div class="status row detail">
<h4>{% trans "Information" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ backup.name }}</dd>
<dt>{% trans "Description" %}</dt>
@ -22,10 +22,10 @@
<dt>{% trans "ID" %}</dt>
<dd>{{ backup.id }}</dd>
{% if backup.datastore %}
<dt>{% trans "Datastore" %}</dt>
<dd>{{ backup.datastore.type }}</dd>
<dt>{% trans "Datastore Version" %}</dt>
<dd>{{ backup.datastore.version }}</dd>
<dt>{% trans "Datastore" %}</dt>
<dd>{{ backup.datastore.type }}</dd>
<dt>{% trans "Datastore Version" %}</dt>
<dd>{{ backup.datastore.version }}</dd>
{% endif %}
<dt>{% trans "Status" %}</dt>
<dd>{{ backup.status|title }}</dd>
@ -46,11 +46,11 @@
<div class="status row detail">
<h4>{% trans "Incremental Backup" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Parent Backup" %}</dt>
<dd>
{% url 'horizon:project:database_backups:detail' backup.parent.id as parent_url %}
<a href="{{ parent_url }}">{{ backup.parent.name }}</a>
{% url 'horizon:project:database_backups:detail' backup.parent.id as parent_url %}
<a href="{{ parent_url }}">{{ backup.parent.name }}</a>
</dd>
</dl>
</div>
@ -60,7 +60,7 @@
<div class="addresses row detail">
<h4>{% trans "Database Info" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ instance.name }}</dd>
<dt>{% trans "ID" %}</dt>

View File

@ -5,7 +5,7 @@
<div class="status row detail">
<h4>{% trans "Information" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ instance.name }}</dd>
<dt>{% trans "ID" %}</dt>
@ -22,14 +22,14 @@
<div class="specs row detail">
<h4>{% trans "Specs" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Flavor" %}</dt>
<dd>{{ instance.full_flavor.name }}</dd>
<dt>{% trans "RAM" %}</dt>
<dd>{{ instance.full_flavor.ram|mbformat }}</dd>
{% if instance.volume %}
<dt>{% trans "Volume Size" %}</dt>
<dd>{{ instance.volume.size|diskgbformat }}</dd>
<dt>{% trans "Volume Size" %}</dt>
<dd>{{ instance.volume.size|diskgbformat }}</dd>
{% endif %}
<dt>{% trans "Created" %}</dt>
<dd>{{ instance.created|parse_isotime }}</dd>

View File

@ -2,22 +2,22 @@
{% load i18n sizeformat %}
{% block connection_info %}
<div class="addresses row detail">
<div class="addresses row detail">
<h4>{% trans "Connection Info" %}</h4>
<hr class="header_rule">
<dl>
{% with instance.host as host %}
<dt>{% trans "Host" %}</dt>
{% if not host %}
<dd>{% trans "Not Assigned" %}</dd>
{% else %}
<dd>{{ host }}</dd>
<dt>{% trans "Database Port" %}</dt>
<dd>9160</dd>
<dt>{% trans "Connection Examples" %}</dt>
<dd>cqlsh {{ host }} 9160</dd>
{% endif %} <!-- ends else block -->
{% endwith %}
<dl class="dl-horizontal">
{% with instance.host as host %}
<dt>{% trans "Host" %}</dt>
{% if not host %}
<dd>{% trans "Not Assigned" %}</dd>
{% else %}
<dd>{{ host }}</dd>
<dt>{% trans "Database Port" %}</dt>
<dd>9160</dd>
<dt>{% trans "Connection Examples" %}</dt>
<dd>cqlsh {{ host }} 9160</dd>
{% endif %} <!-- ends else block -->
{% endwith %}
</dl>
</div>
</div>
{% endblock %}

View File

@ -2,20 +2,20 @@
{% load i18n sizeformat %}
{% block connection_info %}
<div class="addresses row detail">
<div class="addresses row detail">
<h4>{% trans "Connection Info" %}</h4>
<hr class="header_rule">
<dl>
{% with instance.host as host %}
<dt>{% trans "Host" %}</dt>
{% if not host %}
<dd>{% trans "Not Assigned" %}</dd>
{% else %}
<dd>{{ host }}</dd>
<dt>{% trans "Connection Examples" %}</dt>
<dd>http://{{ host }}:8091</dd>
{% endif %} <!-- ends else block -->
{% endwith %}
<dl class="dl-horizontal">
{% with instance.host as host %}
<dt>{% trans "Host" %}</dt>
{% if not host %}
<dd>{% trans "Not Assigned" %}</dd>
{% else %}
<dd>{{ host }}</dd>
<dt>{% trans "Connection Examples" %}</dt>
<dd>http://{{ host }}:8091</dd>
{% endif %} <!-- ends else block -->
{% endwith %}
</dl>
</div>
</div>
{% endblock %}

View File

@ -2,23 +2,23 @@
{% load i18n sizeformat %}
{% block connection_info %}
<div class="addresses row detail">
<div class="addresses row detail">
<h4>{% trans "Connection Info" %}</h4>
<hr class="header_rule">
<dl>
{% with instance.host as host %}
<dt>{% trans "Host" %}</dt>
{% if not host %}
<dd>{% trans "Not Assigned" %}</dd>
{% else %}
<dd>{{ host }}</dd>
<dt>{% trans "Database Port" %}</dt>
<dd>27017</dd>
<dt>{% trans "Connection Examples" %}</dt>
<dd>mongo --host {{ host }}</dd>
<dd>mongodb://[{% trans "USERNAME" %}:{% trans "PASSWORD" %}@]{{ host }}:27017/{% trans "DATABASE" %}</dd>
{% endif %} <!-- ends else block -->
{% endwith %}
<dl class="dl-horizontal">
{% with instance.host as host %}
<dt>{% trans "Host" %}</dt>
{% if not host %}
<dd>{% trans "Not Assigned" %}</dd>
{% else %}
<dd>{{ host }}</dd>
<dt>{% trans "Database Port" %}</dt>
<dd>27017</dd>
<dt>{% trans "Connection Examples" %}</dt>
<dd>mongo --host {{ host }}</dd>
<dd>mongodb://[{% trans "USERNAME" %}:{% trans "PASSWORD" %}@]{{ host }}:27017/{% trans "DATABASE" %}</dd>
{% endif %} <!-- ends else block -->
{% endwith %}
</dl>
</div>
</div>
{% endblock %}

View File

@ -2,23 +2,23 @@
{% load i18n sizeformat %}
{% block connection_info %}
<div class="addresses row detail">
<div class="addresses row detail">
<h4>{% trans "Connection Info" %}</h4>
<hr class="header_rule">
<dl>
{% with instance.host as host %}
<dt>{% trans "Host" %}</dt>
{% if not host %}
<dd>{% trans "Not Assigned" %}</dd>
{% else %}
<dd>{{ host }}</dd>
<dt>{% trans "Database Port" %}</dt>
<dd>3306</dd>
<dt>{% trans "Connection Examples" %}</dt>
<dd>mysql -h {{ host }} -u {% trans "USERNAME" %} -p</dd>
<dd>mysql://{% trans "USERNAME" %}:{% trans "PASSWORD" %}@{{ host }}:3306/{% trans "DATABASE"%}</dd>
{% endif %} <!-- ends else block -->
{% endwith %}
<dl class="dl-horizontal">
{% with instance.host as host %}
<dt>{% trans "Host" %}</dt>
{% if not host %}
<dd>{% trans "Not Assigned" %}</dd>
{% else %}
<dd>{{ host }}</dd>
<dt>{% trans "Database Port" %}</dt>
<dd>3306</dd>
<dt>{% trans "Connection Examples" %}</dt>
<dd>mysql -h {{ host }} -u {% trans "USERNAME" %} -p</dd>
<dd>mysql://{% trans "USERNAME" %}:{% trans "PASSWORD" %}@{{ host }}:3306/{% trans "DATABASE"%}</dd>
{% endif %} <!-- ends else block -->
{% endwith %}
</dl>
</div>
</div>
{% endblock %}

View File

@ -2,20 +2,20 @@
{% load i18n sizeformat %}
{% block connection_info %}
<div class="addresses row detail">
<div class="addresses row detail">
<h4>{% trans "Connection Info" %}</h4>
<hr class="header_rule">
<dl>
{% with instance.host as host %}
<dt>{% trans "Host" %}</dt>
{% if not host %}
<dd>{% trans "Not Assigned" %}</dd>
{% else %}
<dd>{{ host }}</dd>
<dt>{% trans "Connection Examples" %}</dt>
<dd>redis-cli -h {{ host }}</dd>
{% endif %} <!-- ends else block -->
{% endwith %}
<dl class="dl-horizontal">
{% with instance.host as host %}
<dt>{% trans "Host" %}</dt>
{% if not host %}
<dd>{% trans "Not Assigned" %}</dd>
{% else %}
<dd>{{ host }}</dd>
<dt>{% trans "Connection Examples" %}</dt>
<dd>redis-cli -h {{ host }}</dd>
{% endif %} <!-- ends else block -->
{% endwith %}
</dl>
</div>
</div>
{% endblock %}

View File

@ -3,7 +3,7 @@
<div class="info row detail">
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ firewall.name|default:_("-") }}</dd>

View File

@ -3,7 +3,7 @@
<div class="info row detail">
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ policy.name|default:_("-") }}</dd>

View File

@ -3,7 +3,7 @@
<div class="info row detail">
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ rule.name|default:_("-") }}</dd>

View File

@ -5,7 +5,7 @@
<div class="info row detail">
<h4>{% trans "Information" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ image.name|default:_("None") }}</dd>
{% if image.properties.description %}
@ -42,7 +42,7 @@
<div class="specs row detail">
<h4>{% trans "Specs" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Size" %}</dt>
<dd>{{ image.size|filesizeformat }}</dd>
<dt>{% trans "Container Format" %}</dt>
@ -63,7 +63,7 @@
<div class="properties row detail">
<h4>{% trans "Custom Properties" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
{% for prop, title, val in image_props %}
<dt title="{{ prop }}">{{ title }}</dt>
<dd>{{ val }}</dd>

View File

@ -3,10 +3,10 @@
<h3>{% trans "Instance Overview" %}</h3>
<div class="status row detail">
<div class="status detail">
<h4>{% trans "Information" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ instance.name }}</dd>
<dt>{% trans "ID" %}</dt>
@ -25,26 +25,26 @@
</div>
{% if instance.fault %}
<div class="status row detail">
<h4>{% trans "Fault" %}</h4>
<hr class="header_rule">
<dl>
<dt>{% trans "Message" %}</dt>
<dd>{{ instance.fault.message }}</dd>
<dt>{% trans "Code" %}</dt>
<dd>{{ instance.fault.code }}</dd>
<dt>{% trans "Details" %}</dt>
<dd>{{ instance.fault.details }}</dd>
<dt>{% trans "Created" %}</dt>
<dd>{{ instance.fault.created|parse_isotime }}</dd>
</dl>
<div class="status detail">
<h4>{% trans "Fault" %}</h4>
<hr class="header_rule">
<dl class="dl-horizontal">
<dt>{% trans "Message" %}</dt>
<dd>{{ instance.fault.message }}</dd>
<dt>{% trans "Code" %}</dt>
<dd>{{ instance.fault.code }}</dd>
<dt>{% trans "Details" %}</dt>
<dd>{{ instance.fault.details }}</dd>
<dt>{% trans "Created" %}</dt>
<dd>{{ instance.fault.created|parse_isotime }}</dd>
</dl>
</div>
{% endif %}
<div class="specs row detail">
<div class="specs detail">
<h4>{% trans "Specs" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Flavor" %}</dt>
{% if instance.full_flavor %}
<dd>{{ instance.full_flavor.name }}</dd>
@ -55,8 +55,8 @@
<dt>{% trans "Disk" %}</dt>
<dd>{{ instance.full_flavor.disk }}{% trans "GB" %}</dd>
{% if instance.full_flavor.ephemeral %}
<dt>{% trans "Ephemeral Disk" %}</dt>
<dd>{{ instance.full_flavor.ephemeral }}{% trans "GB" %}</dd>
<dt>{% trans "Ephemeral Disk" %}</dt>
<dd>{{ instance.full_flavor.ephemeral }}{% trans "GB" %}</dd>
{% endif %}
{% else %}
{% trans "Not available" %}
@ -64,72 +64,72 @@
</dl>
</div>
<div class="addresses row detail">
<h4>{% trans "IP Addresses" %}</h4>
<hr class="header_rule">
<dl>
{% for network, ip_list in instance.addresses.items %}
<dt>{{ network|title }}</dt>
<dd>
{% for ip in ip_list %}
{% if not forloop.last %}{{ ip.addr}},&nbsp;{% else %}{{ip.addr}}{% endif %}
<div class="addresses detail">
<h4>{% trans "IP Addresses" %}</h4>
<hr class="header_rule">
<dl class="dl-horizontal">
{% for network, ip_list in instance.addresses.items %}
<dt>{{ network|title }}</dt>
<dd>
{% for ip in ip_list %}
{% if not forloop.last %}{{ ip.addr}},&nbsp;{% else %}{{ip.addr}}{% endif %}
{% endfor %}
</dd>
{% endfor %}
</dd>
{% endfor %}
</dl>
</dl>
</div>
<div class="security_groups row detail">
<h4>{% trans "Security Groups" %}</h4>
<hr class="header_rule">
<dl>
{% for group in instance.security_groups %}
<dt>{{ group.name }}</dt>
<dd>
<ul>
{% for rule in group.rules %}
<li>{{ rule }}</li>
<div class="security_groups detail">
<h4>{% trans "Security Groups" %}</h4>
<hr class="header_rule">
<dl class="dl-horizontal">
{% for group in instance.security_groups %}
<dt>{{ group.name }}</dt>
<dd>
<ul>
{% for rule in group.rules %}
<li>{{ rule }}</li>
{% empty %}
<li><em>{% trans "No rules defined." %}</em></li>
{% endfor %}
</ul>
</dd>
{% empty %}
<li><em>{% trans "No rules defined." %}</em></li>
{% trans "Not available" %}
{% endfor %}
</ul>
</dd>
{% empty %}
{% trans "Not available" %}
{% endfor %}
</dl>
</dl>
</div>
<div class="meta row detail">
<h4>{% trans "Metadata" %}</h4>
<hr class="header_rule">
<dl>
<dt>{% trans "Key Name" %}</dt>
{% with default_key_name="<em>"|add:_("None")|add:"</em>" %}
<dd>{{ instance.key_name|default:default_key_name }}</dd>
{% endwith %}
{% url 'horizon:project:images:images:detail' instance.image.id as image_url %}
<dt>{% trans "Image Name" %}</dt>
<dd>
{% if instance.image %}
<a href="{{ image_url }}">{{ instance.image_name }}</a>
{% else %}
<em>{% trans "None" %}</em>
{% endif %}
</dd>
{% with default_item_value="<em>"|add:_("N/A")|add:"</em>" %}
{% for key, value in instance.metadata.items %}
<dt>{{ key|force_escape }}</dt>
<dd>{{ value|force_escape|default:default_item_value }}</dd>
{% endfor%}
{% endwith %}
</dl>
<div class="meta detail">
<h4>{% trans "Metadata" %}</h4>
<hr class="header_rule">
<dl class="dl-horizontal">
<dt>{% trans "Key Name" %}</dt>
{% with default_key_name="<em>"|add:_("None")|add:"</em>" %}
<dd>{{ instance.key_name|default:default_key_name }}</dd>
{% endwith %}
{% url 'horizon:project:images:images:detail' instance.image.id as image_url %}
<dt>{% trans "Image Name" %}</dt>
<dd>
{% if instance.image %}
<a href="{{ image_url }}">{{ instance.image_name }}</a>
{% else %}
<em>{% trans "None" %}</em>
{% endif %}
</dd>
{% with default_item_value="<em>"|add:_("N/A")|add:"</em>" %}
{% for key, value in instance.metadata.items %}
<dt>{{ key|force_escape }}</dt>
<dd>{{ value|force_escape|default:default_item_value }}</dd>
{% endfor%}
{% endwith %}
</dl>
</div>
<div class="volumes row detail">
<div class="volumes detail">
<h4>{% trans "Volumes Attached" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
{% for volume in instance.volumes %}
<dt>{% trans "Attached To" %}</dt>
<dd>

View File

@ -2,7 +2,7 @@
<div class="info row detail">
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "ID" %}</dt>
<dd>{{ member.id }}</dd>

View File

@ -2,7 +2,7 @@
<div class="info row detail">
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "ID" %}</dt>
<dd>{{ monitor.id }}</dd>

View File

@ -2,7 +2,7 @@
<div class="info row detail">
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "ID" %}</dt>
<dd>{{ pool.id }}</dd>

View File

@ -2,7 +2,7 @@
<div class="info row detail">
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "ID" %}</dt>
<dd>{{ vip.id }}</dd>
@ -38,17 +38,17 @@
<dt>{% trans "Session Persistence" %}</dt>
{% if vip.session_persistence %}
<dd>
{% blocktrans with persistence_type=vip.session_persistence.type %}Type: {{ persistence_type }}{% endblocktrans %}
</dd>
<dd>
{% blocktrans with persistence_type=vip.session_persistence.type %}Type: {{ persistence_type }}{% endblocktrans %}
</dd>
{% if vip.session_persistence.cookie_name %}
<dd>
{% blocktrans with cookie_name=vip.session_persistence.cookie_name %}Cookie Name: {{ cookie_name }}{% endblocktrans %}
</dd>
<dd>
{% blocktrans with cookie_name=vip.session_persistence.cookie_name %}Cookie Name: {{ cookie_name }}{% endblocktrans %}
</dd>
{% endif %}
{% else %}
<dd>{% trans "None" %}</dd>
<dd>{% trans "None" %}</dd>
{% endif %}
<dt>{% trans "Connection Limit" %}</dt>

View File

@ -3,7 +3,7 @@
<h3>{% trans "Network Overview" %}</h3>
<div class="info detail">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ network.name|default:_("None") }}</dd>
<dt>{% trans "ID" %}</dt>

View File

@ -7,17 +7,21 @@
{% endblock page_header %}
{% block main %}
{% include "project/networks/_detail_overview.html" %}
<hr>
<div id="subnets">
{{ subnets_table.render }}
</div>
<div id="ports">
{{ ports_table.render }}
</div>
{% if dhcp_agent_support %}
<div id="agents">
{{ agents_table.render }}
<div class="row">
<div class="col-sm-12">
{% include "project/networks/_detail_overview.html" %}
<hr>
<div id="subnets">
{{ subnets_table.render }}
</div>
{% endif %}
<div id="ports">
{{ ports_table.render }}
</div>
{% if dhcp_agent_support %}
<div id="agents">
{{ agents_table.render }}
</div>
{% endif %}
</div>
</div>
{% endblock %}

View File

@ -6,7 +6,7 @@
<div class="info row detail">
<h4>{% trans "Port" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ port.name|default:_("None") }}</dd>
<dt>{% trans "ID" %}</dt>
@ -34,8 +34,8 @@
<dt>{% trans "Admin State" %}</dt>
<dd>{{ port.admin_state|default:_("None") }}</dd>
{% if port.mac_state %}
<dt>{% trans "MAC Learning State" %}</dt>
<dd>{{ port.mac_state }}</dd>
<dt>{% trans "MAC Learning State" %}</dt>
<dd>{{ port.mac_state }}</dd>
{% endif %}
<dt>{% trans "Attached Device" %}</dt>
{% if port.device_id|length > 1 or port.device_owner %}

View File

@ -4,8 +4,9 @@
<h3>{% trans "Subnet Overview" %}</h3>
<div class="info row detail">
<h4>{% trans "Subnet" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ subnet.name|default:_("None") }}</dd>
<dt>{% trans "ID" %}</dt>
@ -20,8 +21,8 @@
<dt>{% trans "IP allocation pool" %}</dt>
<dd>
{% for pool in subnet.allocation_pools %}
{% trans "Start" %} {{ pool.start }}
{% trans " - End" %} {{ pool.end }}<br>
{% trans "Start" %} {{ pool.start }}
{% trans " - End" %} {{ pool.end }}<br>
{% endfor %}
</dd>
<dt>{% trans "Gateway IP" %}</dt>
@ -31,9 +32,9 @@
{% if subnet.ip_version == 6 %}
<dt>{% trans "IPv6 Address Configuration Mode" %}<dt>
{% if subnet.ipv6_modes_desc %}
<dd>{{ subnet.ipv6_modes_desc }}</dd>
<dd>{{ subnet.ipv6_modes_desc }}</dd>
{% else %}
<dd>{% blocktrans with ra_mode=subnet.ipv6_ra_mode addr_mode=subnet.ipv6_address_mode %}
<dd>{% blocktrans with ra_mode=subnet.ipv6_ra_mode addr_mode=subnet.ipv6_address_mode %}
Other IPv6 modes: ipv6_ra_mode={{ ra_mode }}, ipv6_address_mode={{ addr_mode }}
{% endblocktrans %}</dd>
{% endif %}
@ -41,18 +42,18 @@
<dt>{% trans "Additional routes" %}</dt>
<dd>
{% for route in subnet.host_routes %}
{% trans "Destination" %} {{ route.destination }}
{% trans " : Next hop" %} {{ route.nexthop }}<br>
{% empty %}
{% trans "None" %}
{% trans "Destination" %} {{ route.destination }}
{% trans " : Next hop" %} {{ route.nexthop }}<br>
{% empty %}
{% trans "None" %}
{% endfor %}
</dd>
<dt>{% trans "DNS name server" %}</dt>
<dd>
{% for dns in subnet.dns_nameservers %}
{{ dns }}
{% empty %}
{% trans "None" %}
{{ dns }}
{% empty %}
{% trans "None" %}
{% endfor %}
</dd>
</dl>

View File

@ -5,7 +5,7 @@
</h3>
<div class="info detail">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ router.name|default:_("None") }}</dd>
<dt>{% trans "ID" %}</dt>
@ -15,12 +15,12 @@
<dt>{% trans "Admin State" %}</dt>
<dd>{{ router.admin_state|default:_("Unknown") }}</dd>
{% if dvr_supported %}
<dt>{% trans "Distributed" %}</dt>
<dd>{{ router.distributed|yesno|capfirst }}</dd>
<dt>{% trans "Distributed" %}</dt>
<dd>{{ router.distributed|yesno|capfirst }}</dd>
{% endif %}
{% if ha_supported %}
<dt>{% trans "High Availability Mode" %}</dt>
<dd>{{ router.ha|yesno|capfirst }}</dd>
<dt>{% trans "High Availability Mode" %}</dt>
<dd>{{ router.ha|yesno|capfirst }}</dd>
{% endif %}
{% if router.external_gateway_info %}
<dt>{% trans "External Gateway Information" %}</dt>

View File

@ -7,10 +7,10 @@
{% endblock page_header %}
{% block main %}
{% include "project/routers/_detail_overview.html" %}
<div class="row">
<div class="col-sm-12">
{{ tab_group.render }}
{% include "project/routers/_detail_overview.html" %}
{{ tab_group.render }}
</div>
</div>
{% endblock %}

View File

@ -5,7 +5,7 @@
<div class="info row detail">
<h4>{% trans "Information" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ stack.stack_name }}</dd>
<dt>{% trans "ID" %}</dt>
@ -18,7 +18,7 @@
<div class="status row detail">
<h4>{% trans "Status" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Created" %}</dt>
<dd>{{ stack.creation_time|parse_isotime|timesince_or_never }}</dd>
<dt>{% trans "Last Updated" %}</dt>
@ -33,7 +33,7 @@
<div class="outputs row detail">
<h4>{% trans "Outputs" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
{% for output in stack.outputs %}
<dt>{{ output.output_key }}</dt>
<dd>{{ output.description }}</dd>
@ -47,7 +47,7 @@
<div class="parameters row detail">
<h4>{% trans "Stack Parameters" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
{% for key, value in stack.parameters.items %}
<dt>{{ key }}</dt>
<dd>{{ value }}</dd>
@ -58,7 +58,7 @@
<div class="launch row detail">
<h4>{% trans "Launch Parameters" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Timeout" %}</dt>
<dd>{{ stack.timeout_mins }} {% trans "Minutes" %}</dd>
<dt>{% trans "Rollback" %}</dt>

View File

@ -5,11 +5,11 @@
<div class="info row detail">
<h4>{% trans "Information" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Stack Resource ID" %}</dt>
<dd>{{ resource.resource_name }}</dd>
</dl>
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Resource ID" %}</dt>
<dd>
{% if resource_url %}
@ -21,11 +21,11 @@
{% endif %}
</dd>
</dl>
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Stack Resource Type" %}</dt>
<dd>{{ resource.resource_type }}</dd>
</dl>
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Description" %}</dt>
<dd>{{ resource.description }}</dd>
</dl>
@ -34,7 +34,7 @@
<div class="status row detail">
<h4>{% trans "Status" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Last Updated" %}</dt>
<dd>{{ resource.updated_time|parse_isotime|timesince_or_never }}</dd>
<dt>{% trans "Status" %}</dt>

View File

@ -5,10 +5,10 @@
{% blocktrans with backup_display_name=backup.display_name %}Volume Backup Overview: {{ backup_display_name }}{% endblocktrans %}
</h3>
<div class="info row-fluid detail">
<div class="info row detail">
<h4>{% trans "Information" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ backup.name }}</dd>
<dt>{% trans "ID" %}</dt>
@ -30,10 +30,10 @@
</dl>
</div>
<div class="specs row-fluid detail">
<div class="specs row detail">
<h4>{% trans "Specs" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Size" %}</dt>
<dd>{{ backup.size }} {% trans "GB" %}</dd>
<dt>{% trans "Created" %}</dt>
@ -42,10 +42,10 @@
</div>
<div class="status row-fluid detail">
<div class="status row detail">
<h4>{% trans "Metadata" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
{% for key, value in backup.metadata.items %}
<dt>{{ key }}</dt>
<dd>{{ value }}</dd>

View File

@ -6,7 +6,7 @@
<div class="info row detail">
<h4>{% trans "Information" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ snapshot.name }}</dd>
<dt>{% trans "ID" %}</dt>
@ -33,7 +33,7 @@
<div class="specs row detail">
<h4>{% trans "Specs" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Size" %}</dt>
<dd>{{ snapshot.size }} {% trans "GB" %}</dd>
<dt>{% trans "Created" %}</dt>

View File

@ -6,7 +6,7 @@
<div class="info row detail">
<h4>{% trans "Information" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ volume.name }}</dd>
<dt>{% trans "ID" %}</dt>
@ -23,7 +23,7 @@
<div class="specs row detail">
<h4>{% trans "Specs" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Size" %}</dt>
<dd>{{ volume.size }} {% trans "GB" %}</dd>
<dt>{% trans "Created" %}</dt>
@ -34,18 +34,18 @@
<div class="status row detail">
<h4>{% trans "Attachments" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
{% for attachment in volume.attachments %}
<dt>{% trans "Attached To" %}</dt>
<dd>
{% url 'horizon:project:instances:detail' attachment.server_id as instance_url %}
{% blocktrans with instance_name=attachment.instance.name device=attachment.device %}
<a href="{{ instance_url }}">{{ instance_name }}</a> on {{ device }}
{% endblocktrans %}
</dd>
<dt>{% trans "Attached To" %}</dt>
<dd>
{% url 'horizon:project:instances:detail' attachment.server_id as instance_url %}
{% blocktrans with instance_name=attachment.instance.name device=attachment.device %}
<a href="{{ instance_url }}">{{ instance_name }}</a> on {{ device }}
{% endblocktrans %}
</dd>
{% empty %}
<dt>{% trans "Attached To" %}</dt>
<dd><em>{% trans "Not attached" %}</em></dd>
<dt>{% trans "Attached To" %}</dt>
<dd><em>{% trans "Not attached" %}</em></dd>
{% endfor %}
</dl>
</div>
@ -54,12 +54,12 @@
<div class="status row detail">
<h4>{% trans "Volume Source" %}</h4>
<hr class="header_rule">
<dl>
<dt>{% trans "Image" %}</dt>
<dd>
{% url 'horizon:project:images:images:detail' volume.volume_image_metadata.image_id as image_url%}
<a href="{{ image_url }}">{{ volume.volume_image_metadata.image_name }}</a>
</dd>
<dl class="dl-horizontal">
<dt>{% trans "Image" %}</dt>
<dd>
{% url 'horizon:project:images:images:detail' volume.volume_image_metadata.image_id as image_url%}
<a href="{{ image_url }}">{{ volume.volume_image_metadata.image_name }}</a>
</dd>
</dl>
</div>
{% endif %}
@ -67,7 +67,7 @@
<div class="status row detail">
<h4>{% trans "Metadata" %}</h4>
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
{% if volume.metadata.items %}
{% for key, value in volume.metadata.items %}
<dt>{{ key }}</dt>

View File

@ -2,7 +2,7 @@
<div class="info row detail">
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ ikepolicy.name|default:_("None") }}</dd>

View File

@ -2,7 +2,7 @@
<div class="info row detail">
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ ipsecpolicy.name|default:_("None") }}</dd>

View File

@ -3,7 +3,7 @@
<div class="info row detail">
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ ipsecsiteconnection.name|default:_("None") }}</dd>

View File

@ -3,7 +3,7 @@
<div class="info row detail">
<hr class="header_rule">
<dl>
<dl class="dl-horizontal">
<dt>{% trans "Name" %}</dt>
<dd>{{ vpnservice.name|default:_("None") }}</dd>

View File

@ -2137,3 +2137,12 @@ a:hover.link-popover { text-decoration: none; }
.has-feedback .form-control-feedback {
top: 0;
}
/**** Details Override ****/
.detail ul {
padding-left: 0;
}
.detail dt {
text-align: left;
}