2021-07-26 18:41:40 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title>{{ user_manager.USER_APP_NAME }}</title>
|
|
|
|
|
|
|
|
<!-- Bootstrap -->
|
2021-10-05 23:33:12 -04:00
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.15.5/dist/bootstrap-table.min.css">
|
|
|
|
|
2021-07-26 18:41:40 -04:00
|
|
|
|
|
|
|
<!-- In-lining styles to avoid needing a separate .css file -->
|
|
|
|
<style>
|
|
|
|
hr { border-color: #cccccc; margin: 0; }
|
|
|
|
.no-margins { margin: 0px; }
|
|
|
|
.with-margins { margin: 10px; }
|
|
|
|
.col-centered { float: none; margin: 0 auto; }
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
|
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.js"></script>
|
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js"></script>
|
|
|
|
<![endif]-->
|
|
|
|
|
|
|
|
{# *** Allow sub-templates to insert extra html to the head section *** #}
|
|
|
|
{% block extra_css %}{% endblock %}
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
<body>
|
2021-10-05 23:33:12 -04:00
|
|
|
|
|
|
|
<!-- A grey horizontal navbar that becomes vertical on small screens -->
|
|
|
|
<nav class="navbar navbar-expand-sm bg-light">
|
|
|
|
|
2021-08-06 22:54:11 -04:00
|
|
|
<div class="container-fluid">
|
2021-10-05 23:33:12 -04:00
|
|
|
<a class="navbar-brand" href="#">
|
|
|
|
|
|
|
|
{{ user_manager.USER_APP_NAME }}
|
|
|
|
</a>
|
|
|
|
<!-- Links -->
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{url}}/"> Home </a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{url}}/talkgroups"> Talkgroups </a>
|
|
|
|
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a class="nav-link dropdown-toggle" href="#" id="aprs_menu" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
|
|
APRS/SMS
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu" aria-labelledby="aprs_menu">
|
|
|
|
<li><a class="dropdown-item" href="{{url}}/aprs">APRS Dashboard</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{url}}/news"> News </a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{url}}/help"> Help </a>
|
|
|
|
</li>
|
2021-08-06 22:54:11 -04:00
|
|
|
</ul>
|
|
|
|
|
2021-10-05 23:33:12 -04:00
|
|
|
|
|
|
|
<!--Admin Menu -->
|
2021-07-26 18:41:40 -04:00
|
|
|
{% if call_or_get(current_user.is_authenticated) %}
|
|
|
|
{% if call_or_get(current_user.has_roles('Admin')) %}
|
2021-10-05 23:33:12 -04:00
|
|
|
<ul class="navbar-nav">
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a class="nav-link dropdown-toggle" href="#" id="aprs_menu" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
|
|
Admin
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu" aria-labelledby="mmdvm_admin">
|
|
|
|
<li><a class="dropdown-item" href="{{url}}/manage_servers">Manage Servers</a></li>
|
|
|
|
<li><a class="dropdown-item" href="{{url}}/manage_peers">Manage Peers</a></li>
|
|
|
|
<li><a class="dropdown-item" href="{{url}}/manage_masters">Manage Masters</a></li>
|
|
|
|
<li><a class="dropdown-item" href="{{url}}/manage_rules">Manage Rules</a></li>
|
|
|
|
<li><hr class="dropdown-divider"></li>
|
|
|
|
<li><a class="dropdown-item" href="{{url}}/add_user">Add User</a></li>
|
|
|
|
<li><a class="dropdown-item" href="{{url}}/list_users">Manage Users</a></li>
|
|
|
|
<li><a class="dropdown-item" href="{{url}}/approve_users">Waiting Approval</a></li>
|
|
|
|
<li><hr class="dropdown-divider"></li>
|
|
|
|
<li><a class="dropdown-item" href="{{url}}/manage_news">Manage News</a></li>
|
|
|
|
<li><a class="dropdown-item" href="{{url}}/misc_settings">Misc Options</a></li>
|
|
|
|
<li><a class="dropdown-item" href="{{url}}/auth_log">Authorization Log</a></li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2021-08-06 22:54:11 -04:00
|
|
|
|
|
|
|
|
2021-10-05 23:33:12 -04:00
|
|
|
<ul class="navbar-nav">
|
|
|
|
{% if not call_or_get(current_user.is_authenticated) %}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url_for('user.login') }}">Sign In</a>
|
2021-08-06 22:54:11 -04:00
|
|
|
</li>
|
2021-10-05 23:33:12 -04:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url_for('user.register') }}">Register</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if call_or_get(current_user.is_authenticated) %}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{url}}/map">Map</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{url}}/generate_passphrase">Passphrase(s)</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url_for('user.edit_user_profile') }}">Change {{ current_user.username or current_user.email }}</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url_for('user.logout') }}">Sign Out</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-08-06 22:54:11 -04:00
|
|
|
</ul>
|
2021-10-05 23:33:12 -04:00
|
|
|
|
2021-08-06 22:54:11 -04:00
|
|
|
</div>
|
2021-10-05 23:33:12 -04:00
|
|
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-06 23:28:56 -04:00
|
|
|
<p><img class="img-responsive" style="display: block; margin-left: auto; margin-right: auto;" src="{{ url_for('static', filename='HBnet.png') }}" alt="Logo" width="300" height="144" /></p>
|
2021-07-26 18:41:40 -04:00
|
|
|
<hr />
|
2021-08-06 22:54:11 -04:00
|
|
|
|
|
|
|
|
2021-07-26 18:41:40 -04:00
|
|
|
{% block body %}
|
|
|
|
|
|
|
|
<hr class="no-margins"/>
|
|
|
|
|
|
|
|
<div id="main-div" class="with-margins">
|
|
|
|
{# One-time system messages called Flash messages #}
|
|
|
|
{% block flash_messages %}
|
|
|
|
{%- with messages = get_flashed_messages(with_categories=true) -%}
|
|
|
|
{% if messages %}
|
|
|
|
{% for category, message in messages %}
|
|
|
|
{% if category=='error' %}
|
|
|
|
{% set category='danger' %}
|
|
|
|
{% endif %}
|
|
|
|
<div class="alert alert-{{category}}">{{ message|safe }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{%- endwith %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block main %}
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{{markup_content}}
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
<hr class="no-margins"/>
|
|
|
|
<div id="footer-div" class="clearfix with-margins">
|
2021-09-20 12:33:21 -04:00
|
|
|
<p style="text-align: center;"><strong>{{ user_manager.USER_APP_NAME }}<br /></strong><a href="https://hbnet.xyz">HBNet Project</a><br /></p>
|
2021-07-26 18:41:40 -04:00
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
|
|
|
<!-- Bootstrap -->
|
2021-10-05 23:33:12 -04:00
|
|
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.js"></script>
|
|
|
|
|
2021-07-26 18:41:40 -04:00
|
|
|
|
|
|
|
{# *** Allow sub-templates to insert extra html to the bottom of the body *** #}
|
|
|
|
{% block extra_js %}{% endblock %}
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|