-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"> | ||
|
@@ -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 %} | ||
|
@@ -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> | ||
|