Merge branch 'master' of github.com:ornicar/lila

* 'master' of github.com:ornicar/lila:
  actually check the tenth digit instead
  Fix ranking in 3315b63
  3D -> 2D
  Reuse the same element in 6e4b28e
This commit is contained in:
Thibault Duplessis 2015-08-15 19:29:54 +02:00
commit 89333152ef
3 changed files with 5 additions and 3 deletions

View file

@ -22,7 +22,9 @@ trait NumberHelper { self: I18nHelper =>
def localize(implicit ctx: UserContext): String = formatter format number
}
def nth(number: Int) = number match {
def nth(number: Int) = if ((11 to 13).contains(number % 100))
"th"
else number % 10 match {
case 1 => "st"
case 2 => "nd"
case 3 => "rd"

View file

@ -39,7 +39,7 @@ withLangAnnotations: Boolean = true)(body: Html)(implicit ctx: Context)
<link href="@routes.Blog.atom()" type="application/atom+xml" rel="alternate" title="Latest blog posts" />
@if(withLangAnnotations){@langAnnotations}
@ctx.transpBgImg.map { img =>
<style type="text/css">body.transp::before{background-image:url('@img');}</style>
<style type="text/css" id="bg-data">body.transp::before{background-image:url('@img');}</style>
}
</head>
<body class="preload base @List(

View file

@ -312,7 +312,7 @@ div.lichess_board {
#top .is3d .Woodi {
background-image: url(../images/board/3d/woodi.1024.png);
}
/* 3D boards */
/* 2D boards */
.blue .is2d .cg-board,
#top div.color_demo.blue {