Skip to content

Instantly share code, notes, and snippets.

@Porter97
Created March 3, 2020 19:29
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/eea5328c8f281f65c5e031987ba695be to your computer and use it in GitHub Desktop.
Save Porter97/eea5328c8f281f65c5e031987ba695be to your computer and use it in GitHub Desktop.
#...
{% endif %}
<a href="{{ url_for('.followers', username=user.username) }}">Followers: <span class="badge">{{ user.followers.count() - 1 }}</span></a>
<a href="{{ url_for('.followed_by', username=user.username) }}">Following: <span class="badge">{{ user.followed.count() - 1 }}</span></a>
{% if current_user.is_authenticated and user != current_user and user.is_following(current_user) %}
#...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment