| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,7 @@ object KeyEventData { | |||
| 22 | 22 | val bodyBlocks = (latestSummary.toSeq ++ keyEvents).sortBy(_.lastModifiedDate.getOrElse(new DateTime(0)).toInstant.getMillis).reverse.take(TimelineMaxEntries) | |
| 23 | 23 | ||
| 24 | 24 | bodyBlocks.map { bodyBlock => | |
| 25 | - KeyEventData(bodyBlock.id, bodyBlock.publishedDate.map(LiveBlogDate(_, timezone)), bodyBlock.title) | ||
| 25 | + KeyEventData(bodyBlock.id, bodyBlock.publishedCreatedDate(timezone), bodyBlock.title) | ||
| 26 | 26 | } | |
| 27 | 27 | } | |
| 28 | 28 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,8 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | 3 | @(date: Option[LiveBlogDate]) | |
| 4 | 4 | ||
| 5 | - @date.map { case LiveBlogDate(publishedDate, hhmm, ampm, gmt) => | ||
| 6 | - <time datetime="@publishedDate" data-relativeformat="med" class=" js-timestamp" itemprop="datePublished">@ampm <span class="timezone">@gmt</span></time> | ||
| 5 | + @date.map { case LiveBlogDate(createdDate, hhmm, ampm, gmt) => | ||
| 6 | + <time datetime="@createdDate" data-relativeformat="med" class=" js-timestamp" itemprop="datePublished">@ampm <span class="timezone">@gmt</span></time> | ||
| 7 | 7 | <span class="block-time__absolute">@hhmm</span> | |
| 8 | 8 | } | |
| 9 | 9 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,11 +35,11 @@ | |||
| 35 | 35 | <p class="block-time published-time"> | |
| 36 | 36 | @if(amp){ | |
| 37 | 37 | <a href="@LinkTo{/@article.metadata.id?page=with:block-@block.id#block-@block.id}" itemprop="url" class="block-time__link"> | |
| 38 | - @views.html.liveblog.dateBlock(block.publishedDate.map(LiveBlogDate(_, timezone))) | ||
| 38 | + @views.html.liveblog.dateBlock(block.publishedCreatedDate(timezone)) | ||
| 39 | 39 | </a> | |
| 40 | 40 | } else { | |
| 41 | 41 | <a href="/@article.metadata.id?page=with:block-@block.id#block-@block.id" itemprop="url" class="block-time__link"> | |
| 42 | - @views.html.liveblog.dateBlock(block.publishedDate.map(LiveBlogDate(_, timezone))) | ||
| 42 | + @views.html.liveblog.dateBlock(block.publishedCreatedDate(timezone)) | ||
| 43 | 43 | </a> | |
| 44 | 44 | } | |
| 45 | 45 | </p> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -128,6 +128,8 @@ object BlockAttributes { | |||
| 128 | 128 | new BlockAttributes(blockAttributes.keyEvent.getOrElse(false), blockAttributes.summary.getOrElse(false), blockAttributes.membershipPlaceholder.map(mp => MembershipPlaceholder(mp.campaignCode))) | |
| 129 | 129 | ||
| 130 | 130 | implicit val blockAttributes: Writes[BlockAttributes] = Json.writes[BlockAttributes] | |
| 131 | + | ||
| 132 | + | ||
| 131 | 133 | } | |
| 132 | 134 | ||
| 133 | 135 | case class BlockAttributes(keyEvent: Boolean, summary: Boolean, membershipPlaceholder: Option[MembershipPlaceholder]) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments