-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1463 from wippo-devops/add-following-tab
Add Following tab to the user profile view
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
project/accounts/templates/accounts/profile_following.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% extends "base.html" %} | ||
{% load i18n %} | ||
|
||
{% block content %} | ||
<div class="following-total"> | ||
<div> | ||
{% blocktranslate %} | ||
{{ profile.following.count }} following | ||
{% endblocktranslate %} | ||
</div> | ||
</div> | ||
{% for following in profile.following.all %} | ||
<div class="col s12 m6"> | ||
<div class="user-chip chip white"> | ||
<div class="user-chip-contents"> | ||
<a href="/profile/{{ following.user.username }}/"> | ||
<img src="{{ following.profile_image_url }}" alt="{{ following.user.username }}"> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
{% empty %} | ||
<div class="section no-state"> | ||
<div class="container"> | ||
<div class="section"> | ||
<div class="center title-lato grey-text"> | ||
{% translate "Not following any users" %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
|
||
{% endblock content %} |
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
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