template fix

This commit is contained in:
lauren 2020-10-27 11:03:29 -04:00
parent 175faf9abe
commit 5d680462f4
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{% extends "base.html" %} {% load static %} {% block main %}
<main>
<h1><a href="/">All</a> / <a href="{% url 'courses:subject_view' subject.url %}">{{subject.name}}</a> / <a href="{% url 'courses:course_view' %} subject.url course.url">{{course.name}}</a></h1>
<h1><a href="/">All</a> / <a href="{% url 'courses:subject_view' subject.url %}">{{subject.name}}</a> / <a href="{% url 'courses:course_view' subject.url course.url %}">{{course.name}}</a></h1>
{% for guide, tags in guides %}
<p class="item"><b><a href="{{ guide.url }}">{{ guide.name }}</a></b>&nbsp;&nbsp;&nbsp;&nbsp;{% for t in tags %}<a href='{% url "courses:tag" t.name %}'>{{ t }} </a>{% endfor %}</p>
{% endfor %}

View File

@ -8,7 +8,7 @@
<a href="{% url 'courses:subject_view' subject.url %}"><h2>{{ subject.name }}</h2>
{% for course in courses %}
<p class="item"><a href="{% url 'courses:course_view' %} subject.url course.url">{{ course.name }}</a></p>
<p class="item"><a href="{% url 'courses:course_view' subject.url course.url %}">{{ course.name }}</a></p>
{% endfor %} {% endfor %}
</main>

View File

@ -2,7 +2,7 @@
<main>
<h1><a href="{% url 'home:index' %}">All</a> / <a href="{% url 'courses:subject_view' subject.url %}">{{subject.name}}</a></h1>
{% for course in courses %}
<p class="item"><a href="{% url 'courses:course_view' %} subject.url course.url">{{ course.name }}</a></p>
<p class="item"><a href="{% url 'courses:course_view' subject.url course.url %}">{{ course.name }}</a></p>
{% endfor %}
</main>
{% endblock %}