pytask/templates/task/view_textbook.html
changeset 530 ab9b9e59de9d
parent 501 b84d6a1d4603
child 544 17c60a9c2439
equal deleted inserted replaced
529:58b9a98ffbcf 530:ab9b9e59de9d
     9     {{ textbook.title }}
     9     {{ textbook.title }}
    10 {% endblock %}
    10 {% endblock %}
    11 
    11 
    12 {% block content %}
    12 {% block content %}
    13     {% as_modification_display "Created by" textbook.created_by textbook.creation_datetime %}
    13     {% as_modification_display "Created by" textbook.created_by textbook.creation_datetime %}
    14     <h3>{{ textbook.title }}</h3>
    14     <h2>{{ textbook.title }}</h2>
    15 
    15 
    16     {% if can_edit %}
    16     {% if can_edit %}
    17         <a href="{% url edit_textbook textbook.id %}">Edit Text book</a>
    17         <a href="{% url edit_textbook textbook.id %}">Edit Text book</a>
    18     {% endif %}
    18     {% endif %}
    19     
    19     
    22     {% endif %}
    22     {% endif %}
    23 
    23 
    24     <hr />
    24     <hr />
    25 
    25 
    26     {% if textbook.tags.count %}
    26     {% if textbook.tags.count %}
    27         Tags: 
    27         Tags: {{ textbook.tags_field }}
    28         {% for tag in textbook.tags %}
       
    29             {{tag}}
       
    30         {% endfor %}
       
    31         <hr />
    28         <hr />
    32     {% endif %}
    29     {% endif %}
    33 
    30 
    34     Chapters: <br />
    31     <h3>
       
    32       Tasks:
       
    33       {% if can_create_chapters %}
       
    34         <a href="{% url create_chapter textbook.id %}">Create Tasks</a>
       
    35       {% endif %}
       
    36     </h3>
    35     {% if chapters %}
    37     {% if chapters %}
    36       <table>
    38       <table>
    37       {% for chap in chapters %}
    39       {% for chap in chapters %}
    38       <tr>
    40       <tr>
    39   	    <td><a href="{% url view_task chap.id %}">{{chap.title}}</a> </td>
    41         <td><a href="{% url view_task chap.id %}">{{chap.title}}</a> </td>
    40   	    <td> {{chap.status}} </td>
       
    41       </tr>
    42       </tr>
    42       {% endfor %}
    43       {% endfor %}
    43       </table>
    44       </table>
    44     {% else %}
    45     {% else %}
    45       (Chapters are yet to be added by the Coordinator or T/A.)<br />
    46       (Chapters are yet to be added by the Coordinator or T/A.)<br />
    46     {% endif %}
    47     {% endif %}
    47 
    48 
    48         <hr />
    49      <hr />
    49     {% if comments %}
    50     {% if comments %}
    50         comments:<br /><br />
    51         comments:<br /><br />
    51         {% for comment in comments %}
    52         {% for comment in comments %}
    52             <a href="{% url view_profile comment.commented_by.id %}">{{ comment.commented_by.username }}</a> 
    53             <a href="{% url view_profile comment.commented_by.id %}">{{ comment.commented_by.username }}</a> 
    53             on {{ comment.comment_datetime|date:"D d M Y"}} at {{comment.comment_datetime|time:"H:i"}} wrote:<br />
    54             on {{ comment.comment_datetime|date:"D d M Y"}} at {{comment.comment_datetime|time:"H:i"}} wrote:<br />