table-users.html 2.3 KB
Newer Older
M
memorte03 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
<div class="card">
	<div class="table-responsive">
		<table class="table table-hover table-outline table-vcenter text-nowrap 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 person in site.data.people 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 %}
			<tr>
				<td class="text-center">
					<div class="avatar d-block" style="background-image: url()">
						<span class="avatar-status bg-green"></span>
					</div>
				</td>
				<td>
					<div>{{ person.name }} {{ person.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>
					{% include ui/progress.html value=percentage size="sm" %}
                </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 %}
					<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">
                    {% comment %}
                    {% include dropdown-options.html %}
                    {% endcomment %}
				</td>
            </tr>
			{% endfor %}
			</tbody>
		</table>
	</div>

</div>