mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
move IP and Referer into user profile page
This commit is contained in:
parent
52ba7203d8
commit
e007f14359
3 changed files with 4 additions and 10 deletions
|
@ -25,8 +25,6 @@
|
||||||
<th title="{{ _('Reputation: The Karma of the account. Total up votes minus down votes they got.') }}">{{ _('Reputation') }}</th>
|
<th title="{{ _('Reputation: The Karma of the account. Total up votes minus down votes they got.') }}">{{ _('Reputation') }}</th>
|
||||||
<th>{{ _('Banned') }}</th>
|
<th>{{ _('Banned') }}</th>
|
||||||
<th title="{{ _('How often a user has been reported.') }}">{{ _('Reports') }}</th>
|
<th title="{{ _('How often a user has been reported.') }}">{{ _('Reports') }}</th>
|
||||||
<th title="{{ _('IP address of last interaction.') }}">{{ _('IP and country code') }}</th>
|
|
||||||
<th title="{{ _('Which website linked to PieFed when the user initially registered.') }}">{{ _('Source') }}</th>
|
|
||||||
<th>{{ _('Actions') }}</th>
|
<th>{{ _('Actions') }}</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for user in users.items %}
|
{% for user in users.items %}
|
||||||
|
@ -45,8 +43,6 @@
|
||||||
{{ '<span class="red">Banned posts</span>'|safe if user.ban_posts }}
|
{{ '<span class="red">Banned posts</span>'|safe if user.ban_posts }}
|
||||||
{{ '<span class="red">Banned comments</span>'|safe if user.ban_comments }}</td>
|
{{ '<span class="red">Banned comments</span>'|safe if user.ban_comments }}</td>
|
||||||
<td>{{ user.reports if user.reports > 0 }} </td>
|
<td>{{ user.reports if user.reports > 0 }} </td>
|
||||||
<td>{{ user.ip_address if user.ip_address }}<br />{{ user.ip_address_country if user.ip_address_country }}</td>
|
|
||||||
<td>{{ user.referrer if user.referrer }} </td>
|
|
||||||
<td><a href="{{ url_for('admin.admin_user_edit', user_id=user.id) }}">Edit</a> |
|
<td><a href="{{ url_for('admin.admin_user_edit', user_id=user.id) }}">Edit</a> |
|
||||||
<a href="{{ url_for('admin.admin_user_delete', user_id=user.id) }}" class="confirm_first">Delete</a>
|
<a href="{{ url_for('admin.admin_user_delete', user_id=user.id) }}" class="confirm_first">Delete</a>
|
||||||
</td>
|
</td>
|
||||||
|
@ -74,4 +70,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -27,8 +27,6 @@
|
||||||
<th>Rep</th>
|
<th>Rep</th>
|
||||||
<th>Banned</th>
|
<th>Banned</th>
|
||||||
<th>Reports</th>
|
<th>Reports</th>
|
||||||
<th>IP</th>
|
|
||||||
<th>Source</th>
|
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for user in users.items %}
|
{% for user in users.items %}
|
||||||
|
@ -45,8 +43,6 @@
|
||||||
<td>{% if user.reputation %}R {{ user.reputation | round | int }}{% endif %}</td>
|
<td>{% if user.reputation %}R {{ user.reputation | round | int }}{% endif %}</td>
|
||||||
<td>{{ '<span class="red">Banned</span>'|safe if user.banned }} </td>
|
<td>{{ '<span class="red">Banned</span>'|safe if user.banned }} </td>
|
||||||
<td>{{ user.reports if user.reports > 0 }} </td>
|
<td>{{ user.reports if user.reports > 0 }} </td>
|
||||||
<td>{{ user.ip_address if user.ip_address }} </td>
|
|
||||||
<td>{{ user.referrer if user.referrer }} </td>
|
|
||||||
<td><a href="{{ url_for('admin.admin_user_edit', user_id=user.id) }}">Edit</a> |
|
<td><a href="{{ url_for('admin.admin_user_edit', user_id=user.id) }}">Edit</a> |
|
||||||
<a href="{{ url_for('admin.admin_user_delete', user_id=user.id) }}" class="confirm_first">Delete</a>
|
<a href="{{ url_for('admin.admin_user_delete', user_id=user.id) }}" class="confirm_first">Delete</a>
|
||||||
</td>
|
</td>
|
||||||
|
@ -74,4 +70,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -108,6 +108,8 @@
|
||||||
{% if user.is_instance_admin() or (user.is_local() and user.is_admin()) %}<span class="red">({{ _('Admin') }})</span>{% endif %}<br />
|
{% if user.is_instance_admin() or (user.is_local() and user.is_admin()) %}<span class="red">({{ _('Admin') }})</span>{% endif %}<br />
|
||||||
{% if user.is_admin() or user.is_staff() %}{{ _('Role permissions') }}: {% if user.is_admin() %}{{ _('Admin') }}{% endif %} {% if user.is_staff() %}{{ _('Staff') }}{% endif %}<br />{% endif %}
|
{% if user.is_admin() or user.is_staff() %}{{ _('Role permissions') }}: {% if user.is_admin() %}{{ _('Admin') }}{% endif %} {% if user.is_staff() %}{{ _('Staff') }}{% endif %}<br />{% endif %}
|
||||||
{{ _('Joined') }}: {{ arrow.get(user.created).humanize(locale=locale) }}<br />
|
{{ _('Joined') }}: {{ arrow.get(user.created).humanize(locale=locale) }}<br />
|
||||||
|
{% if current_user.is_authenticated and current_user.is_admin() %}{{ _('Referer') }}: <span title="{{ _('Which website linked to PieFed when the user initially registered.') }}">{{ user.referrer if user.referrer }}</span><br />{% endif %}
|
||||||
|
{% if current_user.is_authenticated and current_user.is_admin() %}{{ _('IP and country code') }}: <span title="{{ _('IP address of last interaction.') }}">{{ user.ip_address if user.ip_address }}{% if user.ip_address_country %} ({{ user.ip_address_country }}){% endif %}</span><br />{% endif %}
|
||||||
{% if current_user.is_authenticated and current_user.is_admin() and user.last_seen %}{{ _('Active') }}: {{ arrow.get(user.last_seen).humanize(locale=locale) }}<br />{% endif %}
|
{% if current_user.is_authenticated and current_user.is_admin() and user.last_seen %}{{ _('Active') }}: {{ arrow.get(user.last_seen).humanize(locale=locale) }}<br />{% endif %}
|
||||||
{% if user.bot %}
|
{% if user.bot %}
|
||||||
{{ _('Bot Account') }}<br />
|
{{ _('Bot Account') }}<br />
|
||||||
|
|
Loading…
Add table
Reference in a new issue