mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-13 09:30:40 +00:00
UI enhancements
This commit is contained in:
@ -18,10 +18,14 @@
|
||||
<div class="col s7">
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
<h1>{{ user.username }}</h1>
|
||||
{% if user.role.name != 'User' %}
|
||||
<span class="chip">{{ user.role.name }}</span>
|
||||
{% endif %}
|
||||
{% if user.is_public %}
|
||||
<h3 style="float:left">{{ user.username }}<span class="new badge green" id="public-information-badge" data-badge-caption="Your profile is public" style="margin-top:20px;"></span></h3>
|
||||
<span class="chip white-text" style="background-color: #4caf50;">Public Profile</span>
|
||||
{% else %}
|
||||
<h3 style="float:left">{{ user.username }}<span class="new badge red" id="public-information-badge" data-badge-caption="Your profile is private" style="margin-top:20px;"></span></h3>
|
||||
<span class="chip white-text" style="background-color: #f44336;">Private Profile</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="col 12">
|
||||
@ -34,10 +38,10 @@
|
||||
<p></p>
|
||||
<br>
|
||||
{% if user.about_me %}
|
||||
<div style="border-left: solid 3px #E91E63; padding-left: 15px;">
|
||||
<blockquote>
|
||||
<h5>About me</h5>
|
||||
<p>{{ user.about_me }}</p>
|
||||
</div>
|
||||
</blockquote>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
@ -80,8 +84,8 @@
|
||||
{% endif %}
|
||||
<p></p>
|
||||
<br>
|
||||
{% if current_user.is_authenticated and current_user.hashid == user.id %}
|
||||
<a class="waves-effect waves-light btn-small" href="{{ url_for('settings.edit_profile', user_id=current_user.id) }}">Edit profile</a>
|
||||
{% if current_user.hashid == user.id %}
|
||||
<a class="waves-effect waves-light btn-small" href="{{ url_for('settings.settings') }}">Edit profile</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user