Commit f117c68c authored by Robert's avatar Robert

Show avatar edit button only for own profile, refs #639

parent ddbe89a2
Pipeline #1499 failed with stage
in 1 minute and 41 seconds
......@@ -26,9 +26,15 @@
<div class="profile-header-data">
<div class="profile-header-title">
<a href="{% url 'image-settings' %}" class="avatar-edit-inline">
{% include 'gestalten/_avatar.html' with gestalt=gestalt link=False %}
</a>
{% if can_edit %}
<a href="{% url 'image-settings' %}" class="avatar-edit-inline">
{% include 'gestalten/_avatar.html' with gestalt=gestalt link=False %}
</a>
{% else %}
<span class="avatar-noedit-inline">
{% include 'gestalten/_avatar.html' with gestalt=gestalt link=False %}
</span>
{% endif %}
<h1>{{ gestalt }}</h1>
<span class="clearfix"></span>
</div>
......
......@@ -179,11 +179,15 @@
}
}
.avatar-edit-inline {
.avatar-noedit-inline {
position: relative;
display: inline-block;
text-decoration: none;
z-index: 10;
}
.avatar-edit-inline {
&:extend(.avatar-noedit-inline);
&:after {
.sg();
......
......@@ -115,7 +115,8 @@
clear: both;
}
.avatar-edit-inline {
.avatar-edit-inline,
.avatar-noedit-inline {
margin-right: 1rem;
border: 2px solid white;
border-radius: 2px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment