Improved upload scripts

This commit is contained in:
2018-03-03 18:29:39 +01:00
parent 634fed8e87
commit 58b54fe908
5 changed files with 42 additions and 17 deletions

View File

@ -51,10 +51,16 @@ component SettingsPersonal(user *arn.User)
//- File upload
if user.Settings().Avatar.Source == "FileSystem"
InputImage("avatar-input", "File", user.LargeAvatar())
InputImage("avatar-input", "File")
.profile-image-container.avatar-preview
img.profile-image.mountable(id="avatar-input-preview", src=user.LargeAvatar(), alt="Image preview")
if user.HasAvatar()
img#avatar-input-preview.profile-image.mountable(src=user.LargeAvatar(), alt="Profile image")
else
img#avatar-input-preview.profile-image.hidden(src=user.LargeAvatar(), alt="Profile image")
#avatar-input-preview-svg
SVGProfileImage(user)
component SettingsNotifications(user *arn.User)
SettingsTabs