deleted: templates/import_user_record.html.j2
deleted: templates/user_media.html.j2 modified: templates/verify.html.j2
This commit is contained in:
parent
c5cc687dcf
commit
3a5af16053
3 changed files with 1 additions and 46 deletions
|
|
@ -1,12 +0,0 @@
|
|||
{% extends 'base.html.j2' %}
|
||||
|
||||
{% block title %}Import User Record{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Import User Record</h1>
|
||||
<form method="POST" enctype="multipart/form-data">
|
||||
<label for="user_record_file">Select User Record JSON File:</label>
|
||||
<input type="file" name="user_record_file" accept="application/json" required><br><br>
|
||||
<button type="submit">Import</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
{% extends 'base.html.j2' %}
|
||||
|
||||
{% block title %}{{ user.username }}'s Media{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ user.username }}'s Media</h1>
|
||||
|
||||
{% if media_items %}
|
||||
<ul>
|
||||
{% for media in media_items %}
|
||||
<li>
|
||||
<strong>{{ media.title if media.title else media.filename }}</strong><br>
|
||||
{% if media.is_public %}
|
||||
<span>Status: Public</span>
|
||||
{% else %}
|
||||
<span>Status: Private</span>
|
||||
{% endif %}<br>
|
||||
<!-- View and Download links -->
|
||||
<a href="{{ request.route_url('view_media', user_short_id=user.short_id, media_short_id=media.short_id) }}">View</a> |
|
||||
<a href="{{ request.route_url('view_media', user_short_id=user.short_id, media_short_id=media.short_id, _query={'download': 'true'}) }}">Download</a> |
|
||||
<!-- Link to media detail page -->
|
||||
<a href="{{ request.route_url('view_media_details', user_short_id=user.short_id, media_short_id=media.short_id) }}">Details</a>
|
||||
{% if request.user and request.user.id == media.user_id %}
|
||||
| <a href="{{ request.route_url('edit_media', user_short_id=user.short_id, media_short_id=media.short_id) }}">Edit</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>No media found.</p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
<p>A 6-digit code has been sent to your email. Please enter it below to verify your account.</p>
|
||||
<form method="POST">
|
||||
<label for="code">Verification Code:</label>
|
||||
input type="hidden" name="csrf_token" value="{{ request.session.get_csrf_token() }}">
|
||||
<input type="hidden" name="csrf_token" value="{{ request.session.get_csrf_token() }}">
|
||||
<input type="text" name="code" required pattern="\d{6}" minlength="6" maxlength="6" inputmode="numeric">
|
||||
<button type="submit">Verify</button>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue