| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bf38813 commit 307b8b2
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -65,6 +65,16 @@ trait MatchesList extends Football with RichList with implicits.Collections { | |||
| 65 | 65 | val nextMatchDate = matchDates.takeWhile(dateComesFirstInList(_, date)).lastOption | |
| 66 | 66 | nextMatchDate.map(s"$baseUrl/" + _.toString("yyyy/MMM/dd")) | |
| 67 | 67 | } | |
| 68 | + | ||
| 69 | + def getPageTitle: String = { | ||
| 70 | + pageType match { | ||
| 71 | + case "live" => "Live football scores" | ||
| 72 | + case "matches" => "Football scores" | ||
| 73 | + case "fixtures" => "Football fixtures" | ||
| 74 | + case "results" => "Football results" | ||
| 75 | + case _ => pageType | ||
| 76 | + } | ||
| 77 | + } | ||
| 68 | 78 | } | |
| 69 | 79 | ||
| 70 | 80 | trait Fixtures extends MatchesList { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ | |||
| 15 | 15 | <div class="gs-container"> | |
| 16 | 16 | <div class="content__main-column"> | |
| 17 | 17 | <h2 class="hide-on-mobile-if-localnav content__inline-section page-type--football"> | |
| 18 | - @matchesList.pageType | ||
| 18 | + @matchesList.getPageTitle | ||
| 19 | 19 | </h2> | |
| 20 | 20 | ||
| 21 | 21 | <div class="page-sponsor--football"> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ | |||
| 10 | 10 | <div class="gs-container"> | |
| 11 | 11 | <div class="content__main-column"> | |
| 12 | 12 | <@if(!page.singleCompetition){h1}else{h2} class="hide-on-mobile-if-localnav content__inline-section page-heading--football"> | |
| 13 | - tables | ||
| 13 | + Football Tables | ||
| 14 | 14 | </@if(!page.singleCompetition){h1}else{h2}> | |
| 15 | 15 | ||
| 16 | 16 | @football.views.html.fragments.leagueSelector(page.filters, "tables", page.comp) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments