Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Commit

Permalink
Merge branch '843/breadcrumbs'
Browse files Browse the repository at this point in the history
  • Loading branch information
brew committed Mar 22, 2017
2 parents 02ce637 + 84a6e84 commit 499e401
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
12 changes: 12 additions & 0 deletions census/views/dataset.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

{% block title %}{{ dataset.name }}{% endblock %}

{% block breadcrumb %}
<div class="breadcrumb-wrapper">
<ol class="breadcrumb container">
<li><a href="/">{{ gettext("Home") }}</a></li>
{% if is_index %}
<li><a href="/dataset">{{ gettext("Datasets") }}</a></li>
{% endif %}
<li class="active">{{ dataset.name }}</li>
</ol>
</div>
{% endblock breadcrumb %}

{% block content %}
<section id="data-header">
<div class="container">
Expand Down
13 changes: 13 additions & 0 deletions census/views/entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

{% block title %}{{format("Entry for %(place)s / %(title)s", { place: place.name, title: dataset.name}) }}{% endblock %}

{% block breadcrumb %}
<div class="breadcrumb-wrapper">
<ol class="breadcrumb container">
<li><a href="/">{{ gettext("Home") }}</a></li>
{% if is_index %}
<li><a href="/place">{{ gettext("Places") }}</a></li>
{% endif %}
<li><a href="/place/{{ place.id }}">{{ place.name }}</a></li>
<li class="active">{{ dataset.name }}</li>
</ol>
</div>
{% endblock breadcrumb %}

{% block content %}
<section id="data-header">
<div class="container">
Expand Down
12 changes: 12 additions & 0 deletions census/views/place.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

{% block title %}{{ place.name }}{% endblock %}

{% block breadcrumb %}
<div class="breadcrumb-wrapper">
<ol class="breadcrumb container">
<li><a href="/">{{ gettext("Home") }}</a></li>
{% if is_index %}
<li><a href="/place">{{ gettext("Places") }}</a></li>
{% endif %}
<li class="active">{{ place.name }}</li>
</ol>
</div>
{% endblock breadcrumb %}

{% block content %}
<section id="data-header">
<div class="container">
Expand Down

0 comments on commit 499e401

Please sign in to comment.