Commit f79f2739 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

Merge branch 'breadcrumbs' into 'master'

Breadcrumbs

I fixed the breadcrumbs

See merge request !14
parents 22808e25 fa4bccd4
......@@ -8,6 +8,13 @@
<h1><strong>SRCT</strong>ROOMLIST</h1>
<p class="lead"><strong>{{ building.name }}</strong></p>
</div>
<div class="col-md-10 col-md-offset-1">
<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>
......
......@@ -9,6 +9,14 @@
<h1><strong>SRCT</strong>ROOMLIST</h1>
<p class="lead"><strong>{{ floor.building.name }} {{ floor.number|ordinal }}</strong></p>
</div>
<div class="col-md-10 col-md-offset-1">
<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>
......
......@@ -2,12 +2,23 @@
{% block title %} SRCT Roomlist &bull; {{ room.floor.building.name }} {{ room.number }}{% endblock %}
{% block content %}
{% load humanize %}
<div class="page-header" id="banner">
<div class="row">
<div class="col-lg-12 text-center">
<h1><strong>SRCT</strong>ROOMLIST</h1>
<p class="lead"><strong>{{ room.floor.building.name }} {{ room.number }}</strong></p>
</div>
<div class="col-md-10 col-md-offset-1">
<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>
......
{% extends 'layouts/base.html' %}
{% block title %} SRCT RoomList &bull; {{ room.floor.building.name }} {{ room.number }} {% endblock title %}
{% block title %} SRCT RoomList &bull; Neighborhoods {% endblock title %}
{% block content %}
......@@ -10,6 +10,12 @@
<h1><strong>SRCT</strong>ROOMLIST</h1>
<p class="lead"><strong>Buildings</strong></p>
</div>
<div class="col-md-10 col-md-offset-1"><h3>
<ol id="breadcrumb" class="breadcrumb">
<li><a href="/">Home</a></li>
<li class="active">Buildings</li>
</ol>
</h3></div>
</div>
</div>
......@@ -51,4 +57,4 @@
<div class="row">
</div>
{% endblock %}
\ No newline at end of file
{% endblock %}
......@@ -89,3 +89,6 @@ outline-offset: none;
.navbar-brand img {
margin-top: -5px;
}
.breadcrumb {background: rgba(245, 245, 245, 1); border: 2px solid rgba(245, 245, 245, 1); border-radius: 4px; display: block;}
.breadcrumb li {font-size: 20px;}
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