-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
401357b
commit dc9b96d
Showing
5 changed files
with
86 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{% extends '_base.html' %} | ||
{% load helpers %} | ||
|
||
{% block content %} | ||
<h1>{% block title %}Rack Elevations{% endblock %}</h1> | ||
<div class="row"> | ||
{% if racks %} | ||
<div class="col-md-9"> | ||
<div style="white-space: nowrap; overflow-x: scroll;"> | ||
{% for rack in racks %} | ||
<div style="display: inline-block; width: 266px"> | ||
<div class="rack_header"> | ||
<h4>{{ rack.name }}</h4> | ||
</div> | ||
{% if face_id %} | ||
{% include 'dcim/inc/rack_elevation.html' with primary_face=rack.get_rear_elevation secondary_face=rack.get_front_elevation face_id=1 %} | ||
{% else %} | ||
{% include 'dcim/inc/rack_elevation.html' with primary_face=rack.get_front_elevation secondary_face=rack.get_rear_elevation face_id=0 %} | ||
{% endif %} | ||
<div class="clearfix"></div> | ||
<div class="rack_header"> | ||
<h4>{{ rack.name }}</h4> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
<p class="text-right text-muted">Showing {{ racks.count }} of {{ total_count }} racks</p> | ||
</div> | ||
{% else %} | ||
<div class="col-md-9"> | ||
<p>No racks found</p> | ||
</div> | ||
{% endif %} | ||
<div class="col-md-3"> | ||
{% include 'inc/search_panel.html' %} | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block javascript %} | ||
<script type="text/javascript"> | ||
$(function() { | ||
$('[data-toggle="popover"]').popover() | ||
}) | ||
</script> | ||
{% endblock %} |