Commit abbd44d1d3d6ae5bb584d8c6a01f63e03ada3659
1 parent
886ad734
Exists in
master
and in
5 other branches
repared link to topics inside subject views #50
Showing
2 changed files
with
6 additions
and
0 deletions
Show diff stats
courses/templates/subject/form_view_student.html
1 | 1 | {% load i18n %} |
2 | 2 | |
3 | 3 | <div class="panel panel-default"> |
4 | + <a href="{% url 'course:view_topic' topic.slug %}"> | |
4 | 5 | <div class="panel-heading"> |
5 | 6 | <div class="row"> |
6 | 7 | <div class="col-md-9 col-sm-9"> |
7 | 8 | <h3>{{topic}}</h3> |
8 | 9 | </div> |
9 | 10 | </div> |
11 | + </div> | |
12 | + </a> | |
10 | 13 | </div> |
14 | + | |
11 | 15 | <div class="panel-body"> |
12 | 16 | <p>{{topic.description|linebreaks}}</p> |
13 | 17 | </div> | ... | ... |
courses/templates/subject/form_view_teacher.html
1 | 1 | {% load i18n %} |
2 | 2 | |
3 | 3 | <div class="panel panel-default"> |
4 | + <a href="{% url 'course:view_topic' topic.slug %}"> | |
4 | 5 | <div class="panel-heading"> |
5 | 6 | <div class="row"> |
6 | 7 | <div class="col-md-9 col-sm-9"> |
... | ... | @@ -11,6 +12,7 @@ |
11 | 12 | </div> |
12 | 13 | </div> |
13 | 14 | </div> |
15 | + </a> | |
14 | 16 | <div class="panel-body"> |
15 | 17 | <p>{{topic.description|linebreaks}}</p> |
16 | 18 | </div> | ... | ... |