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
15 lines
458 B
Django/Jinja
15 lines
458 B
Django/Jinja
{% extends 'base.html.j2' %}
|
|
|
|
{% block title %}Home{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>Welcome to the Media Hosting App</h1>
|
|
<p>
|
|
{% if request.user and request.user.is_verified %}
|
|
Hello, {{ request.user.username }}!
|
|
{% else %}
|
|
Welcome, Guest!
|
|
{% endif %}
|
|
</p>
|
|
<p>This application allows authenticated users to upload images, audio, and short videos. Guests can browse and download publicly available media.</p>
|
|
{% endblock %}
|