Commit 22808e25 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

Merge branch 'bitesize' into 'master'

add ordinal to room and building templates

See merge request !13
parents 65865734 dd7cbffc
......@@ -11,10 +11,12 @@
</div>
</div>
{% load humanize %}
<div class="row">
{% for floor in floors %}
<div class="col-sm-3 text-center">
<a href="{{ floor.get_absolute_url }}" class="btn btn-primary btn-lg btn-block">{{ floor.number }}</a>
<a href="{{ floor.get_absolute_url }}" class="btn btn-primary btn-lg btn-block">{{ floor.number|ordinal }} Floor</a>
</div>
{% endfor %}
</div>
......
{% extends 'layouts/base.html' %}
{% block title %} SRCT Roomlist &bull; {{ floor.building.name }} {{ floor.number }}{% endblock %}
{% block content %}
{% load humanize %}
{% block title %} SRCT Roomlist &bull; {{ floor.building.name }} {{ floor.number|ordinal }}{% endblock %}
{% block content %}
<div class="page-header" id="banner">
<div class="row">
......
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