diff --git a/handbook/company/testimonials.yml b/handbook/company/testimonials.yml index 227a42f16d..ed03143f9f 100644 --- a/handbook/company/testimonials.yml +++ b/handbook/company/testimonials.yml @@ -71,7 +71,7 @@ quoteAuthorJobTitle: Staff CPE at Stripe productCategories: [Endpoint operations, Device management] - - quote: Fleet’s come a long way - to now being the top open-source osquery manager. Just in the past 6 months. + quote: Fleet’s come a long way - to now being the top open-source osquery manager. quoteImageFilename: social-proof-logo-atlassian-192x32@2x.png quoteLinkUrl: https://www.linkedin.com/in/bshak/ quoteAuthorName: Brendan Shaklovitz diff --git a/website/api/controllers/view-endpoint-ops.js b/website/api/controllers/view-endpoint-ops.js index e67c72cdce..c9a860a64f 100644 --- a/website/api/controllers/view-endpoint-ops.js +++ b/website/api/controllers/view-endpoint-ops.js @@ -23,13 +23,19 @@ module.exports = { // Get testimonials for the component. let testimonialsForScrollableTweets = _.clone(sails.config.builtStaticContent.testimonials); - // Filter the testimonials by product category - testimonialsForScrollableTweets = _.filter(testimonialsForScrollableTweets, (testimonial)=>{ - return _.contains(testimonial.productCategories, 'Endpoint operations'); - }); // Specify an order for the testimonials on this page using the last names of quote authors - let testimonialOrderForThisPage = ['Charles Zaffery','Dan Grzelak','Nico Waisman','Tom Larkin','Austin Anderson','Erik Gomez','Nick Fohs','Brendan Shaklovitz','Mike Arpaia','Andre Shields','Dhruv Majumdar','Ahmed Elshaer','Abubakar Yousafzai','Harrison Ravazzolo','Wes Whetstone','Kenny Botelho', 'Chandra Majumdar']; + let testimonialOrderForThisPage = ['Charles Zaffery','Dan Grzelak','Nico Waisman','Tom Larkin','Austin Anderson','Erik Gomez','Nick Fohs','Brendan Shaklovitz','Mike Arpaia','Andre Shields','Dhruv Majumdar','Ahmed Elshaer','Abubakar Yousafzai','Harrison Ravazzolo','Wes Whetstone','Kenny Botelho', 'Chandra Majumdar','Eric Tan']; + if(this.req.session.primaryBuyingSituation === 'eo-it'){ + testimonialOrderForThisPage = ['Eric Tan', 'Tom Larkin', 'Nick Fohs', 'Harrison Ravazzolo', 'Wes Whetstone', 'Chandra Majumdar', 'Erik Gomez', 'Mike Arpaia', 'Kenny Botelho']; + } else if(this.req.session.primaryBuyingSituation === 'eo-security'){ + testimonialOrderForThisPage = ['Nico Waisman','Charles Zaffery','Abubakar Yousafzai','Eric Tan','Mike Arpaia','Chandra Majumdar','Ahmed Elshaer','Brendan Shaklovitz','Austin Anderson','Dan Grzelak','Dhruv Majumdar']; + } + // Filter the testimonials by product category and the filtered list we built above. + testimonialsForScrollableTweets = _.filter(testimonialsForScrollableTweets, (testimonial)=>{ + return _.contains(testimonial.productCategories, 'Endpoint operations') && _.contains(testimonialOrderForThisPage, testimonial.quoteAuthorName); + }); + testimonialsForScrollableTweets.sort((a, b)=>{ if(testimonialOrderForThisPage.indexOf(a.quoteAuthorName) === -1){ return 1; diff --git a/website/assets/styles/pages/endpoint-ops.less b/website/assets/styles/pages/endpoint-ops.less index fb766e9cd2..410f45c88b 100644 --- a/website/assets/styles/pages/endpoint-ops.less +++ b/website/assets/styles/pages/endpoint-ops.less @@ -242,14 +242,14 @@ &:hover { box-shadow: 0px 4px 16px 0px #E2E4EA; } - &:first-of-type { + &.austin-anderson { background: url('/images/video-testimonial-thumbnail-austin-anderson-223x168@2x.jpg'); background-position: center; background-size: cover; margin-right: 12px; margin-left: 0px; } - &:last-of-type { + &.nick-fohs { background: url('/images/video-testimonial-thumbnail-nick-fohs-223x168@2x.png'); background-position: center; background-size: cover; diff --git a/website/views/pages/endpoint-ops.ejs b/website/views/pages/endpoint-ops.ejs index 30a77b3b97..59b640323c 100644 --- a/website/views/pages/endpoint-ops.ejs +++ b/website/views/pages/endpoint-ops.ejs @@ -71,12 +71,22 @@ <% } %>
-
+ <%if(primaryBuyingSituation === 'eo-security'){%> +
PlayPlay video
-
+ <%} else if(primaryBuyingSituation === 'eo-it') {%> +
PlayPlay video
+ <% } else { %> +
+ PlayPlay video +
+
+ PlayPlay video +
+ <% } %>