mirror of
https://github.com/tjsga/studyguides.git
synced 2025-04-05 03:40:16 -04:00
Show teacher for guides if they are defined
This commit is contained in:
parent
93052c7787
commit
a337a0f468
|
@ -25,10 +25,15 @@ main {
|
|||
margin: 30px;
|
||||
}
|
||||
|
||||
.color-primary {
|
||||
.item {
|
||||
color: #568ea3;
|
||||
}
|
||||
|
||||
.teacher {
|
||||
color: #a26769;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h1 {
|
||||
opacity: 0.5;
|
||||
transition: all 0.2s ease;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<main>
|
||||
<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 %}
|
||||
<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 %}
|
||||
</main>
|
||||
{% endblock %}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<a href="/{{subject.url}}"><h2>{{ subject.name }}</h2>
|
||||
|
||||
{% 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>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<main>
|
||||
<h1><a href="/">All</a> / <a href="/{{subject.url}}">{{subject.name}}</a></h1>
|
||||
{% 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 %}
|
||||
</main>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user