Skip to content

Commit

Permalink
Adds several new pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Unihedro committed Jan 25, 2016
1 parent 04d3e53 commit e20f7d4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
8 changes: 8 additions & 0 deletions app/controllers/Page.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,18 @@ object Page extends LilaController {

def contact = page("contact")

def master = page("master")

def kingOfTheHill = page("king-of-the-hill")

def atomic = page("atomic")

def antichess = page("antichess")

def chess960 = page("chess960")

def horde = page("horde")

def racingKings = page("racing-kings")

def crazyhouse = page("crazyhouse")
Expand Down
6 changes: 3 additions & 3 deletions app/views/game/variantLink.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
@url = {
@variant match {
case chess.variant.Standard => {https://en.wikipedia.org/wiki/Chess}
case chess.variant.Chess960 => {https://en.wikipedia.org/wiki/Chess960}
case chess.variant.Chess960 => {@routes.Page.chess960}
case chess.variant.KingOfTheHill => {@routes.Page.kingOfTheHill}
case chess.variant.ThreeCheck => {http:https://en.wikipedia.org/wiki/Three-check_chess}
case chess.variant.Antichess => {http:https://en.wikipedia.org/wiki/Losing_chess}
case chess.variant.Antichess => {@routes.Page.antichess}
case chess.variant.FromPosition => {@[email protected](_.replace(" ", "_"))}
case chess.variant.Atomic => {@routes.Page.atomic}
case chess.variant.Horde => {http:https://en.wikipedia.org/wiki/Dunsany%27s_chess#Horde_variant}
case chess.variant.Horde => {@routes.Page.horde}
case chess.variant.RacingKings => {@routes.Page.racingKings}
case chess.variant.Crazyhouse => {@routes.Page.crazyhouse}
case _ => {}
Expand Down
4 changes: 4 additions & 0 deletions conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,12 @@ GET /help-lichess controllers.Page.helpLichess
GET /terms-of-service controllers.Page.tos
GET /how-to-stream-on-lichess controllers.Page.streamHowTo
GET /contact controllers.Page.contact
GET /master controllers.Page.master
GET /king-of-the-hill controllers.Page.kingOfTheHill
GET /atomic controllers.Page.atomic
GET /antichess controllers.Page.antichess
GET /chess960 controllers.Page.chess960
GET /horde controllers.Page.horde
GET /racing-kings controllers.Page.racingKings
GET /crazyhouse controllers.Page.crazyhouse
GET /privacy controllers.Page.privacy
Expand Down

0 comments on commit e20f7d4

Please sign in to comment.