mirror of
https://github.com/tabler/tabler.git
synced 2025-12-26 19:26:10 +04:00
66 lines
2.3 KiB
HTML
66 lines
2.3 KiB
HTML
<div class="card">
|
|
<table class="table table-responsive-sm table-hover table-outline table-vcenter card-table">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center w-1"><i class="icon-people"></i></th>
|
|
<th>User</th>
|
|
<th>Usage</th>
|
|
<th class="text-center">Payment</th>
|
|
<th>Activity</th>
|
|
<th class="text-center">Satisfaction</th>
|
|
<th class="text-center"><i class="icon-settings"></i></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
{% for user in site.data.users limit: 8 offset: 50 %}
|
|
{% assign percentage = forloop.index | random_number %}
|
|
{% assign time_offset = forloop.index | random_number: 0, 800 %}
|
|
{% assign register_offset = forloop.index | random_number: 0, 8000000, 300 %}
|
|
<tr>
|
|
<td class="text-center">
|
|
<div class="avatar d-block" style="background-image: url({{ user.photo }})">
|
|
<span class="avatar-status bg-green"></span>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div>{{ user.name }} {{ user.surname }}</div>
|
|
<div class="small text-muted">
|
|
Registered: {{ site.time | date: "%s" | minus: register_offset | date: '%b %-d, %Y' }}
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="clearfix">
|
|
<div class="float-left">
|
|
<strong>{{ percentage }}%</strong>
|
|
</div>
|
|
<div class="float-right">
|
|
<small class="text-muted">Jun 11, 2015 - Jul 10, 2015</small>
|
|
</div>
|
|
</div>
|
|
<div class="progress progress-xs">
|
|
<div class="progress-bar bg-{{ percentage | number_color }}" role="progressbar" style="width: {{ percentage }}%" aria-valuenow="{{ percentage }}" aria-valuemin="0" aria-valuemax="100"></div>
|
|
</div>
|
|
</td>
|
|
<td class="text-center">
|
|
<i class="payment payment-{% cycle 'visa', 'googlewallet', 'mastercard', 'shopify', 'ebay', 'paypal' %}"></i>
|
|
</td>
|
|
<td>
|
|
<div class="small text-muted">Last login</div>
|
|
<div>{{ site.time | date: "%s" | minus: time_offset | to_pretty_time }}</div>
|
|
</td>
|
|
<td class="text-center">
|
|
{% assign circle-percentage = forloop.index | random_number: 0, 100, 70 %}
|
|
<div class="mx-auto chart-circle chart-circle-xs" data-value="{{ circle-percentage | divide: 100 }}" data-thickness="3" data-color="blue">
|
|
<div class="chart-circle-value">{{ circle-percentage }}%</div>
|
|
</div>
|
|
</td>
|
|
<td class="text-center">
|
|
{% include dropdown-options.html %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
</div> |