Skip to content

Commit

Permalink
Change support text if patron
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererXII committed Jul 1, 2024
1 parent adfd487 commit 9da597b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions app/views/lobby/home.scala
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,16 @@ object home {
a(href := langHref(routes.Plan.index))(
iconTag(patronIconChar),
span(cls := "lobby__support__text")(
strong(trans.patron.donate()),
ctx.me map { u =>
if (u.isPatron) span(trans.patron.thankYou())
else span(trans.patron.becomePatron())
}
if (ctx.me.exists(_.isPatron))
frag(
strong(trans.patron.lishogiPatron()),
span(trans.patron.thankYou())
)
else
frag(
strong(trans.patron.donate()),
ctx.isAuth option span(trans.patron.becomePatron())
)
)
)
)
Expand Down
2 changes: 1 addition & 1 deletion ui/lobby/css/_support.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $c-support: $c-brag;
span {
@extend %nowrap-ellipsis;
display: block;
font-size: 1em;
font-size: 0.95em;
}
}
}

0 comments on commit 9da597b

Please sign in to comment.