Created
March 3, 2020 15:35
-
-
Save Porter97/d73609ceafac9e228d995ce94e8eab6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#... | |
<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