[openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)
Anton Khorev
notifications at github.com
Tue Feb 4 17:54:36 UTC 2025
@AntonKhorev commented on this pull request.
> + <div class="col overflow-auto">
+ <div id="cal-heatmap-wrapper" class="heatmap-wrapper">
+ <!-- Labels -->
+ <ul class="list-unstyled d-flex flex-column justify-content-between ch-domain-text heatmap-labels">
+ <li> </li>
+ <li><%= t("date.abbr_day_names")[1] %></li>
+ <li> </li>
+ <li><%= t("date.abbr_day_names")[3] %></li>
+ <li> </li>
+ <li><%= t("date.abbr_day_names")[5] %></li>
+ <li> </li>
+ </ul>
+ <!-- Heatmap -->
+ <div id="cal-heatmap" class="heatmap"
+ data-heatmap="<%= @heatmap_data.to_json %>"
+ data-site_color_scheme="<%= preferred_color_scheme(:site) %>">
The color scheme is already present in `data-bs-theme` on `<html>` ("auto" if that attribute is missing).
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5402#pullrequestreview-2593626789
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5402/review/2593626789 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250204/984e4a02/attachment.htm>
More information about the rails-dev
mailing list