Advertisement
FlyFar

server/webui/templates/header.html

Jan 13th, 2024
1,067
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.25 KB | Cybersecurity | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.   <head>
  4.     <meta charset='utf-8'>
  5.     <meta http-equiv="X-UA-Compatible" content="chrome=1">
  6.  
  7.     <link rel="stylesheet" type="text/css" href="{{ url_for('webui.static', filename='css/stylesheet.css') }}" media="screen">
  8.     <link rel="stylesheet" type="text/css" href="{{ url_for('webui.static', filename='css/github-dark.css') }}" media="screen">
  9.     <title>Ares</title>
  10.     {% with messages = get_flashed_messages() %}
  11. {% if messages %}
  12. <ul>
  13.   {% for message in messages %}
  14.   <li>{{message}}</li>
  15.   {% endfor %}
  16. {% endif %}
  17. </ul>
  18. {% endwith %}
  19.  
  20.   </head>
  21.  
  22. <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
  23. <script src="{{ url_for('webui.static', filename='js/jquery.md5.js') }}"></script>
  24.  
  25. <body>
  26.  
  27. {% if not custom_header %}
  28. <header>
  29.   <div class="container">
  30.     <h1>{{ title }}</h1>
  31.     {% if previous_page %}
  32.     <a href="{{ previous_page }}">&lt;&lt; Back</a>
  33.     {% endif %}
  34.     {% if session.username %}
  35.     <h3 style="text-align: right">Logged in as {{ session.username }}</h3>
  36.     <h2 style="text-align: right"><a href="{{ url_for('webui.change_password') }}">Change Password</a>  <a href="{{ url_for('webui.logout') }}">Disconnect</a></h2>
  37.     {% endif %}
  38.    </div>
  39. </header>
  40. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement