| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cbf6e0c commit da1e5ba
52 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,17 +16,12 @@ import views.html.fragments.page.{devTakeShot, htmlTag} | |||
| 16 | 16 | import views.html.{newspaperContent, quizAnswerContent} | |
| 17 | 17 | import html.HtmlPageHelpers.ContentCSSFile | |
| 18 | 18 | import conf.switches.Switches.WeAreHiring | |
| 19 | - import views.html.stacked | ||
| 20 | 19 | ||
| 21 | 20 | object ContentHtmlPage extends HtmlPage[Page] { | |
| 22 | 21 | ||
| 23 | 22 | def allStyles(implicit applicationContext: ApplicationContext, request: RequestHeader): Styles = new Styles { | |
| 24 | - override def criticalCssLink: Html = stacked( | ||
| 25 | - criticalStyleLink(ContentCSSFile), | ||
| 26 | - criticalStyleLink(InlineNavigationCSSFile)) | ||
| 27 | - override def criticalCssInline: Html = criticalStyleInline( | ||
| 28 | - Html(common.Assets.css.head(None)), | ||
| 29 | - Html(common.Assets.css.inlineNavigation)) | ||
| 23 | + override def criticalCssLink: Html = criticalStyleLink(ContentCSSFile) | ||
| 24 | + override def criticalCssInline: Html = criticalStyleInline(Html(common.Assets.css.head(None))) | ||
| 30 | 25 | override def linkCss: Html = stylesheetLink(s"stylesheets/$ContentCSSFile.css") | |
| 31 | 26 | override def oldIECriticalCss: Html = stylesheetLink(s"stylesheets/old-ie.head.$ContentCSSFile.css") | |
| 32 | 27 | override def oldIELinkCss: Html = stylesheetLink(s"stylesheets/old-ie.$ContentCSSFile.css") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,17 +16,12 @@ import views.html.fragments.page.head.stylesheets.{criticalStyleInline, critical | |||
| 16 | 16 | import views.html.fragments.page.head.{fixIEReferenceErrors, headTag, titleTag, weAreHiring} | |
| 17 | 17 | import views.html.fragments.page.{devTakeShot, htmlTag} | |
| 18 | 18 | import html.HtmlPageHelpers.ContentCSSFile | |
| 19 | - import views.html.stacked | ||
| 20 | 19 | ||
| 21 | 20 | object CrosswordHtmlPage extends HtmlPage[CrosswordPage] { | |
| 22 | 21 | ||
| 23 | 22 | def allStyles(implicit applicationContext: ApplicationContext, request: RequestHeader): Styles = new Styles { | |
| 24 | - override def criticalCssLink: Html = stacked( | ||
| 25 | - criticalStyleLink(ContentCSSFile), | ||
| 26 | - criticalStyleLink(InlineNavigationCSSFile)) | ||
| 27 | - override def criticalCssInline: Html = criticalStyleInline( | ||
| 28 | - Html(common.Assets.css.head(None)), | ||
| 29 | - Html(common.Assets.css.inlineNavigation)) | ||
| 23 | + override def criticalCssLink: Html = criticalStyleLink(ContentCSSFile) | ||
| 24 | + override def criticalCssInline: Html = criticalStyleInline(Html(common.Assets.css.head(None))) | ||
| 30 | 25 | override def linkCss: Html = stylesheetLink(s"stylesheets/$ContentCSSFile.css", true) | |
| 31 | 26 | override def oldIECriticalCss: Html = stylesheetLink(s"stylesheets/old-ie.head.$ContentCSSFile.css", true) | |
| 32 | 27 | override def oldIELinkCss: Html = stylesheetLink(s"stylesheets/old-ie.$ContentCSSFile.css", true) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,17 +14,12 @@ import views.html.fragments.page.head.stylesheets.{criticalStyleInline, critical | |||
| 14 | 14 | import views.html.fragments.page.{devTakeShot, htmlTag} | |
| 15 | 15 | import views.html.fragments._ | |
| 16 | 16 | import html.HtmlPageHelpers.ContentCSSFile | |
| 17 | - import views.html.stacked | ||
| 18 | 17 | ||
| 19 | 18 | object GalleryHtmlPage extends HtmlPage[GalleryPage] { | |
| 20 | 19 | ||
| 21 | 20 | def allStyles(implicit applicationContext: ApplicationContext, request: RequestHeader): Styles = new Styles { | |
| 22 | - override def criticalCssLink: Html = stacked( | ||
| 23 | - criticalStyleLink(ContentCSSFile), | ||
| 24 | - criticalStyleLink(InlineNavigationCSSFile)) | ||
| 25 | - override def criticalCssInline: Html = criticalStyleInline( | ||
| 26 | - Html(common.Assets.css.head(None)), | ||
| 27 | - Html(common.Assets.css.inlineNavigation)) | ||
| 21 | + override def criticalCssLink: Html = criticalStyleLink(ContentCSSFile) | ||
| 22 | + override def criticalCssInline: Html = criticalStyleInline(Html(common.Assets.css.head(None))) | ||
| 28 | 23 | override def linkCss: Html = stylesheetLink(s"stylesheets/$ContentCSSFile.css") | |
| 29 | 24 | override def oldIECriticalCss: Html = stylesheetLink(s"stylesheets/old-ie.head.$ContentCSSFile.css") | |
| 30 | 25 | override def oldIELinkCss: Html = stylesheetLink(s"stylesheets/old-ie.$ContentCSSFile.css") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,17 +17,12 @@ import views.html.fragments.page.head.stylesheets.{criticalStyleInline, critical | |||
| 17 | 17 | import views.html.fragments.page.head.{fixIEReferenceErrors, headTag, titleTag, weAreHiring} | |
| 18 | 18 | import views.html.fragments.page.{devTakeShot, htmlTag} | |
| 19 | 19 | import html.HtmlPageHelpers.ContentCSSFile | |
| 20 | - import views.html.stacked | ||
| 21 | 20 | ||
| 22 | 21 | object IndexHtml { | |
| 23 | 22 | ||
| 24 | 23 | def allStyles(implicit applicationContext: ApplicationContext, request: RequestHeader): Styles = new Styles { | |
| 25 | - override def criticalCssLink: Html = stacked( | ||
| 26 | - criticalStyleLink(FaciaCSSFile), | ||
| 27 | - criticalStyleLink(InlineNavigationCSSFile)) | ||
| 28 | - override def criticalCssInline: Html = criticalStyleInline( | ||
| 29 | - Html(common.Assets.css.head(Some("facia"))), | ||
| 30 | - Html(common.Assets.css.inlineNavigation)) | ||
| 24 | + override def criticalCssLink: Html = criticalStyleLink(FaciaCSSFile) | ||
| 25 | + override def criticalCssInline: Html = criticalStyleInline(Html(common.Assets.css.head(Some("facia")))) | ||
| 31 | 26 | override def linkCss: Html = stylesheetLink(s"stylesheets/$FaciaCSSFile.css") | |
| 32 | 27 | override def oldIECriticalCss: Html = stylesheetLink(s"stylesheets/old-ie.head.$FaciaCSSFile.css") | |
| 33 | 28 | override def oldIELinkCss: Html = stylesheetLink(s"stylesheets/old-ie.$ContentCSSFile.css") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,13 +22,11 @@ object InteractiveHtmlPage extends HtmlPage[InteractivePage] { | |||
| 22 | 22 | def allStyles(implicit applicationContext: ApplicationContext, request: RequestHeader): Styles = new Styles { | |
| 23 | 23 | override def criticalCssLink: Html = stacked( | |
| 24 | 24 | criticalStyleLink(ContentCSSFile), | |
| 25 | - criticalStyleLink("interactive"), | ||
| 26 | - criticalStyleLink(InlineNavigationCSSFile) | ||
| 25 | + criticalStyleLink("interactive") | ||
| 27 | 26 | ) | |
| 28 | 27 | override def criticalCssInline: Html = criticalStyleInline( | |
| 29 | 28 | Html(common.Assets.css.head(None)), | |
| 30 | - Html(common.Assets.css.interactive), | ||
| 31 | - Html(common.Assets.css.inlineNavigation) | ||
| 29 | + Html(common.Assets.css.interactive) | ||
| 32 | 30 | ) | |
| 33 | 31 | override def linkCss: Html = stylesheetLink(s"stylesheets/$ContentCSSFile.css") | |
| 34 | 32 | override def oldIECriticalCss: Html = stylesheetLink(s"stylesheets/old-ie.head.$ContentCSSFile.css") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,17 +15,12 @@ import views.html.fragments.page.head.{fixIEReferenceErrors, headTag, titleTag, | |||
| 15 | 15 | import views.html.fragments.page.{devTakeShot, htmlTag} | |
| 16 | 16 | import views.html.signup.newsletterContent | |
| 17 | 17 | import html.HtmlPageHelpers.ContentCSSFile | |
| 18 | - import views.html.stacked | ||
| 19 | 18 | ||
| 20 | 19 | object NewsletterHtmlPage extends HtmlPage[SimplePage] { | |
| 21 | 20 | ||
| 22 | 21 | def allStyles(implicit applicationContext: ApplicationContext, request: RequestHeader): Styles = new Styles { | |
| 23 | - override def criticalCssLink: Html = stacked( | ||
| 24 | - criticalStyleLink(ContentCSSFile), | ||
| 25 | - criticalStyleLink(InlineNavigationCSSFile)) | ||
| 26 | - override def criticalCssInline: Html = criticalStyleInline( | ||
| 27 | - Html(common.Assets.css.head(Some("signup"))), | ||
| 28 | - Html(common.Assets.css.inlineNavigation)) | ||
| 22 | + override def criticalCssLink: Html = criticalStyleLink(ContentCSSFile) | ||
| 23 | + override def criticalCssInline: Html = criticalStyleInline(Html(common.Assets.css.head(Some("signup")))) | ||
| 29 | 24 | override def linkCss: Html = stylesheetLink(s"stylesheets/$ContentCSSFile.css") | |
| 30 | 25 | override def oldIECriticalCss: Html = stylesheetLink(s"stylesheets/old-ie.head.$ContentCSSFile.css") | |
| 31 | 26 | override def oldIELinkCss: Html = stylesheetLink(s"stylesheets/old-ie.$ContentCSSFile.css") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,17 +15,12 @@ import views.html.fragments.page.head.{fixIEReferenceErrors, headTag, titleTag, | |||
| 15 | 15 | import views.html.fragments.page.{devTakeShot, htmlTag} | |
| 16 | 16 | import views.html.preferences.index | |
| 17 | 17 | import html.HtmlPageHelpers.ContentCSSFile | |
| 18 | - import views.html.stacked | ||
| 19 | 18 | ||
| 20 | 19 | object TagIndexHtmlPage extends HtmlPage[StandalonePage] { | |
| 21 | 20 | ||
| 22 | 21 | def allStyles(implicit applicationContext: ApplicationContext, request: RequestHeader): Styles = new Styles { | |
| 23 | - override def criticalCssLink: Html = stacked( | ||
| 24 | - criticalStyleLink("index"), | ||
| 25 | - criticalStyleLink(InlineNavigationCSSFile)) | ||
| 26 | - override def criticalCssInline: Html = criticalStyleInline( | ||
| 27 | - Html(common.Assets.css.head(Some("index"))), | ||
| 28 | - Html(common.Assets.css.inlineNavigation)) | ||
| 22 | + override def criticalCssLink: Html = criticalStyleLink("index") | ||
| 23 | + override def criticalCssInline: Html = criticalStyleInline(Html(common.Assets.css.head(Some("index")))) | ||
| 29 | 24 | override def linkCss: Html = stylesheetLink(s"stylesheets/$ContentCSSFile.css") | |
| 30 | 25 | override def oldIECriticalCss: Html = stylesheetLink("stylesheets/old-ie.head.index.css") | |
| 31 | 26 | override def oldIELinkCss: Html = stylesheetLink(s"stylesheets/old-ie.$ContentCSSFile.css") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,17 +14,12 @@ import views.html.fragments.page.body._ | |||
| 14 | 14 | import views.html.fragments.page.head.stylesheets.{criticalStyleInline, criticalStyleLink, styles} | |
| 15 | 15 | import views.html.fragments.page.head.{fixIEReferenceErrors, headTag, titleTag, weAreHiring} | |
| 16 | 16 | import html.HtmlPageHelpers.ContentCSSFile | |
| 17 | - import views.html.stacked | ||
| 18 | 17 | ||
| 19 | 18 | object StoryHtmlPage { | |
| 20 | 19 | ||
| 21 | 20 | def allStyles(implicit applicationContext: ApplicationContext, request: RequestHeader): Styles = new Styles { | |
| 22 | - override def criticalCssLink: Html = stacked( | ||
| 23 | - criticalStyleLink(ContentCSSFile), | ||
| 24 | - criticalStyleLink(InlineNavigationCSSFile)) | ||
| 25 | - override def criticalCssInline: Html = criticalStyleInline( | ||
| 26 | - Html(common.Assets.css.head(None)), | ||
| 27 | - Html(common.Assets.css.inlineNavigation)) | ||
| 21 | + override def criticalCssLink: Html = criticalStyleLink(ContentCSSFile) | ||
| 22 | + override def criticalCssInline: Html = criticalStyleInline(Html(common.Assets.css.head(None))) | ||
| 28 | 23 | override def linkCss: Html = stylesheetLink(s"stylesheets/$ContentCSSFile.css") | |
| 29 | 24 | override def oldIECriticalCss: Html = stylesheetLink(s"stylesheets/old-ie.head.$ContentCSSFile.css") | |
| 30 | 25 | override def oldIELinkCss: Html = stylesheetLink(s"stylesheets/old-ie.$ContentCSSFile.css") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,6 @@ import java.nio.charset.Charset | |||
| 4 | 4 | ||
| 5 | 5 | import common.{Logging, RelativePathEscaper} | |
| 6 | 6 | import conf.Configuration | |
| 7 | - import experiments.{ActiveExperiments, GarnettHeader} | ||
| 8 | 7 | import model.ApplicationContext | |
| 9 | 8 | import org.apache.commons.io.IOUtils | |
| 10 | 9 | import play.api.libs.json._ | |
@@ -59,7 +58,6 @@ object css { | |||
| 59 | 58 | private val memoizedCss: ConcurrentMap[String, Try[String]] = TrieMap() | |
| 60 | 59 | ||
| 61 | 60 | def head(projectOverride: Option[String])(implicit context: ApplicationContext, request: RequestHeader): String = inline(cssHead(projectOverride.getOrElse(context.applicationIdentity.name))) | |
| 62 | - def inlineNavigation(implicit request: RequestHeader, context: ApplicationContext): String = if (ActiveExperiments.isParticipating(GarnettHeader)) inline("head.navigation.garnett") else inline("head.navigation") | ||
| 63 | 61 | def inlineIdentity(implicit request: RequestHeader, context: ApplicationContext): String = inline("head.identity") | |
| 64 | 62 | def inlineStoryPackage(implicit context: ApplicationContext): String = inline("story-package") | |
| 65 | 63 | def inlineStoryPackageGarnett(implicit context: ApplicationContext): String = inline("story-package-garnett") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,6 @@ object ActiveExperiments extends ExperimentsDefinition { | |||
| 13 | 13 | CommercialClientLogging, | |
| 14 | 14 | CommercialPaidContentTemplate, | |
| 15 | 15 | CommercialBaseline, | |
| 16 | - GarnettHeader, | ||
| 17 | 16 | Garnett, | |
| 18 | 17 | HideShowMoreButtonExperiment, | |
| 19 | 18 | Prebid | |
@@ -61,17 +60,6 @@ object CommercialBaseline extends Experiment( | |||
| 61 | 60 | participationGroup = Perc2B | |
| 62 | 61 | ) | |
| 63 | 62 | ||
| 64 | - | ||
| 65 | - object GarnettHeader extends Experiment( | ||
| 66 | - name = "garnett-header", | ||
| 67 | - description = "Users in this experiment will see the new desktop design, but with garnett styling", | ||
| 68 | - owners = Seq(Owner.withGithub("natalialkb"), Owner.withGithub("zeftilldeath")), | ||
| 69 | - sellByDate = new LocalDate(2018, 2, 1), | ||
| 70 | - participationGroup = Perc0A | ||
| 71 | - ) { | ||
| 72 | - override def isParticipating[A](implicit request: RequestHeader, canCheck: CanCheckExperiment): Boolean = true | ||
| 73 | - } | ||
| 74 | - | ||
| 75 | 63 | object Garnett extends Experiment( | |
| 76 | 64 | name = "garnett", | |
| 77 | 65 | description = "Users in this experiment will see garnet styling.", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments