diff --git a/app/templates/admin/communities.html b/app/templates/admin/communities.html index af30b748..eb70f955 100644 --- a/app/templates/admin/communities.html +++ b/app/templates/admin/communities.html @@ -19,7 +19,6 @@ - @@ -32,8 +31,8 @@ {% for community in communities.items %} - - + diff --git a/app/templates/admin/users.html b/app/templates/admin/users.html index 5a5de3af..2c793861 100644 --- a/app/templates/admin/users.html +++ b/app/templates/admin/users.html @@ -20,7 +20,6 @@
NameTitle Topic # Posts Retention
{{ community.name }}{{ render_communityname(community) }}{% if community.banned %} (banned){% endif %}{{ render_communityname(community, add_domain=False) }}{% if community.banned %} (banned){% endif %}
+ !{{ community.name }}@{{ community.ap_domain }}
{{ community.topic.name }} {{ community.post_count }} {{ community.content_retention if community.content_retention != -1 }}
- @@ -32,10 +31,8 @@ {% for user in users.items %} - - + - diff --git a/app/templates/admin/users_trash.html b/app/templates/admin/users_trash.html index d9c54bc2..2f700d12 100644 --- a/app/templates/admin/users_trash.html +++ b/app/templates/admin/users_trash.html @@ -22,7 +22,6 @@
{{ _('Name') }}{{ _('Local/Remote') }} {{ _('Seen') }} {{ _('Attitude') }} {{ _('Reputation') }}
- - {{ user.display_name() }}{% if user.is_local() %}Local{% else %}Remote{% endif %}{{ render_username(user, add_domain=False) }}
+ {{ user.user_name }}{% if not user.is_local() %}@{{ user.ap_domain }}{% endif %}
{% if request.args.get('local_remote', '') == 'local' %} {{ arrow.get(user.last_seen).humanize(locale=locale) }} {% else %} @@ -48,13 +45,7 @@ {{ user.reports if user.reports > 0 }} {{ user.ip_address if user.ip_address }}
{{ user.ip_address_country if user.ip_address_country }}
{{ user.referrer if user.referrer }} View local | - {% if not user.is_local() %} - View remote | - {% else %} - View remote | - {% endif %} - Edit | + Edit | Delete
- @@ -34,10 +33,8 @@ {% for user in users.items %} - - + - diff --git a/app/templates/base.html b/app/templates/base.html index 5802ddb7..571d44c4 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -1,4 +1,4 @@ -{% macro render_username(user) -%} +{% macro render_username(user, add_domain=True) -%} {% if user.deleted -%} [deleted] @@ -7,7 +7,7 @@ {% if user.avatar_id and not low_bandwidth and not collapsed -%} {% endif -%} - {{ user.display_name() }}{% if not user.is_local() %}@{{ user.ap_domain }}{% endif %} + {{ user.display_name() }}{% if add_domain and not user.is_local() %}@{{ user.ap_domain }}{% endif %} {% if user.created_recently() -%} @@ -26,13 +26,13 @@ {% endif -%} {% endmacro -%} -{% macro render_communityname(community) -%} +{% macro render_communityname(community, add_domain=True) -%} {% if community.icon_id and not low_bandwidth and not collapsed -%} {% endif -%} - c/{{ community.display_name() }} + {{ community.title }}{% if add_domain and not community.is_local() %}@{{ community.ap_domain }}{% endif %} {% endmacro -%}
NameLocal/Remote Seen Attitude Rep
- - {{ user.display_name() }}{% if user.is_local() %}Local{% else %}Remote{% endif %}{{ render_username(user, add_domain=False) }}
+ {{ user.user_name }}{% if not user.is_local() %}@{{ user.ap_domain }}{% endif %}
{% if request.args.get('local_remote', '') == 'local' %} {{ arrow.get(user.last_seen).humanize(locale=locale) }} {% else %} @@ -50,13 +47,7 @@ {{ user.reports if user.reports > 0 }} {{ user.ip_address if user.ip_address }} {{ user.referrer if user.referrer }} View local | - {% if not user.is_local() %} - View remote | - {% else %} - View remote | - {% endif %} - Edit | + Edit | Delete