heisbuba commited on
Commit
7328622
·
verified ·
1 Parent(s): f8cb95d

Update src/templates/base.html

Browse files

hidden settings page for setup wizard users to stop them from accessing pages for completely unboarded users.

Files changed (1) hide show
  1. src/templates/base.html +7 -2
src/templates/base.html CHANGED
@@ -244,11 +244,16 @@ input[type="password"] {
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>
 
244
  <a href="{{ url_for('main.help_page') }}" class="icon-btn">?</a>
245
 
246
  {% if session.get('user_id') %}
247
+
248
+ {% if request.endpoint != 'main.setup' %}
249
+ <a href="{{ url_for('main.settings') }}" class="icon-btn">⚙️</a>
250
+ {% endif %}
251
+
252
  <a href="{{ url_for('auth.logout') }}" class="logout-btn" title="Logout">➜]</a>
253
  {% endif %}
254
  </div>
255
+ </div>
256
+
257
  {% block content %}{% endblock %}
258
  </body>
259
  </html>