diff options
author | Joris | 2017-02-25 22:25:03 +0100 |
---|---|---|
committer | Joris | 2017-02-25 22:25:03 +0100 |
commit | bbe5788cdcfbb26358566bfc74426ec38029cc73 (patch) | |
tree | 27607f6b5a667c264f11aeb10708d6d1dadb0fde /src/main/scala/reading/models/Period.scala | |
parent | f1de0dd7632eb29a40ea1f5cf136ab43ee945926 (diff) | |
download | reading-bbe5788cdcfbb26358566bfc74426ec38029cc73.tar.gz reading-bbe5788cdcfbb26358566bfc74426ec38029cc73.tar.bz2 reading-bbe5788cdcfbb26358566bfc74426ec38029cc73.zip |
Add detailed book page instead of a modal.
Diffstat (limited to 'src/main/scala/reading/models/Period.scala')
-rw-r--r-- | src/main/scala/reading/models/Period.scala | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/scala/reading/models/Period.scala b/src/main/scala/reading/models/Period.scala index f148b4c..c0b663e 100644 --- a/src/main/scala/reading/models/Period.scala +++ b/src/main/scala/reading/models/Period.scala @@ -6,20 +6,20 @@ sealed trait Period extends EnumEntry with Ordered[Period] { import Period._ def compare(that: Period): Int = - values.indexOf(that) - values.indexOf(this) + values.indexOf(this) - values.indexOf(that) def prettyPrint(): String = this match { - case Antiquite => "Antiquité" - case MoyenAge => "Moyen âge" - case Renaissance => "Renaissance" - case Lumieres => "Lumières" - case Louis14 => "Louis XIV" + case Antiquite => "antiquité" + case MoyenAge => "moyen âge" + case Renaissance => "renaissance" + case Lumieres => "lumières" + case Louis14 => "louis XIV" case Siecle18 => "18ème siècle" case Siecle19 => "19ème siècle" case Siecle20 => "20ème siècle" case Annees50 => "années 50" case Contemporain => "contemporain" - case Futur => "Futur" + case Futur => "futur" } } |