Skip to content

Commit

Permalink
Hacks for [email protected] account
Browse files Browse the repository at this point in the history
  • Loading branch information
mblomdahl committed Nov 2, 2017
1 parent d4c0843 commit 0ba037c
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions xl_auth/templates/users/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,30 @@ <h1>{{ _('Welcome') }} {{ current_user.full_name }}</h1>
<div class="panel-body">
<p><strong>{{ _('This is your personal profile page.') }}</strong></p>

<a class="btn btn-default"
href="{{ url_for('user.edit_details', username=current_user.email) }}">
{{ _('Edit Display Name') }}
</a>
<a class="btn btn-default"
href="{{ url_for('user.change_password', username=current_user.email) }}">
{{ _('Change Password') }}
</a>
{% if current_user.email != '[email protected]' %}
<a class="btn btn-default"
href="{{ url_for('user.edit_details', username=current_user.email) }}">
{{ _('Edit Display Name') }}
</a>
<a class="btn btn-default"
href="{{ url_for('user.change_password', username=current_user.email) }}">
{{ _('Change Password') }}
</a>
{% endif %}
</div>
</div>

<div class="panel panel-danger">
<div class="panel-heading">
<h3>{{ _('Important') }}!</h3>
</div>
<div class="panel-body">
<p>{{ _('Contact customer service at <a href="mailto:[email protected]">[email protected]</a> \
{% if current_user.email != '[email protected]' %}
<div class="panel panel-danger">
<div class="panel-heading">
<h3>{{ _('Important') }}!</h3>
</div>
<div class="panel-body">
<p>{{ _('Contact customer service at <a href="mailto:[email protected]">[email protected]</a> \
if your permissions are not correctly listed below.') }}</p>
</div>
</div>
</div>
{% endif %}

<div class="panel panel-default">
<div class="panel-heading">
Expand All @@ -41,7 +45,7 @@ <h3>{{ _('Permissions (Active Collections Only)') }}</h3>
<tr>
<th>{{ _('Code') }}</th>
<th>{{ _('Friendly Name') }}</th>
{% if user.is_admin %}
{% if user.is_admin or user.email == '[email protected]' %}
<th>{{ _('Registrant') }}</th>
<th>{{ _('Cataloger') }}</th>
{% endif %}
Expand All @@ -53,7 +57,7 @@ <h3>{{ _('Permissions (Active Collections Only)') }}</h3>
<tr>
<td>{{ permission.collection.code }}</td>
<td>{{ permission.collection.friendly_name }}</td>
{% if user.is_admin %}
{% if user.is_admin or user.email == '[email protected]' %}
<td class="{{ "bool-value-{}".format(permission.registrant).lower() }}">
{{ _('Yes') if permission.registrant else _('No') }}
</td>
Expand Down

0 comments on commit 0ba037c

Please sign in to comment.