templates/index.html
changeset 218 59107ce0a618
parent 189 8f5fb15ffd9b
equal deleted inserted replaced
217:307f699e6102 218:59107ce0a618
    71         {% else %}
    71         {% else %}
    72         task
    72         task
    73         {% endifnotequal %}<br />
    73         {% endifnotequal %}<br />
    74     {% endif %}
    74     {% endif %}
    75     
    75     
    76     {% if user.task_mentors.count %}
    76     {% if user.task_reviewers.count %}
    77         <a href="/user/mentor/">Mentoring {{ user.task_mentors.count }}
    77         <a href="/user/reviewer/">Reviewering {{ user.task_reviewers.count }}
    78         {% ifnotequal user.task_mentors.count 1 %}
    78         {% ifnotequal user.task_reviewers.count 1 %}
    79             tasks
    79             tasks
    80         {% else %}
    80         {% else %}
    81             task
    81             task
    82         {% endifnotequal %}</a>
    82         {% endifnotequal %}</a>
    83         <br />
    83         <br />
    92         {% endfor %}
    92         {% endfor %}
    93         </ul>
    93         </ul>
    94     <br />
    94     <br />
    95     {% endif %}
    95     {% endif %}
    96 
    96 
    97     {% if mentored_tasks %}
    97     {% if reviewered_tasks %}
    98     Tasks you are mentoring:<ul>
    98     Tasks you are reviewering:<ul>
    99         {% for a_task in mentored_tasks %}
    99         {% for a_task in reviewered_tasks %}
   100             <li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
   100             <li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
   101         {% endfor %}
   101         {% endfor %}
   102         </ul>
   102         </ul>
   103     <br />
   103     <br />
   104     {% endif %}
   104     {% endif %}