mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
-Previously, the template would show nothing if a user didn't have a name set. Now it falls back to displaying the email address.
-Added padding-x-2 class to the "Change details"
This commit is contained in:
@@ -42,10 +42,12 @@
|
|||||||
<h2 class="user-list-item-heading font-body-lg margin-y-0" title="{{ user.email_address }}">
|
<h2 class="user-list-item-heading font-body-lg margin-y-0" title="{{ user.email_address }}">
|
||||||
{%- if user.name -%}
|
{%- if user.name -%}
|
||||||
<span class="heading-small live-search-relevant">{{ user.name }}</span>
|
<span class="heading-small live-search-relevant">{{ user.name }}</span>
|
||||||
|
{%- else -%}
|
||||||
|
<span class="heading-small live-search-relevant">{{ user.email_address }}</span>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</h2>
|
</h2>
|
||||||
<p class="margin-top-0">
|
<p class="margin-top-0">
|
||||||
{%- if user.status == 'pending' -%}
|
{%- if user.status == 'pending' -%}
|
||||||
<span class="live-search-relevant">{{ user.email_address }}</span>
|
<span class="live-search-relevant">{{ user.email_address }}</span>
|
||||||
<span class="hint">(invited)</span>
|
<span class="hint">(invited)</span>
|
||||||
{%- elif user.status == 'expired' -%}
|
{%- elif user.status == 'expired' -%}
|
||||||
@@ -79,7 +81,7 @@
|
|||||||
) }}
|
) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% if current_service.all_template_folders %}
|
{% if current_service.all_template_folders %}
|
||||||
<p class="usa-body tick-cross-list-hint">
|
<p class="usa-body tick-cross-list-hint">
|
||||||
{% set folder_count = user.template_folders_for_service(current_service) | length %}
|
{% set folder_count = user.template_folders_for_service(current_service) | length %}
|
||||||
{% if folder_count == 0 %}
|
{% if folder_count == 0 %}
|
||||||
@@ -115,7 +117,7 @@
|
|||||||
Resend invite<span class="usa-sr-only"> for {{ user.email_address }}</span>
|
Resend invite<span class="usa-sr-only"> for {{ user.email_address }}</span>
|
||||||
</a>
|
</a>
|
||||||
{% elif user.is_editable_by(current_user) %}
|
{% elif user.is_editable_by(current_user) %}
|
||||||
<a class="user-list-edit-link usa-link" href="{{ url_for('.edit_user_permissions', service_id=current_service.id, user_id=user.id) }}">
|
<a class="user-list-edit-link usa-link padding-x-2" href="{{ url_for('.edit_user_permissions', service_id=current_service.id, user_id=user.id) }}">
|
||||||
Change details<span class="usa-sr-only"> for {{ user.name }} {{ user.email_address }}</span>
|
Change details<span class="usa-sr-only"> for {{ user.name }} {{ user.email_address }}</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user