logs.unturf.com/templates/profile.html.j2
Russell Ballestrini d7416d2bae init
new file:   .gitignore
	new file:   app.py
	new file:   requirements.txt
	new file:   templates/base.html.j2
	new file:   templates/edit_media.html.j2
	new file:   templates/home.html.j2
	new file:   templates/import_user_record.html.j2
	new file:   templates/list_media.html.j2
	new file:   templates/login.html.j2
	new file:   templates/profile.html.j2
	new file:   templates/upload_media.html.j2
	new file:   templates/user_media.html.j2
	new file:   templates/verify.html.j2
	new file:   templates/view_media.html.j2
	new file:   templates/view_media_details.html.j2
2024-12-29 15:21:59 -05:00

37 lines
1.1 KiB
Django/Jinja

{% extends 'base.html.j2' %}
{% block title %}Profile{% endblock %}
{% block content %}
<h1>Your Profile</h1>
{% if gravatar_url %}
<img src="{{ gravatar_url }}" alt="Gravatar Image">
{% endif %}
<p>Username: {{ user.username or "Not set" }}</p>
<form method="POST">
<label>
<input type="checkbox" name="enable_gravatar" {% if user.enable_gravatar %}checked{% endif %}>
Enable Gravatar
</label><br><br>
<label>
New Username:
<input type="text" name="new_username" placeholder="Enter new username">
</label><br><br>
<button type="submit">Update Profile</button>
</form>
<h2>Your Stats</h2>
<ul>
<li>Total Uploads: {{ total_uploads }}</li>
<li>Total Storage Used: {{ total_size | filesizeformat }}</li>
</ul>
<h2>Your Media</h2>
<p><a href="{{ request.route_url('user_media', user_short_id=user.short_id) }}">View Your Uploads</a></p>
<p><a href="{{ request.route_url('upload_media') }}">Upload New Media</a></p>
<p><a href="{{ request.route_url('download_database') }}">Download Your Database</a></p>
{% endblock %}