remove unneeded header

This commit is contained in:
Westly Wright 2018-07-05 14:43:02 -07:00
parent a10b9391e2
commit 0cfabe970e
No known key found for this signature in database
GPG Key ID: 4FAB3D8673DC54A3
4 changed files with 12 additions and 29 deletions

View File

@ -1,12 +1,5 @@
<section>
{{#if isEnabled}}
<p>{{t (concat 'authPage.azuread.header.enabled.' authConfig.accessMode)
appName=settings.appName
groups=numGroups
users=numUsers
htmlSafe=true
}}</p>
{{else}}
{{#unless isEnabled}}
<div class="banner bg-warning">
<div class="banner-icon">
<span class="icon icon-alert"></span>
@ -15,8 +8,7 @@
<p>{{t 'authPage.azuread.header.disabled.label' htmlSafe=true}}</p>
</div>
</div>
<p>{{t 'authPage.azuread.header.disabled.warning' appName=settings.appName}}</p>
{{/if}}
{{/unless}}
</section>

View File

@ -1,14 +1,16 @@
<section>
{{#if isEnabled }}
<h3>{{t 'authPage.github.header.enabled.label' github=(t providerName)}}</h3>
<hr/>
{{else}}
{{#unless isEnabled}}
<div class="banner bg-warning">
<div class="banner-icon"><span class="icon icon-alert"></span></div>
<div class="banner-message">
<p>{{t 'authPage.github.header.disabled.label'}}</p>
</div>
</div>
{{/unless}}
{{#if isEnabled }}
<h3>{{t 'authPage.github.header.enabled.label' github=(t providerName)}}</h3>
<hr/>
{{else}}
{{/if}}
<div>
{{#if isEnabled}}

View File

@ -1,6 +1,6 @@
{{security-header}}
<section>
<section class="mb-20">
<div class="row nav nav-boxes checked-active">
{{#each drivers as |driver|}}
{{#if driver.available}}

View File

@ -1,23 +1,12 @@
<section>
{{#if isEnabled}}
<h3>{{t 'ldap.header.enabled.label' providerName=(t providerName)}}</h3>
<hr/>
{{else}}
{{#unless isEnabled}}
<div class="banner bg-warning">
<div class="banner-icon"><span class="icon icon-alert"></span></div>
<div class="banner-message">
<p>{{t 'ldap.header.disabled.label' providerName=(t providerName)}}</p>
</div>
</div>
{{/if}}
<div>
{{#if isEnabled}}
{{t (concat 'ldap.header.enabled.' authConfig.accessMode) appName=settings.appName providerName=(t providerName) users=numUsers groups=numGroups}}
{{else}}
{{t 'ldap.header.disabled.warning' appName=settings.appName providerName=(t providerName)}}
{{/if}}
</div>
{{/unless}}
</section>
{{#accordion-list showExpandAll=false as |al expandFn|}}