feat(people): Add proper breadcrumb to people templates

This commit is contained in:
James Graham
2020-02-18 15:06:29 +00:00
parent e8416bc779
commit e10a6c4521
2 changed files with 13 additions and 8 deletions

View File

@@ -1,10 +1,12 @@
{% extends 'base.html' %}
{% block content %}
<h1>
<a href="#">People</a> /
{{ object }}
</h1>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">People</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ object }}</li>
</ol>
</nav>
<hr>

View File

@@ -1,10 +1,13 @@
{% extends 'base.html' %}
{% block content %}
<h1>
<a href="#">Relationships</a> /
{{ object }}
</h1>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">People</a></li>
<li class="breadcrumb-item">{{ relationship.source }}</li>
<li class="breadcrumb-item active" aria-current="page">{{ relationship.target }}</li>
</ol>
</nav>
<hr>