Maybe like this

This commit is contained in:
Alicia 2019-02-23 14:46:43 +00:00
parent 3af046da8e
commit b175fc3e9c

View File

@ -24,7 +24,10 @@ AdditionalJS=https://cdnjs.cloudflare.com/ajax/libs/jquery-minicolors/2.2.4/jque
</select> </select>
</p> </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 }}> <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 }}"> <img src="/static/profbackgrounds/{{ $value }}">
{{ else }} {{ else }}
No image selected No image selected