add notification page
This commit is contained in:
Binary file not shown.
@@ -340,6 +340,12 @@ def init_routes(main_bp):
|
|||||||
def trash():
|
def trash():
|
||||||
return render_template('trash/trash.html')
|
return render_template('trash/trash.html')
|
||||||
|
|
||||||
|
@main_bp.route('/notifications')
|
||||||
|
@login_required
|
||||||
|
@require_password_change
|
||||||
|
def notifications():
|
||||||
|
return render_template('notifications/notifications.html')
|
||||||
|
|
||||||
@main_bp.route('/settings')
|
@main_bp.route('/settings')
|
||||||
@login_required
|
@login_required
|
||||||
def settings():
|
def settings():
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<div class="d-flex align-items-center">
|
<div class="d-flex align-items-center">
|
||||||
<div class="d-none d-lg-flex align-items-center me-3">
|
<div class="d-none d-lg-flex align-items-center me-3">
|
||||||
<a class="nav-link text-white" href="#">
|
<a class="nav-link text-white" href="{{ url_for('main.notifications') }}">
|
||||||
<i class="fas fa-bell text-xl" style="width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;"></i>
|
<i class="fas fa-bell text-xl" style="width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;"></i>
|
||||||
</a>
|
</a>
|
||||||
{% if current_user.is_admin %}
|
{% if current_user.is_admin %}
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
<!-- Mobile-only menu items -->
|
<!-- Mobile-only menu items -->
|
||||||
<li class="nav-item d-lg-none">
|
<li class="nav-item d-lg-none">
|
||||||
<hr class="my-2">
|
<hr class="my-2">
|
||||||
<a class="nav-link" href="#">
|
<a class="nav-link" href="{{ url_for('main.notifications') }}">
|
||||||
<i class="fas fa-bell"></i> Notifications
|
<i class="fas fa-bell"></i> Notifications
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
20
templates/notifications/notifications.html
Normal file
20
templates/notifications/notifications.html
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{% extends "common/base.html" %}
|
||||||
|
{% from "components/header.html" import header %}
|
||||||
|
|
||||||
|
{% block title %}Notifications - {{ super() }}{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{{ header(
|
||||||
|
title="Notifications",
|
||||||
|
description="View and manage your notifications",
|
||||||
|
icon="fa-bell"
|
||||||
|
) }}
|
||||||
|
|
||||||
|
<div class="container-fluid py-4">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-body">
|
||||||
|
<p class="text-muted">No notifications at this time.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user