Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #551 from liqd/ka-2017-10-link-co-workers-in-edit
Browse files Browse the repository at this point in the history
Ka 2017 10 link co workers in edit
  • Loading branch information
mkind authored Oct 23, 2017
2 parents 681a41a + b98a527 commit 6d29b67
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions advocate_europe/assets/scss/components/_userpicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
padding-left: rem(6px);
font-size: rem(14px);
font-weight: $demibold;

a {
color: $gray-dark;
text-decoration: none;
}
}

&-label-detail {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,25 @@
{% if user.avatar %}
<span class="avatar-round-small" style="background-image: url({{ user.avatar }});"></span>
{% endif %}
<span class="user-picker-label-text">{{ user.username|unlocalize }}</span>
<span class="user-picker-label-text">
{% if not user.detail %}
<a href="{% url 'profile' user.username %}">{{ user.username|unlocalize }}</a>
{% else %}
{{ user.username|unlocalize }}
{% endif %}
</span>
{% if user.detail %}
<span class="user-picker-label-text user-picker-label-detail">{{ user.detail|unlocalize }}</span>
{% elif user.username == request.user.username %}
<span class="user-picker-label-text user-picker-label-detail">This is you!</span>
{% endif %}
{% if user.username == request.user.username %}
<div class="user-picker-cta user-picker-cta-checked btn-link">Leave team</div>
<div class="user-picker-cta user-picker-cta-unchecked btn-link">You will be removed on save</div>
{% else %}
<div class="user-picker-cta user-picker-cta-checked btn-link">{{ user.cta_checked }}</div>
<div class="user-picker-cta user-picker-cta-unchecked btn-link">{{ user.cta_unchecked }}</div>
{% endif %}
</div>
</label>
{% if not inline_class %}</div>{% endif %}
Expand Down

0 comments on commit 6d29b67

Please sign in to comment.