commit
c19481aa1b
@ -1,2 +1,7 @@
|
||||
import os
|
||||
|
||||
def dev(self):
|
||||
return os.getenv("TORNADO_ENV", "dev") == "dev"
|
||||
|
||||
def matchesPath(self, href):
|
||||
return self.request.uri.startswith(href)
|
||||
|
1
static/icons/visible.svg
Normal file
1
static/icons/visible.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 14c-5.593 0-8-4.554-8-6s2.407-6 8-6 8 4.554 8 6-2.407 6-8 6zM8 4C3.751 4 2.045 7.301 2 8.008 2.045 8.699 3.751 12 8 12c4.249 0 5.955-3.301 6-4.008C13.955 7.301 12.249 4 8 4zm0 7c-1.654 0-3-1.346-3-3s1.346-3 3-3 3 1.346 3 3-1.346 3-3 3zm0-4c-.551 0-1 .449-1 1s.449 1 1 1 1-.449 1-1-.449-1-1-1z"/></svg>
|
After Width: | Height: | Size: 374 B |
@ -1,5 +1,9 @@
|
||||
<div class="global-navigation sidenav global-navigation__context--{{context}}">
|
||||
<ul>
|
||||
{% if dev() %}
|
||||
{% module SidenavItem("Styleguide", href="/styleguide", icon="visible", active=matchesPath('/styleguide')) %}
|
||||
{% end %}
|
||||
|
||||
{% module SidenavItem("Requests", href="/requests", icon="document", active=matchesPath('/requests')) %}
|
||||
{% module SidenavItem("Workspaces", href="/workspaces", icon="cloud", active=matchesPath('/workspaces')) %}
|
||||
</ul>
|
||||
|
@ -19,6 +19,9 @@
|
||||
|
||||
<a class="usa-button" href='{{ config['default'].get('cac_url','https://cac.atat.codes') }}'><span>Sign In with CAC</span></a>
|
||||
<button class="usa-button" disabled>Sign In via MFA</button>
|
||||
{% if dev() %}
|
||||
<a class="usa-button usa-button-secondary" href='/login-dev'><span>DEV Login</span></a>
|
||||
{% end %}
|
||||
|
||||
</main>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user