Added PRO account information

This commit is contained in:
Eduard Urbach 2017-10-06 08:44:29 +02:00
parent 819eb00ab7
commit fe83952c35
2 changed files with 28 additions and 1 deletions

View File

@ -11,4 +11,7 @@ component Inventory(inventory *arn.Inventory, viewUser *arn.User, user *arn.User
.inventory-slot.mountable(title=slot.Item().Name, draggable="true", data-index=index, data-item-id=slot.ItemID, data-consumable=slot.Item().Consumable)
Icon(slot.Item().Icon)
if slot.Quantity > 1
.inventory-slot-quantity= slot.Quantity
.inventory-slot-quantity= slot.Quantity
.footer.text-center.mountable
p You can consume items by double-clicking them.

View File

@ -137,6 +137,30 @@ component Settings(user *arn.User)
.profile-image-container.avatar-preview
img.profile-image.mountable(src=strings.Replace(user.Settings().Avatar.SourceURL, "http://", "https://", 1), alt="Avatar preview")
.widget.mountable(data-api="/api/settings/" + user.ID)
h3.widget-title
Icon("star")
span PRO
if user.IsPro()
p Thank you for your support!
.widget-input
label
span Your PRO account expires in
span.utc-date(data-date=user.ProExpires)
span .
a.button.ajax(href="/shop")
Icon("star")
span Extend PRO account duration
else
.widget-input
label Would you like to support the site development?
a.button.ajax(href="/shop")
Icon("star")
span Go PRO
//- .widget.mountable(data-api="/api/settings/" + user.ID)
//- h3.widget-title
//- Icon("cogs")