Skip to content

Commit

Permalink
Service section design changes (#474)
Browse files Browse the repository at this point in the history
* User page - service section design changes

Co-authored-by: AyazYousafxai <[email protected]>
  • Loading branch information
muzammalrahim and AyazYousafxai authored Mar 1, 2021
1 parent d6043d2 commit e88558c
Show file tree
Hide file tree
Showing 16 changed files with 1,275 additions and 155 deletions.
47 changes: 43 additions & 4 deletions weblate_web/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,17 +508,56 @@ def expires(self):

def get_suggestions(self):
if not self.support_subscriptions.exists():
yield "basic", _("Basic support")
yield (
"basic",
_("Basic support"),
_(
"This will give you more of this and that. "
"You can't resist, because it is a huge deal."
),
"img/Support-Basic.svg",
_("Get more support"),
)

if (
not self.hosted_subscriptions.exists()
and not self.shared_subscriptions.exists()
):
if not self.premium_subscriptions.exists():
yield "premium", _("Extended support")
yield (
"premium",
_("Premium support"),
_(
"This will give you more of this and that. "
"You can't resist, because it is a huge deal."
),
"img/Support-Plus.svg",
_("Get more support"),
)

if not self.extended_subscriptions.exists():
yield "extended", _("Extended support")
yield (
"extended",
_("Extended support"),
_(
"This will give you more of this and that. "
"You can't resist, because it is a huge deal."
),
"img/Support-Premium.svg",
_("Get more support"),
)

if not self.backup_subscriptions.exists():
yield "backup", _("Backup service")
yield (
"backup",
_("Backup service"),
_(
"This will give you more of this and that. "
"You can't resist, because it is a huge deal."
),
"img/Support-Backup.svg",
_("Get more support"),
)

def update_status(self):
status = "community"
Expand Down
4 changes: 4 additions & 0 deletions weblate_web/static/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,7 @@ ready(() => {

new ClipboardJS("[data-clipboard-text]");
});

function removeUser(userId) {
document.getElementById(`server_user_${userId}_form`).submit();
}
Binary file added weblate_web/static/img/ArrowR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weblate_web/static/img/Shield.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weblate_web/static/img/delete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weblate_web/static/img/donations-picture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weblate_web/static/img/dowload.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e88558c

Please sign in to comment.