Adds several new pages
This commit is contained in:
parent
04d3e53f90
commit
e20f7d4572
|
@ -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")
|
||||
|
|
|
@ -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://en.wikipedia.org/wiki/Three-check_chess}
|
||||
case chess.variant.Antichess => {http://en.wikipedia.org/wiki/Losing_chess}
|
||||
case chess.variant.Antichess => {@routes.Page.antichess}
|
||||
case chess.variant.FromPosition => {@routes.Editor.index?fen=@initialFen.map(_.replace(" ", "_"))}
|
||||
case chess.variant.Atomic => {@routes.Page.atomic}
|
||||
case chess.variant.Horde => {http://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 _ => {}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue