You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% if show_add_to_list and user.is_authenticated %}
244
-
| <spanclass="search-results"><spanclass="addtolist"><ahref="{% url "community_add_document" doc.name %}" title="Add to your personal ID list"><imgsrc="/images/add_to_list.png" alt="Add to your personal ID list"/>Track this document</a></span></span>
243
+
{% if user.is_authenticated %}
244
+
{% if tracking_document %}
245
+
| <spanclass="search-results"><spanclass="removefromlist"><ahref="{% url "community_remove_track_document" doc.name %}" title="Remove from your personal ID list"><imgsrc="/images/remove_from_list.png" alt="Remove from your personal ID list"/>Untrack this document</a></span></span>
246
+
{% else %}
247
+
| <spanclass="search-results"><spanclass="addtolist"><ahref="{% url "community_add_track_document" doc.name %}" title="Add to your personal ID list"><imgsrc="/images/add_to_list.png" alt="Add to your personal ID list"/>Track this document</a></span></span>
{% if show_add_to_list and user.is_authenticated %}
38
38
<tdclass="addtolist">
39
-
<ahref="{% url "community_add_document" doc.name %}" title="Add to your personal ID list"><imgsrc="/images/add_to_list.png" alt="Add to your personal ID list" /></a>
39
+
<ahref="{% url "community_add_track_document" doc.name %}" title="Add to your personal ID list"><imgsrc="/images/add_to_list.png" alt="Add to your personal ID list" /></a>
0 commit comments