Spaces:
Running
Running
Update src/templates/base.html
Browse files- src/templates/base.html +16 -5
src/templates/base.html
CHANGED
|
@@ -283,15 +283,26 @@ input:focus { outline: none; border-color: var(--accent-green); }
|
|
| 283 |
|
| 284 |
<div class="header">
|
| 285 |
<h1>
|
| 286 |
-
<a href="{{ url_for('main.home') }}"
|
|
|
|
|
|
|
| 287 |
</h1>
|
| 288 |
-
<div>
|
| 289 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 290 |
{% if session.get('user_id') %}
|
| 291 |
{% if request.endpoint != 'main.setup' %}
|
| 292 |
-
<a href="{{ url_for('main.settings') }}" class="icon-btn" title="Settings">
|
|
|
|
|
|
|
| 293 |
{% endif %}
|
| 294 |
-
|
|
|
|
|
|
|
|
|
|
| 295 |
{% endif %}
|
| 296 |
</div>
|
| 297 |
</div>
|
|
|
|
| 283 |
|
| 284 |
<div class="header">
|
| 285 |
<h1>
|
| 286 |
+
<a href="{{ url_for('main.home') if session.get('user_id') else url_for('main.index') }}" style="display: flex; align-items: center; gap: 10px;">
|
| 287 |
+
<span>Crypto<span style="color:var(--accent-green)">VAT</span></span>
|
| 288 |
+
</a>
|
| 289 |
</h1>
|
| 290 |
+
<div style="display: flex; align-items: center; gap: 5px;">
|
| 291 |
+
|
| 292 |
+
<a href="{{ url_for('main.help_page') }}" class="icon-btn" title="Help">
|
| 293 |
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>
|
| 294 |
+
</a>
|
| 295 |
+
|
| 296 |
{% if session.get('user_id') %}
|
| 297 |
{% if request.endpoint != 'main.setup' %}
|
| 298 |
+
<a href="{{ url_for('main.settings') }}" class="icon-btn" title="Settings">
|
| 299 |
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
|
| 300 |
+
</a>
|
| 301 |
{% endif %}
|
| 302 |
+
|
| 303 |
+
<a href="{{ url_for('auth.logout') }}" class="logout-btn" title="Logout" style="display: flex; align-items: center;">
|
| 304 |
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>
|
| 305 |
+
</a>
|
| 306 |
{% endif %}
|
| 307 |
</div>
|
| 308 |
</div>
|