hackatime/app/views/weekly_summary_mailer/weekly_summary.text.erb
Mahad Kalam d5d987a8f4
Email layout v2 (#1015)
* Better emails!

* Fix tests?

* bit o' cleanup

* add rant

* pt2

* pt3

* Update tests

* oop

* man what on earth

* ffs!!!!!

* Revert "ffs!!!!!"

This reverts commit b58bfed0f4c6288e95d0a111aeb3d7d7900ac9e7.

* Revert "man what on earth"

This reverts commit 8752cc2200eb3b852ea545d10ccbd555ab09d2b4.

* Revert "Fix tests?"

This reverts commit 810ebde73376ff7da0595e6b927f1b464d62b4a4.

* Ignore external Google Fonts link in premailer
2026-03-01 07:18:24 +00:00

31 lines
876 B
Text

Hackatime — Your Coding Recap
==============================
<%= @period_label %>
Hi <%= h(@user.display_name) %>,
Here's your weekly coding snapshot from Hackatime.
OVERVIEW
--------
Total coding time: <%= short_time_simple(@total_seconds) %>
Daily average: <%= short_time_simple(@daily_average_seconds) %>
Active days: <%= @active_days %>/7
Heartbeats: <%= @total_heartbeats %>
<% if @total_seconds.zero? %>
No coding activity was recorded this week. Start a new session and your next summary will include your project and language breakdown.
<% else %>
TOP PROJECTS
------------
<% @top_projects.each do |project| -%>
• <%= project[:name] %> - <%= project[:duration_label] %>
<% end %>
TOP LANGUAGES
-------------
<% @top_languages.each do |language| -%>
• <%= language[:name] %> - <%= language[:duration_label] %>
<% end -%>
<% end %>