OXYGENHUB
◆ draft-ready oxygenhub / templates / pulse.html
1005 B · HTML · last changed No inline code in pages, so the CSP can be enforced (#227) 17 days ago source blame history raw
1
{# The year as a signal (oxygenhub#217): changes pushed each day of the
2
   last year, coloured by repository, the share pushed via agent tokens as a
3
   violet trace, releases on the peaks. Drawn by the script below from the
4
   page's JSON; nothing is fetched. #}
5
<section class="card-box pulse-box" aria-label="Changes over the last year">
6
  <div class="card-head"><h2 id="pulse-title">Last 12 months</h2><span class="pulse-total" id="pulse-total" data-total="{{ pulse_total }}">{{ pulse_total }}</span><span class="small mute">changes pushed</span>
7
    <div class="pulse-legend more" id="pulse-legend"></div></div>
8
  {% if pulse_total == 0 %}<p class="empty small">No changes pushed in the last year.</p>{% else %}
9
  <div class="pulse-stage" id="pulse-stage"><div class="pulse-card" id="pulse-card" aria-live="polite"></div></div>
10
  <script type="application/json" id="pulse-data">{{ pulse|safe }}</script>
11
  <script src="/static/pulse.js?v={{ shell.assets() }}" defer></script>
12
  {% endif %}
13
</section>