Skip to content
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

add new fields to profile #7601

Merged
merged 1 commit into from
Oct 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions app/dashboard/templates/profiles/header_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,27 @@ <h1 class="profile-header__handle">
</button>
{% endif %}
</p>
{% if profile.data.bio %}
{% if profile.bio %}
<div class="profile-header__bio my-2">
<small class="review-comment">{{ profile.bio }}</small>
</div>
{% elif profile.data.bio %}
<div class="profile-header__bio my-2">
<small class="review-comment">{{ profile.data.bio }}</small>
</div>
{% endif %}
{% if profile.interests %}
Interests:
<div class="tag-list mt-1">
{% for interest in profile.interests %}
{% if forloop.counter < 5 %}
<small class="tag-list__item">{{interest}}</small>
{% endif %}
{% endfor %}
{% if profile.interests|length > 4 %}
<small class="tag-list__item" data-container="body" data-toggle="popover" data-template='<div class="popover big-popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>' data-html="true" data-placement="bottom" data-trigger="hover click" data-content='<div class="tag-list mt-1">{% for interest in profile.interests %} <small class="tag-list__item">{{interest}}</small>{% endfor %}</div>'>+{{profile.interests|length|add:"-4"}}</small>
{% endif %}
</div>
{% endif %}
{% if profile.custom_tagline %}
<div class="profile-header__bio my-2">
Expand Down Expand Up @@ -58,11 +75,11 @@ <h1 class="profile-header__handle">
<i class="fab fa-ethereum"></i>
</a>

<a class="btn btn-outline-gc-blue btn-sm flex-grow-1 font-smaller-5 position-relative quick-link"
<a class="btn btn-outline-gc-blue btn-sm flex-grow-1 font-smaller-5 position-relative quick-link"
href="{% url 'kudos_send' %}?username={{ profile.handle }}" data-placement="bottom" data-toggle="tooltip" data-html="true" title="Kudos @{{ profile.handle }}">
<i class="fas fa-dice-d6"></i>
</a>

<a class="btn btn-outline-gc-blue btn-sm flex-grow-1 font-smaller-5 position-relative quick-link" href="/users?invite={{ profile.handle }}"
data-placement="bottom" data-toggle="tooltip" data-html="true" title="Invite @{{ profile.handle }} to Bounty"
>
Expand Down