% extends 'table_view.html' %}{% load i18n %}{% block right_content %}{{ block.super }}{% with user.get_profile as profile %} {% if profile %} <div id="changelist-filter"> <h2>{% trans "Show" %}</h2> <ul> <li><a href=".">{% trans "All tasks" %}</a></li> <li><a href="?responsible__pk={{ profile.pk }}">{% trans "My tasks" %}</a></li> <li><a href="?{% for g in user.groups.all %}responsible__user__groups__pk={{ g.pk }}{% if not forloop.last %}&{% endif %}{% endfor %}">{% trans "My groups' tasks" %}</a></li> </ul> </div> {% endif %}{% endwith %}{% endblock %}