modified: app.py modified: requirements.txt modified: templates/base.html.j2 new file: templates/create_namespace.html.j2 new file: templates/display_agent_jwt.html.j2 deleted: templates/edit_media.html.j2 modified: templates/home.html.j2 deleted: templates/import_user_record.html.j2 deleted: templates/list_media.html.j2 new file: templates/manage_namespace.html.j2 modified: templates/profile.html.j2 deleted: templates/upload_media.html.j2 deleted: templates/user_media.html.j2 deleted: templates/view_media.html.j2 deleted: templates/view_media_details.html.j2 new file: templates/view_namespace_logs.html.j2
27 lines
647 B
Django/Jinja
27 lines
647 B
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>
|
|
|
|
|
|
{% endblock %}
|