Commit 4a5eef52 authored by Sherif's avatar Sherif

added breadcrumbs

parent 51b1684d
...@@ -9,6 +9,11 @@ ...@@ -9,6 +9,11 @@
<p class="lead"><strong>{{ building.name }}</strong></p> <p class="lead"><strong>{{ building.name }}</strong></p>
</div> </div>
</div> </div>
<ol id="breadcrumb" class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="{% url 'list_buildings' %}">Buildings</a></li>
<li class="active">{{ building.name }}</li>
</ol>
</div> </div>
<div class="row"> <div class="row">
......
...@@ -10,6 +10,14 @@ ...@@ -10,6 +10,14 @@
<h1><strong>SRCT</strong>ROOMLIST</h1> <h1><strong>SRCT</strong>ROOMLIST</h1>
<p class="lead"><strong>{{ floor.building.name }} {{ floor.number|ordinal }}</strong></p> <p class="lead"><strong>{{ floor.building.name }} {{ floor.number|ordinal }}</strong></p>
</div> </div>
<div class="col-md-12">
<ol id="breadcrumbs" class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="{% url 'list_buildings' %}">Buildings</a></li>
<li><a href="{{ floor.building.get_absolute_url }}">{{ floor.building.name }}</a></li>
<li class="active">{{ floor.number|ordinal }} Floor</li>
</ol>
</div>
</div> </div>
</div> </div>
......
...@@ -2,12 +2,23 @@ ...@@ -2,12 +2,23 @@
{% block title %} SRCT Roomlist &bull; {{ room.floor.building.name }} {{ room.number }}{% endblock %} {% block title %} SRCT Roomlist &bull; {{ room.floor.building.name }} {{ room.number }}{% endblock %}
{% block content %} {% block content %}
{% load humanize %}
<div class="page-header" id="banner"> <div class="page-header" id="banner">
<div class="row"> <div class="row">
<div class="col-lg-12 text-center"> <div class="col-lg-12 text-center">
<h1><strong>SRCT</strong>ROOMLIST</h1> <h1><strong>SRCT</strong>ROOMLIST</h1>
<p class="lead"><strong>{{ room.floor.building.name }} {{ room.number }}</strong></p> <p class="lead"><strong>{{ room.floor.building.name }} {{ room.number }}</strong></p>
</div> </div>
<div class="col-md-12">
<ol id="breadcrumbs" class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="{% url 'list_buildings' %}">Buildings</a></li>
<li><a href="{{ room.floor.building.get_absolute_url }}">{{ room.floor.building.name }}</a></li>
<li><a href="{{ room.floor.get_absolute_url }}">{{ room.floor.number|ordinal }} Floor</a></li>
<li class="active">Room {{ room.number }}</li>
</ol>
</div>
</div> </div>
</div> </div>
......
...@@ -11,6 +11,10 @@ ...@@ -11,6 +11,10 @@
<p class="lead"><strong>Buildings</strong></p> <p class="lead"><strong>Buildings</strong></p>
</div> </div>
</div> </div>
<ol id="breadcrumb" class="breadcrumb">
<li><a href="/">Home</a></li>
<li class="active">Buildings</li>
</ol>
</div> </div>
<legend><strong><a name="Rappahannock" href="#Rappahannock">Rappahannock</a></strong></legend> <legend><strong><a name="Rappahannock" href="#Rappahannock">Rappahannock</a></strong></legend>
...@@ -51,4 +55,4 @@ ...@@ -51,4 +55,4 @@
<div class="row"> <div class="row">
</div> </div>
{% endblock %} {% endblock %}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment