ui: avatar uploader

This commit is contained in:
undefined committed 2023-01-07 22:19:10 +08:00
1 parent dc7f2a877e
commit 9672436151
5 files changed
+106

No files matched your search

@@ -1,5 +1,20 @@
{% extends "layout/home_base.html" %}
{% block home_content %}
{% if category == "account" %}
<div class="section" id="upload_avatar" data-heading-extract-to="#menu-item-home_account" style="nojs--hide">
<div class="section__header">
<h1 class="section__title" id="avatar" data-heading>{{ _('Avatar') }}</h1>
</div>
<div class="section__body typo">
<p>{{ _('You can also upload your avatar to Gravatar and it will be automatically updated here.')|safe }}</p>
</div>
<div class="section__body">
<img width="128px" height="128px" src="{{ avatarUrl(current.avatar, 128) }}" alt="{{ current.uname }}">
<div class="changeAvatar"></div>
<button class="change-avatar button rounded primary">{{ _('Change avatar') }}</button>
</div>
</div>
{% endif %}
<div class="section" data-heading-extract-to="#menu-item-home_{{ category }}">
{% include "partials/setting.html" %}
</div>