Commit 76cece0916aa5fce13ccd0019a55dca84ac52ef4

Authored by Matheus Lins
1 parent 5519978c

home courses tamplate #18

app/templates/home_professor.html
... ... @@ -31,18 +31,20 @@
31 31 <h3>{% trans 'Courses' %}</h3>
32 32 {% if courses|length > 0 %}
33 33 {% for course in courses %}
34   - <div class="panel panel-default courseHome">
35   - <div class="panel-body">
36   - <p>{{ course }}</p>
  34 + <a href="{% url 'course:view' course.slug %}">
  35 + <div class="panel panel-default courseHome">
  36 + <div class="panel-body">
  37 + <p>{{ course }}</p>
  38 + </div>
  39 + <div class="panel-footer">
  40 + <ul>
  41 + <li>{% trans 'Students:' %} 5</li>
  42 + <li>{% trans 'Beginning:' %} {{ course.init_date }}</li>
  43 + <li>{% trans 'End:' %} {{ course.end_date }}</li>
  44 + </ul>
  45 + </div>
37 46 </div>
38   - <div class="panel-footer">
39   - <ul>
40   - <li>{% trans 'Students:' %} 5</li>
41   - <li>{% trans 'Beginning:' %} {{ course.init_date }}</li>
42   - <li>{% trans 'End:' %} {{ course.end_date }}</li>
43   - </ul>
44   - </div>
45   - </div>
  47 + </a>
46 48 {% endfor %}
47 49 {% else %}
48 50 <p>{% trans "You didn't create any course yet." %}</p>
... ...
core/mixins.py
... ... @@ -74,5 +74,5 @@ class NotificationMixin(object):
74 74  
75 75 def dispatch(self, request, *args, **kwargs):
76 76 """
77   - Not quite sure how to do about it"""
78   - return super(NotificationMixin, self).dispatch(request, *args, **kwargs)
79 77 \ No newline at end of file
  78 + Not quite sure how to do about it"""
  79 + return super(NotificationMixin, self).dispatch(request, *args, **kwargs)
80 80 \ No newline at end of file
... ...