Initial commit: conference app with Flask
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ session.locale if session.locale else 'en' }}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}NetEvents{% endblock %}</title>
|
||||
<link rel="icon" href="{{ url_for('static', filename='favicon.svg') }}">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar sticky-navbar">
|
||||
<div class="container">
|
||||
<a href="{{ url_for('index') }}" class="logo">NetEvents</a>
|
||||
<ul class="nav-links">
|
||||
{% if session.user_id %}
|
||||
{% if session.user_type == 'organizer' %}
|
||||
<li><a href="{{ url_for('organizer_dashboard') }}">{{ 'dashboard'|t }}</a></li>
|
||||
<li><a href="{{ url_for('create_event') }}">{{ 'create_event'|t }}</a></li>
|
||||
<li><a href="{{ url_for('all_attendee_types') }}">{{ 'attendee_types'|t }}</a></li>
|
||||
{% else %}
|
||||
<li><a href="{{ url_for('attendee_dashboard') }}">{{ 'dashboard'|t }}</a></li>
|
||||
<li><a href="{{ url_for('list_attendees') }}">{{ 'attendees'|t }}</a></li>
|
||||
<li><a href="{{ url_for('attendee_profile') }}">{{ 'profile'|t }}</a></li>
|
||||
{% endif %}
|
||||
<li><a href="{{ url_for('logout') }}">{{ 'logout'|t }}</a></li>
|
||||
{% else %}
|
||||
<li><a href="{{ url_for('index') }}">Home</a></li>
|
||||
<li><a href="{{ url_for('login') }}">{{ 'login'|t }}</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main class="container">
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% if messages %}
|
||||
<div class="flash-messages">
|
||||
{% for message in messages %}
|
||||
<div class="flash-message">{{ message }}</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<p>© 2024 NetEvents - Networking Event Platform</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user