1
0
Fork 0
forked from s3lph/matemat

feat: move avatar up

This commit is contained in:
Valentin Weber 2024-12-07 21:27:18 +01:00
parent 6e9f60eb36
commit d3c5a8a56b
Signed by: weva
GPG key ID: 44797000F143F522

View file

@ -24,6 +24,15 @@
<section class="tab-pane fade pt-3 show active" id="settings-account-tab-pane" role="tabpanel">
<h2>My Account</h2>
<div class="row itemlist">
<div class="col-xl-1 col-md-2 col-sm-3 col-4 mb-3">
<div class="card text-bg-light">
<div class="card-header">{{ authuser.name }}</div>
<img class="card-img-bottom" draggable="false" src="/static/upload/thumbnails/users/{{ authuser.id }}.png?cacheBuster={{ now }}" alt="Avatar of {{ authuser.name }}">
</div>
</div>
</div>
<form id="settings-myaccount-form" method="post" action="/settings?change=account" accept-charset="UTF-8">
<div class="row g-2">
<div class="col-md">
@ -81,8 +90,6 @@
<h2>Avatar</h2>
<form id="settings-avatar-form" method="post" action="/settings?change=avatar" enctype="multipart/form-data" accept-charset="UTF-8">
<img src="/static/upload/thumbnails/users/{{ authuser.id }}.png?cacheBuster={{ now }}" alt="Avatar of {{ authuser.name }}" /><br/>
<label class="form-label" for="settings-avatar-avatar">Upload new file: </label>
<input class="form-control" id="settings-avatar-avatar" type="file" name="avatar" accept="image/*" /><br/>