Digest config (#20834)

This commit is contained in:
Ben Halpern 2024-04-03 13:22:54 -04:00 committed by GitHub
parent 0d873a4554
commit 35848e4582
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 2 deletions

View file

@ -194,6 +194,12 @@
<%= t("views.moderations.article.approved") %>
</label>
</div>
<div class="crayons-field crayons-field--checkbox">
<%= f.check_box :email_digest_eligible, id: "email_digest_eligible-#{article.id}", class: "crayons-checkbox" %>
<label for="email_digest_eligible-<%= article.id %>" class="crayons-field__label">
<%= t("views.moderations.article.email_digest_eligible") %>
</label>
</div>
</div>
<div>
<button class="c-btn c-btn--secondary"><%= t("views.moderations.article.save") %></button>

View file

@ -1,6 +1,7 @@
# enable tracking for open, click and UTM params
click_tracking_enabled = Rails.env.production? ? ENV["AHOY_EMAIL_CLICK_ON"] == "YES" : true
AhoyEmail.api = false
AhoyEmail.default_options[:click] = Rails.env.production? ? ENV["AHOY_EMAIL_CLICK_ON"] == "YES" : true
AhoyEmail.subscribers << AhoyEmail::MessageSubscriber if click_tracking_enabled
AhoyEmail.default_options[:click] = click_tracking_enabled
AhoyEmail.default_options[:utm_params] = false
AhoyEmail.default_options[:message] = true

View file

@ -148,6 +148,7 @@ en:
latest_html: <strong>Latest</strong> shows all posts in chronological order regardless of whether they have been scrutinized.
article:
approved: Approved
email_digest_eligible: Digest Eligible
author_id: Author ID
comments: comments
contains_video: Contains video

View file

@ -147,6 +147,7 @@ fr:
latest_html: <strong>Récent</strong> montre tous les posts dans l'ordre chronologique, indépendamment de s'ils ont été examinés ou non.
article:
approved: Approuvée
email_digest_eligible: Éligible pour Digest
author_id: Identifiant de l'auteur
comments: commentaires
contains_video: Contient une vidéo