{% comment %}In the spirit of D.R.Y.{% endcomment %} {% for n in all_notebooks %} {# This grossness goes away with django 1.2's smarter if tags #} {% if n.is_public %}
  • {{ n.get_name_for_display }}
  • {% else %}{% ifequal request.user n.author %}
  • {{ n.get_name_for_display }}
  • {% endifequal %} {% endif %} {% endfor %}