added 260907 version of worker toolkit

This commit is contained in:
2026-09-08 20:30:51 -04:00
parent cbd3f0f8ca
commit 97aca37663
1283 changed files with 142951 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<% content_for :body do %>
<div style="width:100%;background-color:#F2EEE8;padding:50px 0;text-align:center;font-family:sans-serif;">
<div style="background-color:#fff;border-radius:5px;padding:30px;width:80%;max-width:500px;margin: 0 auto;box-shadow: 0 4px 0 #E1D8C8;">
<h1><%= I18n.t('checkin_reminder_mailer.subject') %></h1>
<div class="opt_img">
<%= image_tag attachments['optional_email_img.png'].url %>
</div>
<p><%= I18n.t('checkin_reminder_mailer.body.text') %></p>
<%= link_to 'Check In Online', @click_here_link, {:style=> 'background-color:#73C1BA;color:white !important;padding:15px 25px;text-decoration:none;border-radius:4px;margin:10px;display:inline-block'} %>
<p style="color:grey;font-size:14px;">
<%= I18n.t('checkin_reminder_mailer.body.bottom') %>
<%= link_to I18n.t('checkin_reminder_mailer.body.link.unsubscribe'), @unsubscribe_link, { style: 'color:#73C1BA' } %>
</p>
</div>
</div>
<% end %>

View File

@@ -0,0 +1,11 @@
<p><%= t("devise.mailer.invitation_instructions.hello", email: @resource.email) %></p>
<p><%= t("devise.mailer.invitation_instructions.someone_invited_you", url: root_url) %></p>
<p><%= link_to t("devise.mailer.invitation_instructions.accept"), "#{ENV['BASE_URL']}/invitation/#{@token}" %></p>
<% if @resource.invitation_due_at %>
<p><%= t("devise.mailer.invitation_instructions.accept_until", due_date: l(@resource.invitation_due_at, format: :'devise.mailer.invitation_instructions.accept_until_format')) %></p>
<% end %>
<p><%= t("devise.mailer.invitation_instructions.ignore").html_safe %></p>

View File

@@ -0,0 +1,8 @@
<p>Hello <%= @resource.email %>!</p>
<p>Someone has requested a password reset for your account on Flaredown.com. You can do this through the link below.</p>
<p><%= link_to 'Change my password', "#{ENV['BASE_URL']}/password/#{@token}" %></p>
<p>If you didn't request this, please ignore this email.</p>
<p>Don't worry, your password won't change unless you choose to use the link above.</p>

View File

@@ -0,0 +1 @@
<%= yield :body %>

View File

@@ -0,0 +1,16 @@
<% content_for :body do %>
<p>
Latest activity:
<br>
<% @data.each do |post_id, group| %>
<% group.each do |key, value| %>
<%= "#{value} " + "#{key}".pluralize(value) %>
<% end %>
for post:
<%= link_to resource_title(post_id), resource_url(post_id) %>
<br>
<% end %>
</p>
<p>You can <%= link_to 'unsubscribe', @unsubscribe_link %> from email notifications</p>
<% end %>

View File

@@ -0,0 +1,10 @@
<% content_for :body do %>
<h2> Data for current range of dates: <%= "#{@start_date} - #{@end_date}" %></h2>
<% @objects.sort_by {|item| item["_id"]}.each do |obj| %>
<p>Score: <%= obj["score"] %>
Feedback: <%= obj["feedback"] %>
Date: <%= obj["date"].to_date %>
</p>
<% end %>
<% end %>

View File

@@ -0,0 +1,9 @@
<% content_for :body do %>
<h2> Data for current range of dates: <%= "#{@start_date} - #{@end_date}" %></h2>
<% @objects.sort_by {|item| item["_id"]}.each do |obj| %>
<p>Score: <%= obj["_id"] %>
Amount: <%= obj["count"] %>
</p>
<% end %>
<% end %>

View File

@@ -0,0 +1,14 @@
<% content_for :body do %>
<h3>Top Post for you this week</h3>
<% if @top_posts.any? %>
<% @top_posts.each do |post| %>
<h2><%= post.title %></h2>
<p><%= post.body %></p>
<% end %>
<% else %>
There is no top posts for now
<% end %>
<p>You can <%= link_to 'unsubscribe', @unsubscribe_link %> from weekly top posts notifications</p>
<% end %>

View File

@@ -0,0 +1,3 @@
You'll find your Flaredown data attached in .CSV format. We hope it helps!
- The Flaredown Team