equal
deleted
inserted
replaced
4 {% endblock %} |
4 {% endblock %} |
5 {% block content %} |
5 {% block content %} |
6 <h3>{{ textbook.name }}</h3> |
6 <h3>{{ textbook.name }}</h3> |
7 |
7 |
8 {% if can_edit %} |
8 {% if can_edit %} |
9 <a href="/task/textbook/edit/tid={{textbook.uniq_key}}">Edit Text book</a> |
9 <a href="{% url edit_textbook textbook.id %}">Edit Text book</a> |
10 {% endif %} |
10 {% endif %} |
11 |
11 |
12 {% if can_approve %} |
12 {% if can_approve %} |
13 <a href="/task/textbook/approve/tid={{textbook.uniq_key}}">Approve Text book</a> |
13 <a href="{% url approve_textbook textbook.id %}">Approve Text book</a> |
14 {% endif %} |
14 {% endif %} |
15 |
15 |
16 <hr />created by <a href="/profile/user/view/uid={{ textbook.created_by.id }}">{{ textbook.created_by.username }}</a> |
16 <hr />created by <a href="{% url view_textbook textbook.created_by.id %}">{{ textbook.created_by.username }}</a> |
17 on {{textbook.creation_datetime|date:"D d M Y"}} at {{textbook.creation_datetime|time:"H:i"}}<br /> |
17 on {{textbook.creation_datetime|date:"D d M Y"}} at {{textbook.creation_datetime|time:"H:i"}}<br /> |
18 <hr /> |
18 <hr /> |
19 |
19 |
20 {% if textbook.tags.count %} |
20 {% if textbook.tags.count %} |
21 Tags: |
21 Tags: |
22 {% for tag in textbook.tags %} |
22 {% for tag in textbook.tags %} |
23 {{tag}} |
23 {{tag}} |
24 {% endfor %} |
24 {% endfor %} |
28 {% if chapters %} |
28 {% if chapters %} |
29 Chapters: <br /> |
29 Chapters: <br /> |
30 <table> |
30 <table> |
31 {% for chap in chapters %} |
31 {% for chap in chapters %} |
32 <tr> |
32 <tr> |
33 <td><a href="/task/view/tid={{chap.uniq_key}}">{{chap.title}}</a> </td> |
33 <td><a href="{% url view_task chap.id %}">{{chap.title}}</a> </td> |
34 <td> {{chap.status}} </td> |
34 <td> {{chap.status}} </td> |
35 </tr> |
35 </tr> |
36 {% endfor %} |
36 {% endfor %} |
37 </table> |
37 </table> |
38 {% else %} |
38 {% else %} |
39 There are no chapters in this textbook as of now.<br /> |
39 There are no chapters in this textbook as of now.<br /> |
40 {% endif %} |
40 {% endif %} |
41 |
41 |
42 |
|
43 |
|
44 |
|
45 <hr /> |
42 <hr /> |
46 {% if comments %} |
43 {% if comments %} |
47 comments:<br /><br /> |
44 comments:<br /><br /> |
48 {% for comment in comments %} |
45 {% for comment in comments %} |
49 <a href="/profile/user/view/uid={{comment.commented_by.id}}">{{ comment.commented_by.username }}</a> |
46 <a href="{% url view_profile comment.commented_by.id %}">{{ comment.commented_by.username }}</a> |
50 on {{ comment.comment_datetime|date:"D d M Y"}} at {{comment.comment_datetime|time:"H:i"}} wrote:<br /> |
47 on {{ comment.comment_datetime|date:"D d M Y"}} at {{comment.comment_datetime|time:"H:i"}} wrote:<br /> |
51 {{ comment.data|linebreaksbr }}<br /> |
48 {{ comment.data|linebreaksbr }}<br /> |
52 {% endfor %} |
49 {% endfor %} |
53 {% endif %} |
50 {% endif %} |
54 <hr /> |
51 <hr /> |