mirror of
https://github.com/tjsga/studyguides.git
synced 2025-04-05 03:40:16 -04:00
template fix
This commit is contained in:
parent
175faf9abe
commit
5d680462f4
|
@ -1,6 +1,6 @@
|
||||||
{% extends "base.html" %} {% load static %} {% block main %}
|
{% extends "base.html" %} {% load static %} {% block main %}
|
||||||
<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 %}
|
{% for guide, tags in guides %}
|
||||||
<p class="item"><b><a href="{{ guide.url }}">{{ guide.name }}</a></b> {% for t in tags %}<a href='{% url "courses:tag" t.name %}'>{{ t }} </a>{% endfor %}</p>
|
<p class="item"><b><a href="{{ guide.url }}">{{ guide.name }}</a></b> {% for t in tags %}<a href='{% url "courses:tag" t.name %}'>{{ t }} </a>{% endfor %}</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<a href="{% url 'courses:subject_view' subject.url %}"><h2>{{ subject.name }}</h2>
|
<a href="{% url 'courses:subject_view' subject.url %}"><h2>{{ subject.name }}</h2>
|
||||||
|
|
||||||
{% for course in courses %}
|
{% 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 %}
|
{% endfor %} {% endfor %}
|
||||||
</main>
|
</main>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<main>
|
<main>
|
||||||
<h1><a href="{% url 'home:index' %}">All</a> / <a href="{% url 'courses:subject_view' subject.url %}">{{subject.name}}</a></h1>
|
<h1><a href="{% url 'home:index' %}">All</a> / <a href="{% url 'courses:subject_view' subject.url %}">{{subject.name}}</a></h1>
|
||||||
{% for course in courses %}
|
{% 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>
|
</main>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user