Skip to content

Instantly share code, notes, and snippets.

@Porter97
Created March 3, 2020 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Porter97/d73609ceafac9e228d995ce94e8eab6e to your computer and use it in GitHub Desktop.
Save Porter97/d73609ceafac9e228d995ce94e8eab6e to your computer and use it in GitHub Desktop.
#...
<p id="collection-description">{{ collection.description }}</p>
<p>
{% if current_user.can(Permission.FOLLOW) and user != current_user %}
{% if not current_user.is_following_collection(collection) %}
<a href="{{ url_for('.follow_collection', id=collection.id) }}" class="btn btn-primary">Follow</a>
{% else %}
<a href="{{ url_for('.unfollow_collection', id=collection.id) }}" class="btn btn-default">Unfollow</a>
{% endif %}
{% endif %}
</p>
#...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment