1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-24 02:38:15 +04:00
Files
tabler/shared/includes/cards/most-visited-pages.html
2025-04-15 23:18:49 +02:00

37 lines
998 B
HTML

<div class="card">
<div class="card-header">
<h3 class="card-title">Most Visited Pages</h3>
</div>
<div class="card-table table-responsive">
<table class="table table-vcenter">
<thead>
<tr>
<th>Page name</th>
<th>Visitors</th>
<th>Unique</th>
<th colspan="2">Bounce rate</th>
</tr>
</thead>
{% for url in urls limit: 6 %}
{% assign data = url.data | join: ',' %}
{% assign id = "bounce-rate-" | append: forloop.index %}
<tr>
<td>
{{ url.uri }}
<a href="#" class="ms-1" aria-label="Open website">{% include "ui/icon.html" icon="link" %}</a>
</td>
<td class="text-secondary">{{ url.visitors | format_number }}</td>
<td class="text-secondary">{{ url.unique | format_number }}</td>
<td class="text-secondary">{{ url.bounce }}</td>
<td class="text-end w-1">
{% include "ui/chart-sparkline.html" type="line" data=data id=id small=true color="primary" %}
</td>
</tr>
{% endfor %}
</table>
</div>
</div>