| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,11 +11,11 @@ import views.html.fragments._ | |||
| 11 | 11 | import views.html.fragments.commercial.pageSkin | |
| 12 | 12 | import views.html.fragments.page.body.{bodyTag, breakingNewsDiv, mainContent, skipToMainContent} | |
| 13 | 13 | import views.html.fragments.page.head.stylesheets.{criticalStyleInline, criticalStyleLink, styles} | |
| 14 | - import views.html.fragments.page.head.{fixIEReferenceErrors, headTag, titleTag, weAreHiring, orielScriptTag} | ||
| 14 | + import views.html.fragments.page.head.{fixIEReferenceErrors, headTag, orielScriptTag, titleTag, weAreHiring} | ||
| 15 | 15 | import views.html.fragments.page.{devTakeShot, htmlTag} | |
| 16 | 16 | import views.html.{newspaperContent, quizAnswerContent} | |
| 17 | 17 | import html.HtmlPageHelpers.ContentCSSFile | |
| 18 | - import conf.switches.Switches.{ WeAreHiring, OrielFullIntegration } | ||
| 18 | + import conf.switches.Switches.WeAreHiring | ||
| 19 | 19 | ||
| 20 | 20 | object ContentHtmlPage extends HtmlPage[Page] { | |
| 21 | 21 | ||
@@ -46,7 +46,7 @@ object ContentHtmlPage extends HtmlPage[Page] { | |||
| 46 | 46 | htmlTag( | |
| 47 | 47 | headTag( | |
| 48 | 48 | weAreHiring() when WeAreHiring.isSwitchedOn, | |
| 49 | - orielScriptTag() when OrielFullIntegration.isSwitchedOn, | ||
| 49 | + orielScriptTag(), | ||
| 50 | 50 | titleTag(), | |
| 51 | 51 | metaData(), | |
| 52 | 52 | styles(allStyles), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | package pages | |
| 2 | 2 | ||
| 3 | 3 | import common.Edition | |
| 4 | - import conf.switches.Switches.{OrielFullIntegration, WeAreHiring} | ||
| 4 | + import conf.switches.Switches.WeAreHiring | ||
| 5 | 5 | import html.{HtmlPage, Styles} | |
| 6 | 6 | import html.HtmlPageHelpers._ | |
| 7 | 7 | import model.{ApplicationContext, GalleryPage, Page} | |
@@ -37,7 +37,7 @@ object GalleryHtmlPage extends HtmlPage[GalleryPage] { | |||
| 37 | 37 | htmlTag( | |
| 38 | 38 | headTag( | |
| 39 | 39 | weAreHiring() when WeAreHiring.isSwitchedOn, | |
| 40 | - orielScriptTag() when OrielFullIntegration.isSwitchedOn, | ||
| 40 | + orielScriptTag(), | ||
| 41 | 41 | titleTag(), | |
| 42 | 42 | metaData(), | |
| 43 | 43 | styles(allStyles), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | package pages | |
| 2 | 2 | ||
| 3 | 3 | import common.Edition | |
| 4 | - import conf.switches.Switches.{OrielFullIntegration, WeAreHiring} | ||
| 4 | + import conf.switches.Switches.WeAreHiring | ||
| 5 | 5 | import html.HtmlPageHelpers._ | |
| 6 | 6 | import html.{HtmlPage, Styles} | |
| 7 | 7 | import model.ApplicationContext | |
@@ -39,7 +39,7 @@ object IndexHtml { | |||
| 39 | 39 | htmlTag( | |
| 40 | 40 | headTag( | |
| 41 | 41 | weAreHiring() when WeAreHiring.isSwitchedOn, | |
| 42 | - orielScriptTag() when OrielFullIntegration.isSwitchedOn, | ||
| 42 | + orielScriptTag(), | ||
| 43 | 43 | titleTag(), | |
| 44 | 44 | metaData(), | |
| 45 | 45 | headContent, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | package pages | |
| 2 | 2 | ||
| 3 | 3 | import common.Edition | |
| 4 | - import conf.switches.Switches.{OrielFullIntegration, WeAreHiring} | ||
| 4 | + import conf.switches.Switches.WeAreHiring | ||
| 5 | 5 | import controllers.InteractivePage | |
| 6 | 6 | import html.{HtmlPage, Styles} | |
| 7 | 7 | import html.HtmlPageHelpers._ | |
@@ -46,7 +46,7 @@ object InteractiveHtmlPage extends HtmlPage[InteractivePage] { | |||
| 46 | 46 | htmlTag( | |
| 47 | 47 | headTag( | |
| 48 | 48 | weAreHiring() when WeAreHiring.isSwitchedOn, | |
| 49 | - orielScriptTag() when OrielFullIntegration.isSwitchedOn, | ||
| 49 | + orielScriptTag(), | ||
| 50 | 50 | titleTag(), | |
| 51 | 51 | metaData(), | |
| 52 | 52 | styles(allStyles), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | package pages | |
| 2 | 2 | ||
| 3 | 3 | import common.Edition | |
| 4 | - import conf.switches.Switches.{OrielFullIntegration, WeAreHiring} | ||
| 4 | + import conf.switches.Switches.WeAreHiring | ||
| 5 | 5 | import html.HtmlPageHelpers._ | |
| 6 | 6 | import html.{HtmlPage, Styles} | |
| 7 | 7 | import model.{ApplicationContext, ContributorsListing, PreferencesMetaData, StandalonePage, SubjectsListing, TagIndexPage} | |
@@ -43,7 +43,7 @@ object TagIndexHtmlPage extends HtmlPage[StandalonePage] { | |||
| 43 | 43 | htmlTag( | |
| 44 | 44 | headTag( | |
| 45 | 45 | weAreHiring() when WeAreHiring.isSwitchedOn, | |
| 46 | - orielScriptTag() when OrielFullIntegration.isSwitchedOn, | ||
| 46 | + orielScriptTag(), | ||
| 47 | 47 | titleTag(), | |
| 48 | 48 | metaData(), | |
| 49 | 49 | styles(allStyles), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,7 +42,7 @@ object StoryHtmlPage { | |||
| 42 | 42 | htmlTag( | |
| 43 | 43 | headTag( | |
| 44 | 44 | weAreHiring() when WeAreHiring.isSwitchedOn, | |
| 45 | - orielScriptTag() when OrielFullIntegration.isSwitchedOn, | ||
| 45 | + orielScriptTag(), | ||
| 46 | 46 | lotameScriptTag() when ActiveExperiments.isParticipating(LotameParticipation), | |
| 47 | 47 | titleTag(), | |
| 48 | 48 | metaData(), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -317,16 +317,6 @@ trait CommercialSwitches { | |||
| 317 | 317 | exposeClientSide = false | |
| 318 | 318 | ) | |
| 319 | 319 | ||
| 320 | - val OrielFullIntegration: Switch = Switch( | ||
| 321 | - group = Commercial, | ||
| 322 | - name = "oriel-full-integration", | ||
| 323 | - description = "Include a tag dropped at the start of <head> for full Oriel integration", | ||
| 324 | - owners = group(Commercial), | ||
| 325 | - safeState = Off, | ||
| 326 | - sellByDate = new LocalDate(2018, 6, 28), | ||
| 327 | - exposeClientSide = false | ||
| 328 | - ) | ||
| 329 | - | ||
| 330 | 320 | val BlockthroughSwitch: Switch = Switch( | |
| 331 | 321 | group = Commercial, | |
| 332 | 322 | name = "blockthrough", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,16 +2,19 @@ | |||
| 2 | 2 | ||
| 3 | 3 | @import conf.Configuration | |
| 4 | 4 | @import experiments.{ ActiveExperiments, OrielParticipation } | |
| 5 | + @import conf.switches.Switches.OrielAnalyticsSwitch | ||
| 5 | 6 | ||
| 6 | 7 | @if( | |
| 7 | 8 | Configuration.environment.isProd && | |
| 8 | - ActiveExperiments.isParticipating(OrielParticipation) | ||
| 9 | + OrielAnalyticsSwitch.isSwitchedOn && | ||
| 10 | + !ActiveExperiments.isParticipating(OrielParticipation) | ||
| 9 | 11 | ) { | |
| 10 | 12 | <script async type="text/javascript" src="//f92j5.com/bilezg79cncj63usndtoa8igmvoritwjei5.js"></script> | |
| 11 | 13 | } else { | |
| 12 | 14 | @if( | |
| 13 | 15 | Configuration.environment.isCode && | |
| 14 | - ActiveExperiments.isParticipating(OrielParticipation) | ||
| 16 | + OrielAnalyticsSwitch.isSwitchedOn && | ||
| 17 | + !ActiveExperiments.isParticipating(OrielParticipation) | ||
| 15 | 18 | ) { | |
| 16 | 19 | <script async type="text/javascript" src="//f92j5.com/ejihwhhs1nv430sy6u4d51elu49.js"></script> | |
| 17 | 20 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ | |||
| 7 | 7 | @f | |
| 8 | 8 | } | |
| 9 | 9 | ||
| 10 | - @if(OrielAnalyticsSwitch.isSwitchedOn) { | ||
| 10 | + @if(OrielAnalyticsSwitch.isSwitchedOn && ) { | ||
| 11 | 11 | @views.html.fragments.commercial.orielAnalytics() | |
| 12 | 12 | } | |
| 13 | 13 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | package pages | |
| 2 | 2 | ||
| 3 | 3 | import common.Edition | |
| 4 | - import conf.switches.Switches.{OrielFullIntegration, WeAreHiring} | ||
| 4 | + import conf.switches.Switches.WeAreHiring | ||
| 5 | 5 | import html.{HtmlPage, Styles} | |
| 6 | 6 | import html.HtmlPageHelpers._ | |
| 7 | 7 | import model.{ApplicationContext, PressedPage} | |
@@ -45,7 +45,7 @@ object FrontHtmlPage extends HtmlPage[PressedPage] { | |||
| 45 | 45 | htmlTag( | |
| 46 | 46 | headTag( | |
| 47 | 47 | weAreHiring() when WeAreHiring.isSwitchedOn, | |
| 48 | - orielScriptTag() when OrielFullIntegration.isSwitchedOn, | ||
| 48 | + orielScriptTag(), | ||
| 49 | 49 | titleTag(), | |
| 50 | 50 | metaData(), | |
| 51 | 51 | frontMeta(), | |
| Back | FazBrowse Home | New Git URL |
0 commit comments