0
Je souhaite ajouter de nouveaux liens au thème standart bootstap dans pinax. J'ai essayé de mettre en œuvre le dans mon site:Comment ajouter un lien vers la navigation pinax (0.9a2)?
{% block nav %}
{% if user.is_authenticated %}
<ul>{% spaceless %}
<li id="tab_profile"><a href="{% url profile_detail user.username %}">{% trans "Profile" %}</a></li>
<li id="tab_notices"><a href="{% url notification_notices %}">{% trans "Notices" %}{% if notice_unseen_count %} ({{ notice_unseen_count }}){% endif %}</a></li>
{% endspaceless %
<li id="tab_first">
<a href="#">First Link</a>
</li>
}</ul>
{% endif %}
{% endblock %}
mais je reçois une erreur:
TemplateSyntaxError at /
Invalid block tag: 'endif', expected 'endspaceless'
Par conséquent, comment ajouter un nouveau lien vers la barre de navigation?