{% extends "base.html" %} {% block title %}{{ _('Admin') }}{% endblock %} {% block content %}

{{ _('Admin Panel') }}

{{ _('Users') }}

{% for user in users %} {% endfor %}
{{ _('User') }} {{ _('Email') }} {{ _('Admin') }} {{ _('Owner') }} {{ _('Profile Pic') }} {{ _('Actions') }}
{% if user.profile_pic and user.profile_pic != 'default.png' %}{% endif %} {{ user.username }} {{ user.email }} {% if user.is_admin %}{% endif %} {% if user.is_owner %}{% endif %} {% if user.profile_pic and user.profile_pic != 'default.png' %}
{% endif %}
{% if not user.is_admin %}
{% elif not user.is_owner %}
{% endif %} {% if not user.is_owner %}
{% endif %}

{{ _('All Posts') }}

{% for post in posts %} {% endfor %}
{{ _('User') }} {{ _('Content') }} {{ _('Visibility') }} {{ _('Created') }} {{ _('Actions') }}
{% if post.user.profile_pic and post.user.profile_pic != 'default.png' %} {{ post.user.username }}{{ post.user.username }} {% else %} {{ post.user.username }} {% endif %} {{ post.content|truncate(50) }} {% if post.visibility == 'public' %} {{ _('Public') }} {% else %} {{ _('Friends') }} {% endif %} {{ post.created_at.strftime('%Y-%m-%d %H:%M') }}

{{ _('Friendships') }}

{% for f in friendships %} {% endfor %}
{{ _('User 1') }} {{ _('User 2') }} {{ _('Status') }}
{% if f.requester.profile_pic and f.requester.profile_pic != 'default.png' %} {{ f.requester.username }}{{ f.requester.username }} {% else %} {{ f.requester.username }} {% endif %} {% if f.receiver.profile_pic and f.receiver.profile_pic != 'default.png' %} {{ f.receiver.username }}{{ f.receiver.username }} {% else %} {{ f.receiver.username }} {% endif %} {% if f.status == 'accepted' %} {{ _('Accepted') }} {% elif f.status == 'pending' %} {{ _('Pending') }} {% else %} {{ _('Rejected') }} {% endif %}

{{ _('Comments') }}

{% for comment in comments %} {% endfor %}
{{ _('User') }} {{ _('Post') }} {{ _('Content') }} {{ _('Created') }} {{ _('Actions') }}
{% if comment.user.profile_pic and comment.user.profile_pic != 'default.png' %} {{ comment.user.username }} {% else %} {{ comment.user.username }} {% endif %} {{ comment.post.id }} {{ comment.content|truncate(50) }} {{ comment.created_at.strftime('%Y-%m-%d %H:%M') }}

{{ _('Uploads') }}

{% for upload in uploads %} {% endfor %}
{{ _('User') }} {{ _('Filename') }} {{ _('Type') }} {{ _('Uploaded') }} {{ _('Actions') }}
{{ upload.user.username }} {{ upload.filename }} {{ upload.filetype }} {{ upload.uploaded_at.strftime('%Y-%m-%d %H:%M') }}

{{ _('Notifications') }}

{% for notif in all_notifications %} {% endfor %}
{{ _('User') }} {{ _('Message') }} {{ _('Created') }}
{{ notif.user_id }} {{ notif.message }} {{ notif.created_at.strftime('%Y-%m-%d %H:%M') }}

{{ _('Recent Events') }}

{% for event in events %} {% endfor %}
{{ event.timestamp.strftime('%Y-%m-%d %H:%M') }} {{ event.message }}

{{ _('Shop Orders') }}

{% for usi in user_shop_items %} {% endfor %}
{{ _('User') }} {{ _('Item') }}
{% if usi.user.profile_pic and usi.user.profile_pic != 'default.png' %} {{ usi.user.username }} {% else %} {{ usi.user.username }} {% endif %} {{ usi.item.name }}

{{ _('Reward Points') }}

{% for user in users %} {% endfor %}
{{ _('User') }} {{ _('Points') }} {{ _('Actions') }}
{% if user.profile_pic and user.profile_pic != 'default.png' %} {{ user.username }} {% else %} {{ user.username }} {% endif %} {{ user.reward_points() }}
{% endblock %}