Show teacher for guides if they are defined

This commit is contained in:
Akash Bhave 2020-10-15 16:58:58 -04:00
parent 93052c7787
commit a337a0f468
No known key found for this signature in database
GPG Key ID: 7293775E03FE1380
4 changed files with 9 additions and 4 deletions

View File

@ -25,10 +25,15 @@ main {
margin: 30px; margin: 30px;
} }
.color-primary { .item {
color: #568ea3; color: #568ea3;
} }
.teacher {
color: #a26769;
font-weight: bold;
}
h1 { h1 {
opacity: 0.5; opacity: 0.5;
transition: all 0.2s ease; transition: all 0.2s ease;

View File

@ -2,7 +2,7 @@
<main> <main>
<h1><a href="/">All</a> / <a href="/{{subject.url}}">{{subject.name}}</a> / <a href="/{{subject.url}}/{{course.url}}">{{course.name}}</a></h1> <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="item"><a href="{{guide.url}}"/>{% if guide.teacher %}<span class="teacher">[{{guide.teacher}}] </span>{% endif %}{{ guide.name }}</a></p>
{% endfor %} {% endfor %}
</main> </main>
{% endblock %} {% endblock %}

View File

@ -6,7 +6,7 @@
<a href="/{{subject.url}}"><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="item"><a href="/{{subject.url}}/{{course.url}}"/>{{ course.name }}</a></p>
{% endfor %} {% endfor %} {% endfor %} {% endfor %}
</main> </main>

View File

@ -2,7 +2,7 @@
<main> <main>
<h1><a href="/">All</a> / <a href="/{{subject.url}}">{{subject.name}}</a></h1> <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="item"><a href="/{{subject.url}}/{{course.url}}"/>{{ course.name }}</a></p>
{% endfor %} {% endfor %}
</main> </main>
{% endblock %} {% endblock %}