Changeset e3a5aed in Klonkt for src/views/pages/admin-stats.ejs
- Timestamp:
- 06/30/2026 10:11:03 PM (2 months ago)
- Branches:
- main
- Children:
- d9c5eb8
- Parents:
- 65a0697
- File:
-
- 1 edited
-
src/views/pages/admin-stats.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/admin-stats.ejs
r65a0697 re3a5aed 3 3 <h1><%= t('astat.title') %></h1> 4 4 <p class="stats-note"><%= t('astat.intro') %></p> 5 6 <% if (typeof myIp !== 'undefined' && myIp) { %> 7 <form method="post" action="/admin/stats/exclude-ip" class="stats-note" style="margin:.2rem 0 1.2rem;display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;"> 8 <span><%= t('astat.your_ip') %> <code><%= myIp %></code> — 9 <% if (ipExcluded) { %><strong><%= t('astat.ip_not_counted') %></strong><% } else { %><%= t('astat.ip_counted') %><% } %></span> 10 <button type="submit" class="btn" style="padding:3px 10px;font-size:.85rem;"><%= ipExcluded ? t('astat.ip_count') : t('astat.ip_exclude') %></button> 11 </form> 12 <% } %> 5 13 6 14 <% var s = stats; var _max = Math.max(1, ...s.series.map(function(d){ return d.pageviews; })); %>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)