Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Change newsletter tout to Gothamist Daily #126

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/controllers/index.js
Expand Up @@ -9,15 +9,15 @@ import {
TOTAL_COUNT,
} from '../routes/index';

const WTC_ENDPOINT = `${config.apiServer}/opt-in/v1/subscribe/mailchimp`;
const WTC_PARAMS = {list: config.wtcNewsletter};
const NEWSLETTER_ENDPOINT = `${config.apiServer}/opt-in/v1/subscribe/mailchimp`;
const NEWSLETTER_PARAMS = {list: config.dailyNewsletter};

export default Controller.extend({
GROUP_SIZE,
TOTAL_COUNT,

WTC_ENDPOINT,
WTC_PARAMS,
NEWSLETTER_ENDPOINT,
NEWSLETTER_PARAMS,

init() {
this._super(...arguments);
Expand Down
17 changes: 7 additions & 10 deletions app/templates/index.hbs
Expand Up @@ -48,25 +48,22 @@

<div class="l-container l-container--14col">
<NyprONewsletterTout
@endpoint={{WTC_ENDPOINT}}
@params={{WTC_PARAMS}}
@ariaTitle="We the Commuters"
@endpoint={{NEWSLETTER_ENDPOINT}}
@params={{NEWSLETTER_PARAMS}}
@ariaTitle="Gothamist Daily"
@img={{hash
src='/static-images/wtc.png'
src='/static-images/gothamist-logo-white.png'
alt=''
}}
as |tout|>

<tout.heading>
{{#link-to 'tags' 'wethecommuters'}}
We the Commuters: Comprehensive Coverage of Transportation in our Region from WNYC, Gothamist and More.
{{/link-to}}
Gothamist Daily
</tout.heading>

<tout.blurb>
{{#link-to 'tags' 'wethecommuters'}}
Sign up to receive the weekly newsletter
{{/link-to}}
Sign up to get the Gothamist Daily newsletter in your inbox, with a
selection of our best stories every day at 5pm.
</tout.blurb>

<tout.legal/>
Expand Down
Binary file added public/static-images/gothamist-logo-white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.