Skip to content

Commit

Permalink
Merge pull request #27204 from guardian/add-euro-2024-to-navbar
Browse files Browse the repository at this point in the history
Add Euro 2024 to the nav bar
  • Loading branch information
ioannakok authored Jun 7, 2024
2 parents 04dc3b5 + d0d41e4 commit d62cbca
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/app/navigation/NavLinks.scala
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ object NavLinks {

/* SPORT */

private val euro2024 = NavLink("Euro 2024", "football/euro-2024", Some("football/euro-2024"))
private val footballScores = NavLink("Live scores", "/football/live", Some("football/live"))
private val footballTables = NavLink("Tables", "/football/tables", Some("football/tables"))
private val footballFixtures = NavLink("Fixtures", "/football/fixtures", Some("football/fixtures"))
Expand All @@ -123,6 +124,7 @@ object NavLinks {
"Football",
"/football",
children = List(
euro2024,
footballScores,
footballTables,
footballFixtures,
Expand All @@ -135,6 +137,7 @@ object NavLinks {
"Soccer",
"/us/soccer",
children = List(
euro2024,
footballScores,
footballTables,
soccerSchedules,
Expand Down
63 changes: 63 additions & 0 deletions common/test/resources/reference-navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@
"title": "Football",
"url": "/football",
"children": [
{
"title": "Euro 2024",
"url": "football/euro-2024",
"longTitle": "football/euro-2024",
"children": [],
"classList": []
},
{
"title": "Live scores",
"url": "/football/live",
Expand Down Expand Up @@ -448,6 +455,13 @@
"title": "Football",
"url": "/football",
"children": [
{
"title": "Euro 2024",
"url": "football/euro-2024",
"longTitle": "football/euro-2024",
"children": [],
"classList": []
},
{
"title": "Live scores",
"url": "/football/live",
Expand Down Expand Up @@ -1129,6 +1143,13 @@
"title": "Soccer",
"url": "/us/soccer",
"children": [
{
"title": "Euro 2024",
"url": "football/euro-2024",
"longTitle": "football/euro-2024",
"children": [],
"classList": []
},
{
"title": "Live scores",
"url": "/football/live",
Expand Down Expand Up @@ -1281,6 +1302,13 @@
"title": "Soccer",
"url": "/us/soccer",
"children": [
{
"title": "Euro 2024",
"url": "football/euro-2024",
"longTitle": "football/euro-2024",
"children": [],
"classList": []
},
{
"title": "Live scores",
"url": "/football/live",
Expand Down Expand Up @@ -1999,6 +2027,13 @@
"title": "Football",
"url": "/football",
"children": [
{
"title": "Euro 2024",
"url": "football/euro-2024",
"longTitle": "football/euro-2024",
"children": [],
"classList": []
},
{
"title": "Live scores",
"url": "/football/live",
Expand Down Expand Up @@ -2613,6 +2648,13 @@
"title": "Football",
"url": "/football",
"children": [
{
"title": "Euro 2024",
"url": "football/euro-2024",
"longTitle": "football/euro-2024",
"children": [],
"classList": []
},
{
"title": "Live scores",
"url": "/football/live",
Expand Down Expand Up @@ -2802,6 +2844,13 @@
"title": "Football",
"url": "/football",
"children": [
{
"title": "Euro 2024",
"url": "football/euro-2024",
"longTitle": "football/euro-2024",
"children": [],
"classList": []
},
{
"title": "Live scores",
"url": "/football/live",
Expand Down Expand Up @@ -3605,6 +3654,13 @@
"title": "Football",
"url": "/football",
"children": [
{
"title": "Euro 2024",
"url": "football/euro-2024",
"longTitle": "football/euro-2024",
"children": [],
"classList": []
},
{
"title": "Live scores",
"url": "/football/live",
Expand Down Expand Up @@ -3794,6 +3850,13 @@
"title": "Football",
"url": "/football",
"children": [
{
"title": "Euro 2024",
"url": "football/euro-2024",
"longTitle": "football/euro-2024",
"children": [],
"classList": []
},
{
"title": "Live scores",
"url": "/football/live",
Expand Down

0 comments on commit d62cbca

Please sign in to comment.