pytask/templates/task/view_textbook.html
changeset 141 ed2dadfc829a
parent 139 4f0cfd486d9b
equal deleted inserted replaced
140:8fcde6f8f750 141:ed2dadfc829a
    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="/task/textbook/approve/tid={{textbook.uniq_key}}">Approve Text book</a>
    14     {% endif %}
    14     {% endif %}
    15 
    15 
    16     <hr />created by <a href="/user/view/uid={{ textbook.created_by.id }}">{{ textbook.created_by.username }}</a>
    16     <hr />created by <a href="/profile/user/view/uid={{ 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: 
    44     
    44     
    45         <hr />
    45         <hr />
    46     {% if comments %}
    46     {% if comments %}
    47         comments:<br /><br />
    47         comments:<br /><br />
    48         {% for comment in comments %}
    48         {% for comment in comments %}
    49             <a href="/user/view/uid={{comment.commented_by.id}}">{{ comment.commented_by.username }}</a> 
    49             <a href="/profile/user/view/uid={{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 />
    50             on {{ comment.comment_datetime|date:"D d M Y"}} at {{comment.comment_datetime|time:"H:i"}} wrote:<br />
    51         {{ comment.data|linebreaksbr }}<br />
    51         {{ comment.data|linebreaksbr }}<br />
    52         {% endfor %}
    52         {% endfor %}
    53     {% endif %}
    53     {% endif %}
    54     <hr />
    54     <hr />