Commit 78f11545 authored by Daniel W Bond's avatar Daniel W Bond

added more exact url routing-- using {% url 'homepage' %} rather than '/'

parent 71d2ac7e
......@@ -26,7 +26,7 @@
</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 'homepage' %}">Home</a></li>
<li><a href="{% url 'list_buildings' %}">Buildings</a></li>
<li class="active">{{ building.name }}</li>
</ol>
......
......@@ -13,7 +13,7 @@
</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 'homepage' %}">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>
......
......@@ -13,7 +13,7 @@
</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 'homepage' %}">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>
......
......@@ -27,7 +27,7 @@
</div>
<div class="col-md-10 col-md-offset-1"><h3>
<ol id="breadcrumb" class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="{% url 'homepage' %}">Home</a></li>
<li class="active">Buildings</li>
</ol>
</h3></div>
......
......@@ -34,6 +34,6 @@
<h1>404 Error - Page Not Found</h1>
<img id="squirrels" src="/static/img/squirrels.png">
</div>
<a href="/"><img id="acorn" src="/static/img/acorn.png"></a>
<a href="{% url 'homepage' %}"><img id="acorn" src="/static/img/acorn.png"></a>
</body>
</html>
......@@ -34,6 +34,6 @@
<h1>500 Error - Internal Server Error</h1>
<img id="squirrels" src="/static/img/squirrels.png">
</div>
<a href="/"><img id="acorn" src="/static/img/acorn.png"></a>
<a href="{% url 'homepage' %}"><img id="acorn" src="/static/img/acorn.png"></a>
</body>
</html>
......@@ -7,7 +7,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/"><img src="/static/img/SRCT_square.svg" height="25" width="25" alt="SRCT"> ROOMLIST</a>
<a class="navbar-brand" href="{% url 'homepage' %}"><img src="/static/img/SRCT_square.svg" height="25" width="25" alt="SRCT"> ROOMLIST</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
......@@ -26,7 +26,7 @@
<li class="visible-xs">
<a href="/search">Search</a>
</li>
<li><a href="/accounts/student/{{ user.username }}">{{ user.username }}</a>
<li><a href="{{ user.student.get_absolute_url }}">{{ user.username }}</a>
</li>
<li class="visible-lg visible-md visible-sm">
<a href="{% url 'update_student' request.user.username %}"><i class="fa fa-cog fa-fw fa-lg"></i></a>
......
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