social-traffic.html 737 字节
Newer Older
C
codecalm 已提交
1
{% assign services = 'Instagram:3550,Twitter:1798,Facebook:1245,Pinterest:854,VK:650' | split: ',' %}
C
chomik 已提交
2
<div class="card">
C
codecalm 已提交
3 4 5 6
	<div class="card-header">
		<h4 class="card-title">Social Media Traffic</h4>
	</div>
	<table class="table card-table table-vcenter">
C
codecalm 已提交
7
		<thead>
C
codecalm 已提交
8 9 10 11
		<tr>
			<th>Network</th>
			<th colspan="2">Visitors</th>
		</tr>
C
codecalm 已提交
12
		</thead>
C
codecalm 已提交
13 14 15
		<tbody>
		{% for service in services %}
		{% assign s = service | split: ':' %}
C
codecalm 已提交
16
		<tr>
C
codecalm 已提交
17 18
			<td>{{ s[0] }}</td>
			<td>{{ s[1] | format_number }}</td>
C
codecalm 已提交
19 20
			<td class="w-50">
				<div class="progress progress-xs">
C
codecalm 已提交
21 22

					<div class="progress-bar bg-primary" style="width: {{ s[1] | divided_by: 5000.0 | times: 100 }}%"></div>
C
codecalm 已提交
23 24 25
				</div>
			</td>
		</tr>
C
codecalm 已提交
26
		{% endfor %}
C
codecalm 已提交
27 28
		</tbody>
	</table>
C
chomik 已提交
29
</div>