forked from s3lph/matemat
feat: move avatar up
This commit is contained in:
parent
6e9f60eb36
commit
d3c5a8a56b
1 changed files with 9 additions and 2 deletions
|
@ -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/>
|
||||
|
||||
|
|
Loading…
Reference in a new issue