Use pluralSame everywhere for xJoinRequests

`xJoinRequests` has a singular and a plural form, use it when it's possible
This commit is contained in:
kraktus 2020-04-19 17:23:55 +01:00
parent db8dc90e84
commit a831abd752
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ object bits {
st.nav(cls := "page-menu__menu subnav")(
(ctx.teamNbRequests > 0) option
a(cls := tab.active("requests"), href := routes.Team.requests())(
xJoinRequests(ctx.teamNbRequests)
xJoinRequests.pluralSame(ctx.teamNbRequests)
),
ctx.isAuth option
a(cls := tab.active("mine"), href := routes.Team.mine())(

View file

@ -58,7 +58,7 @@ object show {
frag(br, trans.location(), ": ", richText(loc))
},
info.hasRequests option div(cls := "requests")(
h2(xJoinRequests(info.requests.size)),
h2(xJoinRequests.pluralSame(info.requests.size)),
views.html.team.request.list(info.requests, t.some)
)
),