Skip to content

Commit e88558c

Browse files
Service section design changes (#474)
* User page - service section design changes Co-authored-by: AyazYousafxai <ayazpk6630@gmail.com>
1 parent d6043d2 commit e88558c

16 files changed

Lines changed: 1275 additions & 155 deletions

File tree

weblate_web/models.py

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -508,17 +508,56 @@ def expires(self):
508508

509509
def get_suggestions(self):
510510
if not self.support_subscriptions.exists():
511-
yield "basic", _("Basic support")
511+
yield (
512+
"basic",
513+
_("Basic support"),
514+
_(
515+
"This will give you more of this and that. "
516+
"You can't resist, because it is a huge deal."
517+
),
518+
"img/Support-Basic.svg",
519+
_("Get more support"),
520+
)
521+
512522
if (
513523
not self.hosted_subscriptions.exists()
514524
and not self.shared_subscriptions.exists()
515525
):
516526
if not self.premium_subscriptions.exists():
517-
yield "premium", _("Extended support")
527+
yield (
528+
"premium",
529+
_("Premium support"),
530+
_(
531+
"This will give you more of this and that. "
532+
"You can't resist, because it is a huge deal."
533+
),
534+
"img/Support-Plus.svg",
535+
_("Get more support"),
536+
)
537+
518538
if not self.extended_subscriptions.exists():
519-
yield "extended", _("Extended support")
539+
yield (
540+
"extended",
541+
_("Extended support"),
542+
_(
543+
"This will give you more of this and that. "
544+
"You can't resist, because it is a huge deal."
545+
),
546+
"img/Support-Premium.svg",
547+
_("Get more support"),
548+
)
549+
520550
if not self.backup_subscriptions.exists():
521-
yield "backup", _("Backup service")
551+
yield (
552+
"backup",
553+
_("Backup service"),
554+
_(
555+
"This will give you more of this and that. "
556+
"You can't resist, because it is a huge deal."
557+
),
558+
"img/Support-Backup.svg",
559+
_("Get more support"),
560+
)
522561

523562
def update_status(self):
524563
status = "community"

weblate_web/static/custom.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,7 @@ ready(() => {
207207

208208
new ClipboardJS("[data-clipboard-text]");
209209
});
210+
211+
function removeUser(userId) {
212+
document.getElementById(`server_user_${userId}_form`).submit();
213+
}

weblate_web/static/img/ArrowR.png

392 Bytes
Loading

weblate_web/static/img/Shield.png

901 Bytes
Loading

weblate_web/static/img/delete.png

254 Bytes
Loading
116 KB
Loading

weblate_web/static/img/dowload.png

495 Bytes
Loading

0 commit comments

Comments
 (0)