* feat: make the from in the email to be dynamic * feat: hardcoded mailer dev.to * feat: oops hardcoded email addresses in the terms * chore: remove some whitespace * update editor guide * feat: new reply email * feat: new message mailer * feat: new follower email * feat: capitalize the button * feat: rename the link * feat: capitalize the button * feat: generalize the urls * feat: generalise the url * feat: dynamic DEV * feat: update the specs * feat: DEV digest generalisation part 1 * fix: the method is accessed by tag_url and so the default parameter needs to be set at this level and not at self.tag * fix: use the tag model instance instead of passing through just the tag name (so that we can use tag_url) * chore: make code climate happy * chore: more robocop * feat: add a default url back for self.tag * test: fix the feedback helper spec * fix: spec to be general * fix: oops :( * refactor: user_settings_path * chore: use code_of_conduct_path * chore: robocop * chore: use connect path * chore; use the notifications symbol * chore: misc path * feat: simplify url * feat/fix: change the order of the helpers and use user_url * chore: user_url * capitalise * chore: update article path
14 lines
846 B
Text
14 lines
846 B
Text
<% num_followers_past_days = Follow.followable_user(@user.id).where("created_at > ?", 24.hours.ago).size %>
|
|
|
|
<% if num_followers_past_days.positive? %>
|
|
<h3 style="font-weight:600;font-size:0.95em;color:#3ac1b4">You have <%= num_followers_past_days %> new <%= community_name %> followers in the past day!</h3>
|
|
<% end %>
|
|
|
|
<h2 style="font-size:32px;">
|
|
<a href="<%= user_url(@follower) %>"><%= @follower.name %></a> just followed you 🤗</h2>
|
|
<h3 style="font-weight:600">You now have <%= pluralize(@user.followers_count, "total follower") %>. See all of your recent followers
|
|
<a href="<%= app_url("/dashboard/user_followers") %>">right here</a>.</h3>
|
|
<p>
|
|
When someone follows you on
|
|
<a href="<%= app_url %>"><%= community_name %></a>, your posts will be prioritized in their feed and notifications. The perks of popularity I suppose.
|
|
</p>
|