Digest config (#20834)
This commit is contained in:
parent
0d873a4554
commit
35848e4582
4 changed files with 11 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue