Use pluralSame everywhere for xJoinRequests
`xJoinRequests` has a singular and a plural form, use it when it's possible
This commit is contained in:
parent
db8dc90e84
commit
a831abd752
|
@ -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())(
|
||||
|
|
|
@ -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)
|
||||
)
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue