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">
|
||||
|
||||
<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>
|
||||
<Col>
|
||||
<p class="mt-4 mx-3 card-text lead text-justify">{@html $current_theme.headline}</p>
|
||||
|
@ -46,6 +56,7 @@
|
|||
</Col>
|
||||
{/if}
|
||||
</Row>
|
||||
</div>
|
||||
</CardBody>
|
||||
|
||||
{#if $current_theme.exercices}
|
||||
|
|
|
@ -49,7 +49,7 @@ func ExportThemes() (interface{}, error) {
|
|||
return nil, err
|
||||
} else {
|
||||
for _, exercice := range exercices {
|
||||
if exercice.Disabled {
|
||||
if exercice.Disabled && theme.Locked {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue