Commit 88a8ca1a authored by Arnaud Bey's avatar Arnaud Bey

fix user status not being checked

parent 855eeed0
......@@ -66,13 +66,15 @@
<a href="{{ path('project_display_logs', {'id': project.id}) }}">{{"events"|trans}}</a>
</li>
{% endif %}
{% if userStatus %}
<li class="list-group-item text-justify">
{% if userStatus.subscribe == true %}
{{"subscribed"|trans}} <a href='{{ path('status_subscribe_toggle', {'id': project.id}) }}'>{{"unsubscribe"|trans}}</a>
{% else %}
{{"unsubscribed"|trans}} <a href='{{ path('status_subscribe_toggle', {'id': project.id}) }}'>{{"subscribe"|trans}}</a>
{% endif %}
{% if userStatus.subscribe == true %}
{{"subscribed"|trans}} <a href='{{ path('status_subscribe_toggle', {'id': project.id}) }}'>{{"unsubscribe"|trans}}</a>
{% else %}
{{"unsubscribed"|trans}} <a href='{{ path('status_subscribe_toggle', {'id': project.id}) }}'>{{"subscribe"|trans}}</a>
{% endif %}
</li>
{% endif %}
</ul>
</div>
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment