Skip to content

Commit

Permalink
Dblatcher/2024 olympics email (#27339)
Browse files Browse the repository at this point in the history
* remove old Tokyo2020DailyBriefing ArticleEmailMetadata

* add new banner asset

* make the name match the value in fronts config
  • Loading branch information
dblatcher authored Jul 23, 2024
1 parent d3321eb commit 1a25c1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions common/app/model/EmailAddons.scala
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,6 @@ case object TechScape extends ArticleEmailMetadata {
c.item.tags.series.exists(_.id == "technology/series/techscape")
}

case object Tokyo2020DailyBriefing extends ArticleEmailMetadata {
val name = "Tokyo2020DailyBriefing"
override val banner = Some("tokyo2020-daily-briefing.png")
def test(c: ContentPage): Boolean =
c.item.tags.series.exists(_.id == "sport/series/tokyo-2020-daily-briefing")
}

case object Beijing2022DailyBriefing extends ArticleEmailMetadata {
val name = "Beijing 2022 daily briefing"
override val banner = Some("winter-olympics-2022.png")
Expand Down Expand Up @@ -479,6 +472,11 @@ case object HeadlinesEurope extends FrontEmailMetadata {
override val banner = Some("headlines-eur.png")
}

case object OlympicAndParalympicBriefing extends FrontEmailMetadata {
val name = "Olympics And Paralympics Briefing"
override val banner = Some("paris-2024-olympics.png")
}

object EmailAddons {
val unsubscribePlaceholder = "%%unsub_center_url%%"

Expand Down Expand Up @@ -519,7 +517,6 @@ object EmailAddons {
CoronavirusinThePacific,
USElectionBriefingForAustralia,
TechScape,
Tokyo2020DailyBriefing,
TheGuide,
FiveGreatReads,
Beijing2022DailyBriefing,
Expand Down Expand Up @@ -569,6 +566,7 @@ object EmailAddons {
Documentaries,
AustraliasModernOutback,
HeadlinesEurope,
OlympicAndParalympicBriefing,
)

implicit class EmailContentType(p: Page) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1a25c1d

Please sign in to comment.