-
-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/tribe v3 #7595
Merged
Merged
Feature/tribe v3 #7595
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,27 +1,193 @@ | ||
{% load i18n static avatar_tags humanize %} | ||
{% if not hidden %} | ||
<div id="profile-tabs" class="tab-container font-body mt-3 mb-4"> | ||
<button id="nav-description" href="{{profile.url}}/people?sub=followers" class="text-center section-tab {% if foltab == "followers" %} active {% endif %}"> | ||
{% trans "FOLLOWERS" %} <span class="nav-badge">({{all_followers.count}})</span> | ||
</button> | ||
<button id="nav-description" href="{{profile.url}}/people?sub=following" class="text-center section-tab {% if foltab == "following" %} active {% endif %}"> | ||
{% trans "FOLLOWING" %} <span class="nav-badge">({{all_following.count}})</span> | ||
</button> | ||
{% if profile.is_org %} | ||
<button id="nav-description" href="{{profile.url}}/people?sub=core_team" class="text-center section-tab {% if foltab == "core_team" %} active {% endif %}"> | ||
{% trans "CORE TEAM" %} <span class="nav-badge">({{team|length}})</span> | ||
</button> | ||
<button id="nav-description" href="{{profile.url}}/people?sub=leaderboard" class="text-center section-tab {% if foltab == "leaderboard" %} active {% endif %}"> | ||
{% trans "LEADERBOARD" %} | ||
</button> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
|
||
<div class="tab-projects d-flex flex-column mb-4"> | ||
<h3 class="font-body mb-3">Core Team</h3> | ||
{% if team|length == 0 %} | ||
<p class="text-center">No Members</p> | ||
{% endif %} | ||
{% for org in team %} | ||
<div class="tab-projects__item d-flex mb-0 {% cycle 'odd' 'even' %} py-2 my-auto"> | ||
<div class="activity-avatar ml-5"> | ||
<img height="24" width="24" class="avatar secondary_avatar rounded-circle align-self-end" src="{% avatar_url org %}" /> | ||
</div> | ||
<div class="tab-projects__item-details ml-5 my-auto w-100"> | ||
<div class="font-body d-inline"> | ||
<a class="font-body" href="/profile/{{org}}"> | ||
{{org}} | ||
<div class="tab-projects d-flex flex-column"> | ||
|
||
{% if foltab == 'core_team' %} | ||
<!-- This shows core team of Org--> | ||
{% if team|length == 0 %} | ||
<p class="text-center">No Members</p> | ||
{% endif %} | ||
{% for member in team %} | ||
<div class="tab-projects__item d-flex mb-0 pt-1 pb-1 bounty_row"> | ||
sanchaymittal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<div class="avatar-container col-1 justify-content-center hide_min_viewport"> | ||
<a href="/{{member}}"> | ||
<img class="profile-header__avatar mr-3" src="/dynamic/avatar/{{ member }}" alt=""> | ||
</a> | ||
</div> | ||
<div class="tab-projects__item-details col-3 d-flex flex-column bounty-detail"> | ||
<div class="d-flex flex-column"> | ||
<div class="font-weight-semibold font-header">{{member}}</div> | ||
<a href="/{{member}}"> | ||
<div class="text-highlight-gc-blue font-smaller-1">{{member}}</div> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="mb-0 mt-1 col-5 d-flex flex-row align-items-center"> | ||
<div class="mr-5" style="height: fit-content"> | ||
<button class="btn btn-outline-gc-blue btn-sm flex-grow-1 font-smaller-5 position-relative quick-link" data-openchat="{{member}}" | ||
data-placement="bottom" data-toggle="tooltip" data-html="true" title="Chat @{{ member }}"> | ||
<i class="fas fa-comment-dots"></i> | ||
</button> | ||
</div> | ||
<div class="d-flex align-items-center" style="height: fit-content"> | ||
{% with followers=member.mutual_following|slice:":4" %} | ||
<div style="width: 60px" class="{% if followers|length > 1 %}d-flex flex-row align-items-center{% endif %}"> | ||
{% for follower in followers %} | ||
{% if forloop.last %} | ||
<img class="rounded-circle" style="height: 25px; width: 25px;" src="/dynamic/avatar/{{ follower.org.handle }}" alt=""> | ||
{% else %} | ||
<img class="rounded-circle" style="height: 25px; width: 25px; margin-right: -12px " src="/dynamic/avatar/{{ follower.org.handle }}" alt=""> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
{% if followers|length >= 1 %} | ||
<p class="text-muted font-smaller-4 my-0">Followed by {% for follower in followers %} | ||
sanchaymittal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{{ follower.org.handle }}{% if not forloop.last %}, {% endif %} | ||
{% endfor %}</p> | ||
{% endif %} | ||
{% endwith %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
|
||
{% elif foltab == 'followers' %} | ||
<!-- Show This users followers--> | ||
{% for user in followers %} | ||
<div class="tab-projects__item d-flex mb-0 pt-1 pb-1 bounty_row"> | ||
<div class="avatar-container col-1 justify-content-center hide_min_viewport"> | ||
<a href="/{{user.profile.handle}}"> | ||
<img class="profile-header__avatar mr-3" src="/dynamic/avatar/{{ user.profile.handle }}" alt=""> | ||
</a> | ||
</div> | ||
<div class="tab-projects__item-details col-3 d-flex flex-column bounty-detail"> | ||
<div class="d-flex flex-column"> | ||
<div class="font-weight-semibold font-header">{{user.profile.name}}</div> | ||
<a href="/{{user.profile.handle}}"> | ||
<div class="text-highlight-gc-blue font-smaller-1">{{user.profile.handle}}</div> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="mb-0 mt-1 col-5 d-flex flex-row align-items-center"> | ||
<div class="mr-5" style="height: fit-content"> | ||
<button class="btn btn-outline-gc-blue btn-sm flex-grow-1 font-smaller-5 position-relative quick-link" data-openchat="{{user.profile}}" | ||
data-placement="bottom" data-toggle="tooltip" data-html="true" title="Chat @{{ user.profile.handle }}"> | ||
<i class="fas fa-comment-dots"></i> | ||
</button> | ||
</div> | ||
<div style="height: fit-content"> | ||
<a class="btn btn-outline-gc-blue btn-sm flex-grow-1 mr-5 font-smaller-5 position-relative quick-link btn-outline-gc-blue" href="https://gitcoin.co/users?invite={{user.profile.handle}}" data-placement="bottom" data-toggle="tooltip" data-html="true" title="Invite {{ user.profile.handle }} to Bounty"> | ||
<i class="fas fa-envelope-open-text"></i> | ||
</a> | ||
</div> | ||
<div class="d-flex align-items-center" style="height: fit-content"> | ||
{% with followers=user.mutual_following|slice:":4" %} | ||
<div style="width: 60px" class="{% if followers|length > 1 %}d-flex flex-row align-items-center{% endif %}"> | ||
{% for follower in followers %} | ||
{% if forloop.last %} | ||
<img class="rounded-circle" style="height: 25px; width: 25px;" src="/dynamic/avatar/{{ follower.org.handle }}" alt=""> | ||
{% else %} | ||
<img class="rounded-circle" style="height: 25px; width: 25px; margin-right: -12px " src="/dynamic/avatar/{{ follower.org.handle }}" alt=""> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
{% if followers|length >= 1 %} | ||
<p class="text-muted font-smaller-4 my-0">Followed by {% for follower in followers %} | ||
{{ follower.org.handle }}{% if not forloop.last %}, {% endif %} | ||
{% endfor %}</p> | ||
{% endif %} | ||
{% endwith %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
{% include 'profiles/leaderboard.html' with leaderboard=profile.org_leaderboard %} | ||
{% elif foltab == 'following' %} | ||
<!-- Show which users this one is following--> | ||
{% for user in following %} | ||
<div class="tab-projects__item d-flex mb-0 pt-1 pb-1 bounty_row"> | ||
<div class="avatar-container col-1 justify-content-center hide_min_viewport"> | ||
<a href="/{{user.org.handle}}"> | ||
<img class="profile-header__avatar mr-3" src="/dynamic/avatar/{{ user.org.handle }}" alt=""> | ||
</a> | ||
</div> | ||
<div class="tab-projects__item-details col-3 d-flex flex-column bounty-detail"> | ||
<div class="d-flex flex-column"> | ||
<div class="font-weight-semibold font-header">{{user.org.name}}</div> | ||
<a href="/{{user.org.handle}}"> | ||
<div class="text-highlight-gc-blue font-smaller-1">{{user.org.handle}}</div> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="mb-0 mt-1 col-5 d-flex flex-row align-items-center"> | ||
<div class="mr-5" style="height: fit-content"> | ||
<button class="btn btn-outline-gc-blue btn-sm flex-grow-1 font-smaller-5 position-relative quick-link" data-openchat="{{user.org}}"> | ||
<i class="fas fa-comment-dots" data-p lacement="bottom" data-toggle="tooltip" data-html="true" | ||
title="Chat @{{ user.org.handle }}"> | ||
</i> | ||
</button> | ||
</div> | ||
<div class="d-flex align-items-center" style="height: fit-content"> | ||
{% with followers=user.mutual_follower|slice:":4" %} | ||
<div style="width: 60px" class="{% if followers|length > 1 %} d-flex flex-row align-items-center{% endif %}"> | ||
{% for follower in followers %} | ||
{% if forloop.last %} | ||
<img class="rounded-circle" style="height: 25px; width: 25px;" src="/dynamic/avatar/{{ follower.profile.handle }}" alt=""> | ||
{% else %} | ||
<img class="rounded-circle" style="height: 25px; width: 25px; margin-right: -12px " src="/dynamic/avatar/{{ follower.profile.handle }}" alt=""> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
{% if followers|length >= 1 %} | ||
<p class="text-muted font-smaller-4 my-0">Followed by {% for follower in followers %} | ||
{{ follower.profile.handle }}{% if not forloop.last %}, {% endif %} | ||
{% endfor %}</p> | ||
{% endif %} | ||
{% endwith %} | ||
</div> | ||
|
||
</div> | ||
</div> | ||
{% endfor %} | ||
|
||
{% elif foltab == 'leaderboard' %} | ||
{% include 'profiles/leaderboard.html' with leaderboard=profile.org_leaderboard %} | ||
|
||
</div> | ||
{% endif %} | ||
|
||
<div class="pagination"> | ||
<span class="step-links"> | ||
{% if page_obj.has_previous %} | ||
<a href="?sub={{foltab}}&page=1">« first</a> | ||
<a href="?sub={{foltab}}&page={{ page_obj.previous_page_number }}">previous</a> | ||
{% endif %} | ||
|
||
<span class="current"> | ||
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}. | ||
</span> | ||
|
||
{% endif %} | ||
{% if page_obj.has_next %} | ||
<a href="?sub={{foltab}}&page={{ page_obj.next_page_number }}">next</a> | ||
<a href="?sub={{foltab}}&page={{ page_obj.paginator.num_pages }}">last »</a> | ||
{% endif %} | ||
</span> | ||
</div> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think it should be renamed to something common as all the other tabs are using the same css styling too