Skip to content

Commit efc339c

Browse files
committed
Show breadcrumbs correctly on the homepage
It was showing "Home / None" in the header since #51
1 parent 78bb202 commit efc339c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

pgcommitfest/commitfest/templates/base.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@
1414
<body>
1515
<div class="container-fluid">
1616
<ul class="breadcrumb">
17-
<li><a href="/">Home</a></li>
18-
{%for c in breadcrumbs%}
19-
<li><a href="{{c.href}}">{{c.title}}</a></li>
20-
{%endfor%}
21-
<li class="active">{{title}}</li>
17+
{%if title %}
18+
<li><a href="/">Home</a></li>
19+
{%for c in breadcrumbs%}
20+
<li><a href="{{c.href}}">{{c.title}}</a></li>
21+
{%endfor%}
22+
<li class="active">{{title}}</li>
23+
{%else%}
24+
<li class="active">Home</li>
25+
{%endif%}
2226
<li class="pull-right active">
2327
{%if user.is_authenticated%}
2428
Logged in as {{user}} (<a href="/account/profile/">edit profile</a> | <a href="/account/logout/">log out</a>{%if user.is_staff%} | <a href="/admin/">administration</a>{%endif%})

0 commit comments

Comments
 (0)