FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update football page headings. · devhttps/frontend@307b8b2 · GitHub

Commit 307b8b2

Browse files
committed
Update football page headings.
1 parent bf38813 commit 307b8b2

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎sport/app/football/model/matches.scala‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ trait MatchesList extends Football with RichList with implicits.Collections {
6565
val nextMatchDate = matchDates.takeWhile(dateComesFirstInList(_, date)).lastOption
6666
nextMatchDate.map(s"$baseUrl/" + _.toString("yyyy/MMM/dd"))
6767
}
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+
}
6878
}
6979

7080
trait Fixtures extends MatchesList {

‎sport/app/football/views/matchList/matchesPage.scala.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div class="gs-container">
1616
<div class="content__main-column">
1717
<h2 class="hide-on-mobile-if-localnav content__inline-section page-type--football">
18-
@matchesList.pageType
18+
@matchesList.getPageTitle
1919
</h2>
2020

2121
<div class="page-sponsor--football">

‎sport/app/football/views/tablesList/tablesPage.scala.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="gs-container">
1111
<div class="content__main-column">
1212
<@if(!page.singleCompetition){h1}else{h2} class="hide-on-mobile-if-localnav content__inline-section page-heading--football">
13-
tables
13+
Football Tables
1414
</@if(!page.singleCompetition){h1}else{h2}>
1515

1616
@football.views.html.fragments.leagueSelector(page.filters, "tables", page.comp)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL