add hat preview in /submit/hats

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-25 23:12:52 +02:00
parent eba9666dd6
commit e4c7a588ca
1 changed files with 5 additions and 0 deletions

View File

@ -166,6 +166,11 @@
<div><label class="mt-3">Image</label></div>
<img loading="lazy" src="/asset_submissions/hats/{{hat.name}}.webp?s={{range(1, 10000000)|random}}" style="max-width:50%;border:5px white solid">
<div class="profile-pic-100-wrapper ml-4 mt-4">
<img loading="lazy" alt="avatar" src="{{v.profile_url}}" class="profile-pic-100">
<img loading="lazy" class="profile-pic-100-hat" src="/asset_submissions/hats/{{hat.name}}.webp?s={{range(1, 10000000)|random}}">
</div>
<div><label class="mt-3" for="{{hat.name}}-submitter">Submitter</label></div>
<input autocomplete="off" type="text" id="{{hat.name}}-submitter" class="form-control" maxlength="30" value="{{hat.submitter.username}}" readonly>