2016-03-01 11:23:03 -05:00
|
|
|
{% extends '_base.html' %}
|
2019-12-06 16:13:52 -05:00
|
|
|
{% load buttons %}
|
2019-04-15 21:38:04 -04:00
|
|
|
{% load custom_links %}
|
2016-03-01 11:23:03 -05:00
|
|
|
{% load helpers %}
|
|
|
|
|
2018-06-14 16:15:14 -04:00
|
|
|
{% block title %}{{ circuit }}{% endblock %}
|
|
|
|
|
|
|
|
{% block header %}
|
2019-03-05 15:42:47 -06:00
|
|
|
<div class="row noprint">
|
2018-06-14 16:15:14 -04:00
|
|
|
<div class="col-sm-8 col-md-9">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{% url 'circuits:circuit_list' %}">Circuits</a></li>
|
|
|
|
<li><a href="{% url 'circuits:circuit_list' %}?provider={{ circuit.provider.slug }}">{{ circuit.provider }}</a></li>
|
|
|
|
<li>{{ circuit.cid }}</li>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4 col-md-3">
|
|
|
|
<form action="{% url 'circuits:circuit_list' %}" method="get">
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" name="q" class="form-control" />
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button type="submit" class="btn btn-primary">
|
|
|
|
<span class="fa fa-search" aria-hidden="true"></span>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
2019-03-05 15:42:47 -06:00
|
|
|
<div class="pull-right noprint">
|
2019-12-06 16:13:52 -05:00
|
|
|
{% if perms.circuits.add_circuit %}
|
2019-12-13 15:29:55 -05:00
|
|
|
{% clone_button circuit %}
|
2019-12-06 16:13:52 -05:00
|
|
|
{% endif %}
|
2018-06-14 16:15:14 -04:00
|
|
|
{% if perms.circuits.change_circuit %}
|
2019-12-13 15:29:55 -05:00
|
|
|
{% edit_button circuit %}
|
2018-06-14 16:15:14 -04:00
|
|
|
{% endif %}
|
|
|
|
{% if perms.circuits.delete_circuit %}
|
2019-12-13 15:29:55 -05:00
|
|
|
{% delete_button circuit %}
|
2018-06-14 16:15:14 -04:00
|
|
|
{% endif %}
|
2016-03-10 11:10:21 -05:00
|
|
|
</div>
|
2018-06-14 16:15:14 -04:00
|
|
|
<h1>{{ circuit }}</h1>
|
|
|
|
{% include 'inc/created_updated.html' with obj=circuit %}
|
2019-04-15 21:38:04 -04:00
|
|
|
<div class="pull-right noprint">
|
|
|
|
{% custom_links circuit %}
|
|
|
|
</div>
|
2018-06-14 16:15:14 -04:00
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
|
|
|
|
<a href="{{ circuit.get_absolute_url }}">Circuit</a>
|
|
|
|
</li>
|
2019-04-12 09:29:36 -04:00
|
|
|
{% if perms.extras.view_objectchange %}
|
|
|
|
<li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
|
|
|
|
<a href="{% url 'circuits:circuit_changelog' pk=circuit.pk %}">Changelog</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2018-06-14 16:15:14 -04:00
|
|
|
</ul>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2016-03-01 11:23:03 -05:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2016-06-22 10:57:32 -04:00
|
|
|
<strong>Circuit</strong>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
2016-12-14 17:09:33 -05:00
|
|
|
<table class="table table-hover panel-body attr-table">
|
2018-02-06 14:06:05 -05:00
|
|
|
<tr>
|
|
|
|
<td>Status</td>
|
|
|
|
<td>
|
|
|
|
<span class="label label-{{ circuit.get_status_class }}">{{ circuit.get_status_display }}</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2016-03-01 11:23:03 -05:00
|
|
|
<tr>
|
|
|
|
<td>Provider</td>
|
|
|
|
<td>
|
|
|
|
<a href="{% url 'circuits:provider' slug=circuit.provider.slug %}">{{ circuit.provider }}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Circuit ID</td>
|
|
|
|
<td>{{ circuit.cid }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-07-26 15:42:26 -04:00
|
|
|
<td>Type</td>
|
|
|
|
<td><a href="{{ circuit.type.get_absolute_url }}">{{ circuit.type }}</a></td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-07-26 15:42:26 -04:00
|
|
|
<td>Tenant</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
<td>
|
2016-07-26 15:42:26 -04:00
|
|
|
{% if circuit.tenant %}
|
2017-02-28 12:11:43 -05:00
|
|
|
{% if circuit.tenant.group %}
|
2017-11-02 08:51:27 -07:00
|
|
|
<a href="{{ circuit.tenant.group.get_absolute_url }}">{{ circuit.tenant.group }}</a>
|
2017-02-28 12:11:43 -05:00
|
|
|
<i class="fa fa-angle-right"></i>
|
|
|
|
{% endif %}
|
2016-07-26 15:42:26 -04:00
|
|
|
<a href="{{ circuit.tenant.get_absolute_url }}">{{ circuit.tenant }}</a>
|
2016-07-29 15:31:35 -04:00
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Install Date</td>
|
2018-11-05 13:00:46 -05:00
|
|
|
<td>{{ circuit.install_date|placeholder }}</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Commit Rate</td>
|
2018-11-05 13:00:46 -05:00
|
|
|
<td>{{ circuit.commit_rate|humanize_speed|placeholder }}</td>
|
2017-01-17 15:18:03 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Description</td>
|
2018-11-05 13:00:46 -05:00
|
|
|
<td>{{ circuit.description|placeholder }}</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2018-07-20 19:56:04 -04:00
|
|
|
{% include 'inc/custom_fields_panel.html' with obj=circuit %}
|
2018-07-10 10:48:33 -04:00
|
|
|
{% include 'extras/inc/tags_panel.html' with tags=circuit.tags.all url='circuits:circuit_list' %}
|
2016-03-01 11:23:03 -05:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<strong>Comments</strong>
|
|
|
|
</div>
|
2018-11-13 11:02:48 -05:00
|
|
|
<div class="panel-body rendered-markdown">
|
2016-07-29 15:31:35 -04:00
|
|
|
{% if circuit.comments %}
|
2016-03-01 11:23:03 -05:00
|
|
|
{{ circuit.comments|gfm }}
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-12-14 13:47:22 -05:00
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
{% include 'circuits/inc/circuit_termination.html' with termination=termination_a side='A' %}
|
|
|
|
{% include 'circuits/inc/circuit_termination.html' with termination=termination_z side='Z' %}
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|