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

Commit

Permalink
Change newsletter
Browse files Browse the repository at this point in the history
  • Loading branch information
walsh9 committed Dec 20, 2019
1 parent 81dce77 commit 2eb394c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
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.

0 comments on commit 2eb394c

Please sign in to comment.