Add persistent navigation bar to top of page

This commit is contained in:
Akash Bhave 2020-10-15 16:53:23 -04:00
parent 8d66e49cab
commit 93052c7787
No known key found for this signature in database
GPG Key ID: 7293775E03FE1380
3 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{% extends "base.html" %} {% block main %} {% extends "base.html" %} {% load static %} {% block main %}
<main> <main>
<h2>{{subject.name}} / {{ course.name }}</h2> <h1><a href="/">All</a> / <a href="/{{subject.url}}">{{subject.name}}</a> / <a href="/{{subject.url}}/{{course.url}}">{{course.name}}</a></h1>
{% for guide in guides %} {% for guide in guides %}
<p class="color-primary"><a href="{{guide.url}}"/>{{ guide.name }}</a></p> <p class="color-primary"><a href="{{guide.url}}"/>{{ guide.name }}</a></p>
{% endfor %} {% endfor %}

View File

@ -1,9 +1,9 @@
{% extends "base.html" %} {% block main %} {% extends "base.html" %} {% load static %} {% block main %}
<main> <main>
<h1><a href="/">Subjects</a></h1> <h1><a href="/">All</a></h1>
{% for subject, courses in subjects %} {% for subject, courses in subjects %}
<h2>{{ subject.name }}</h2> <a href="/{{subject.url}}"><h2>{{ subject.name }}</h2>
{% for course in courses %} {% for course in courses %}
<p class="color-primary"><a href="/{{subject.url}}/{{course.url}}"/>{{ course.name }}</a></p> <p class="color-primary"><a href="/{{subject.url}}/{{course.url}}"/>{{ course.name }}</a></p>

View File

@ -1,6 +1,6 @@
{% extends "base.html" %} {% block main %} {% extends "base.html" %} {% load static %} {% block main %}
<main> <main>
<h2>{{ subject.name }}</h2> <h1><a href="/">All</a> / <a href="/{{subject.url}}">{{subject.name}}</a></h1>
{% for course in courses %} {% for course in courses %}
<p class="color-primary"><a href="/{{subject.url}}/{{course.url}}"/>{{ course.name }}</a></p> <p class="color-primary"><a href="/{{subject.url}}/{{course.url}}"/>{{ course.name }}</a></p>
{% endfor %} {% endfor %}