Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add europe navlinks #27622

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion common/app/common/editions/Europe.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ object Europe
locale = None,
networkFrontId = "europe",
editionalisedSections = Seq(""), // only the home page
navigationLinks = International.navigationLinks,
navigationLinks = EditionNavLinks(
NavLinks.eurNewsPillar,
NavLinks.eurOpinionPillar,
NavLinks.eurSportPillar,
NavLinks.eurCulturePillar,
NavLinks.eurLifestylePillar,
NavLinks.eurOtherLinks,
NavLinks.eurBrandExtensions,
),
) {

implicit val EUR: Europe.type = Europe
Expand Down
85 changes: 85 additions & 0 deletions common/app/navigation/NavLinks.scala
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,22 @@ object NavLinks {
obituaries,
),
)
val eurNewsPillar = ukNewsPillar.copy(
children = List(
world,
usElections2024,
ukNews,
climateCrisis,
ukraine,
ukEnvironment,
science,
globalDevelopment,
football,
tech,
ukBusiness,
obituaries,
),
)

// Opinion Pillar
val ukOpinionPillar = NavLink(
Expand Down Expand Up @@ -389,6 +405,15 @@ object NavLinks {
letters,
),
)
val eurOpinionPillar = ukOpinionPillar.copy(
children = List(
theGuardianView,
columnists,
cartoons,
opinionVideos,
letters,
),
)

// Sport Pillar
val ukSportPillar = NavLink(
Expand Down Expand Up @@ -449,6 +474,18 @@ object NavLinks {
usSports,
),
)
val eurSportPillar = ukSportPillar.copy(
children = List(
football,
cricket,
rugbyUnion,
tennis,
cycling,
formulaOne,
golf,
usSports,
),
)

// Culture Pillar
val ukCulturePillar = NavLink(
Expand Down Expand Up @@ -503,6 +540,18 @@ object NavLinks {
stage,
),
)
val eurCulturePillar = ukCulturePillar.copy(
children = List(
books,
music,
tvAndRadio,
artAndDesign,
film,
games,
classical,
stage,
),
)

// Lifestyle Pillar
val ukLifestylePillar = NavLink(
Expand Down Expand Up @@ -567,6 +616,21 @@ object NavLinks {
money,
),
)
val eurLifestylePillar = ukLifestylePillar.copy(
children = List(
fashion,
food,
recipes,
loveAndSex,
health,
home,
women,
men,
family,
ukTravel,
money,
),
)

val ukOtherLinks = List(
apps,
Expand Down Expand Up @@ -619,6 +683,20 @@ object NavLinks {
wordiply,
corrections,
)
val eurOtherLinks = List(
apps,
video,
podcasts,
pictures,
newsletters,
todaysPaper,
insideTheGuardian,
observer,
weekly.copy(url = s"${weekly.url}?INTCMP=gdnwb_mawns_editorial_gweekly_GW_TopNav_Int"),
crosswords,
wordiply,
corrections,
)

val ukBrandExtensions = List(
jobs,
Expand Down Expand Up @@ -651,6 +729,13 @@ object NavLinks {
guardianLicensing,
aboutUs,
)
val eurBrandExtensions = List(
jobs,
holidays.copy(url = holidays.url + "?INTCMP=holidays_int_web_newheader"),
digitalNewspaperArchive,
guardianLicensing,
aboutUs,
)

// Tertiary Navigation
// NOTE: content with tags from this list will have the navigation set to the tag in this list, rather than its
Expand Down
Loading