Maybe like this
This commit is contained in:
parent
3af046da8e
commit
b175fc3e9c
|
@ -24,7 +24,10 @@ AdditionalJS=https://cdnjs.cloudflare.com/ajax/libs/jquery-minicolors/2.2.4/jque
|
|||
</select>
|
||||
</p>
|
||||
<div class="ui compact segment" id="image-background" style="margin: 0 auto; max-width: 400px; max-height: 700px;" data-type="1"{{ if ne $type 1 }} hidden{{ end }}>
|
||||
{{ if and (eq $type 1 || eq $type 3) $value }}
|
||||
{{ if and (eq $type 1) $value }}
|
||||
<img src="/static/profbackgrounds/{{ $value }}">
|
||||
{{ else }}
|
||||
{{ if and (eq $type 3) $value }}
|
||||
<img src="/static/profbackgrounds/{{ $value }}">
|
||||
{{ else }}
|
||||
No image selected
|
||||
|
|
Loading…
Reference in New Issue
Block a user