heisbuba commited on
Commit
65d823e
·
verified ·
1 Parent(s): 1e02911

Update src/templates/base.html

Browse files
Files changed (1) hide show
  1. src/templates/base.html +19 -7
src/templates/base.html CHANGED
@@ -226,16 +226,20 @@ input[type="password"] {
226
  text-decoration: underline;
227
  }
228
 
229
- .back-link {
230
- display: block;
 
 
 
 
231
  text-align: center;
232
- margin-top: 20px;
233
- color: var(--text-dim);
234
- text-decoration: none;
235
  }
236
 
237
- .back-link:hover {
238
- color: var(--accent-blue);
 
 
 
239
  }
240
 
241
  /* --- GRID LAYOUT --- */
@@ -283,6 +287,14 @@ input[type="password"] {
283
 
284
  <main>
285
  {% block content %}{% endblock %}
 
 
 
 
 
 
 
 
286
  </main>
287
 
288
  <footer class="footer">
 
226
  text-decoration: underline;
227
  }
228
 
229
+ /* --- GLOBAL NAV BUTTON --- */
230
+
231
+ .back-nav-container {
232
+ margin-top: 40px;
233
+ padding-top: 20px;
234
+ border-top: 1px solid var(--border);
235
  text-align: center;
 
 
 
236
  }
237
 
238
+ .back-nav-btn {
239
+ width: auto;
240
+ padding: 10px 25px;
241
+ display: inline-block;
242
+ margin-bottom: 5px;
243
  }
244
 
245
  /* --- GRID LAYOUT --- */
 
287
 
288
  <main>
289
  {% block content %}{% endblock %}
290
+ <!-- GLOBAL NAV BUTTON -->
291
+ {% if session.get('user_id') and request.endpoint not in ['main.home', 'main.setup', 'auth.login', 'auth.register', 'auth.reset_password'] %}
292
+ <div class="back-nav-container">
293
+ <a href="{{ url_for('main.home') }}" class="btn btn-links back-nav-btn">
294
+ ← BACK TO DASHBOARD
295
+ </a>
296
+ </div>
297
+ {% endif %}
298
  </main>
299
 
300
  <footer class="footer">