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

Merge pull request #20106 from guardian/audio-player-test-4 · devhttps/frontend@976668f · GitHub

Commit 976668f

Browse files
authored
Merge pull request guardian#20106 from guardian/audio-player-test-4
Audio AB Test 4: new player vs old player with image in optimal position
2 parents 7b9e131 + 7528c16 commit 976668f

4 files changed

Lines changed: 17 additions & 24 deletions

File tree

‎applications/app/views/fragments/audioBody.scala.html‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
<div class="media-primary player">
3737
@media match {
3838
case audio: Audio => {
39+
@audio.elements.images.map{ img =>
40+
@fragments.imageFigure(img.images)
41+
}
42+
3943
<figure data-component="main audio new-player"
4044
id="audio-component-container"
4145
data-media-id="@audio.elements.mainAudio.map{ audioElement => @audioElement.properties.id}"

‎applications/app/views/fragments/mediaBody.scala.html‎

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
@import views.support.Commercial.{isPaidContent, isAdFree}
66
@import views.support.TrailCssClasses.toneClass
77
@import views.support.{RenderClasses, SeoOptimisedContentImage, StripHtmlTags, Video640, Video1280}
8-
@import experiments.{ActiveExperiments, AudioChangeImagePosition}
9-
10-
@ImageBelowPlayer = @{ActiveExperiments.isParticipating(AudioChangeImagePosition)}
118

129
@defining(page.media, page.media match { case _: Audio => "audio" case _ => "video" }) { case (media, mediaType) =>
1310
@defining(isPaidContent(page), isAdFree(request)) { case (isPaidContent, isAdFree) =>
@@ -37,10 +34,8 @@
3734
@media match {
3835
case audio: Audio => {
3936

40-
@if(!ImageBelowPlayer) {
41-
@audio.elements.images.map{ img =>
42-
@fragments.imageFigure(img.images)
43-
}
37+
@audio.elements.images.map{ img =>
38+
@fragments.imageFigure(img.images)
4439
}
4540

4641
<figure data-component="main audio">
@@ -56,14 +51,6 @@
5651
)
5752
}
5853
</figure>
59-
60-
@if(ImageBelowPlayer) {
61-
<figure data-component="image-below">
62-
@audio.elements.images.map{ img =>
63-
@fragments.imageFigure(img.images)
64-
}
65-
</figure>
66-
}
6754
}
6855
case video: Video => {
6956
<figure data-component="main video">

‎common/app/experiments/Experiments.scala‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import play.api.mvc.RequestHeader
77

88
object ActiveExperiments extends ExperimentsDefinition {
99
override val allExperiments: Set[Experiment] = Set(
10-
AudioChangeImagePosition,
1110
AudioPageChange,
1211
CommercialClientLogging,
1312
OrielParticipation,
@@ -46,13 +45,5 @@ object AudioPageChange extends Experiment(
4645
description = "Show a different version of the audio page to certain people",
4746
owners = Owner.group(SwitchGroup.Journalism),
4847
sellByDate = new LocalDate(2018, 8, 20),
49-
participationGroup = Perc0A
50-
)
51-
52-
object AudioChangeImagePosition extends Experiment(
53-
name = "audio-change-image-position",
54-
description = "Test the position of the image on audio pages",
55-
owners = Owner.group(SwitchGroup.Journalism),
56-
sellByDate = new LocalDate(2018, 8, 3),
5748
participationGroup = Perc50
5849
)

‎static/src/stylesheets/module/content-garnett/_media.global.scss‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,22 @@
4545
.content__meta-container {
4646
top: auto;
4747
}
48+
49+
figure.media-content {
50+
padding-left: 10rem;
51+
52+
margin-bottom: 0;
53+
padding-bottom: 6px;
54+
background-color: #121212;
55+
}
4856
}
4957
@media (min-width: 81.25em) {
5058
.player {
5159
margin-left: -15rem;
5260
}
61+
figure.media-content {
62+
padding-left: 15rem;
63+
}
5364
}
5465

5566
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL