ui: Mark locked theme as « Confidential »
This commit is contained in:
parent
d4ce0dd474
commit
838ce2fb3f
2 changed files with 38 additions and 27 deletions
|
@ -19,6 +19,16 @@
|
||||||
<Card class="niceborder text-indent mt-2 mb-4">
|
<Card class="niceborder text-indent mt-2 mb-4">
|
||||||
|
|
||||||
<CardBody class="bg-dark text-light">
|
<CardBody class="bg-dark text-light">
|
||||||
|
<div style="position: relative; display: inline-block;">
|
||||||
|
{#if $current_theme.locked}
|
||||||
|
<div style="position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; right: 0;" class="d-flex justify-content-center align-items-center">
|
||||||
|
<div style="transform: rotate(-25deg)">
|
||||||
|
<div class="display-3 font-weight-bolder border border-danger text-danger px-3 py-1" style="opacity: 0.5; border-radius: 20px; border-width: 5px !important; font-family: 'Courier New'">
|
||||||
|
CONFIDENTIEL
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
<Row>
|
<Row>
|
||||||
<Col>
|
<Col>
|
||||||
<p class="mt-4 mx-3 card-text lead text-justify">{@html $current_theme.headline}</p>
|
<p class="mt-4 mx-3 card-text lead text-justify">{@html $current_theme.headline}</p>
|
||||||
|
@ -46,6 +56,7 @@
|
||||||
</Col>
|
</Col>
|
||||||
{/if}
|
{/if}
|
||||||
</Row>
|
</Row>
|
||||||
|
</div>
|
||||||
</CardBody>
|
</CardBody>
|
||||||
|
|
||||||
{#if $current_theme.exercices}
|
{#if $current_theme.exercices}
|
||||||
|
|
|
@ -49,7 +49,7 @@ func ExportThemes() (interface{}, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else {
|
} else {
|
||||||
for _, exercice := range exercices {
|
for _, exercice := range exercices {
|
||||||
if exercice.Disabled {
|
if exercice.Disabled && theme.Locked {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue