heisbuba commited on
Commit
17c1289
·
verified ·
1 Parent(s): ccaf897

Update src/templates/base.html

Browse files

Added user access-based conditional header.

Files changed (1) hide show
  1. src/templates/base.html +12 -0
src/templates/base.html CHANGED
@@ -237,6 +237,18 @@ input[type="password"] {
237
  {% block extra_css %}{% endblock %}
238
  </head>
239
  <body>
 
 
 
 
 
 
 
 
 
 
 
 
240
  {% block content %}{% endblock %}
241
  </body>
242
  </html>
 
237
  {% block extra_css %}{% endblock %}
238
  </head>
239
  <body>
240
+ <!-- Global Header -->
241
+ <div class="header">
242
+ <h1>Crypto VAT v4.0</h1>
243
+ <div>
244
+ <a href="{{ url_for('main.help_page') }}" class="icon-btn">?</a>
245
+
246
+ {% if session.get('user_id') %}
247
+ <a href="{{ url_for('main.settings') }}" class="icon-btn">⚙️</a>
248
+ <a href="{{ url_for('auth.logout') }}" class="logout-btn" title="Logout">➜]</a>
249
+ {% endif %}
250
+ </div>
251
+ </div>
252
  {% block content %}{% endblock %}
253
  </body>
254
  </html>