development-activity.html 1.2 KB
Newer Older
C
codecalm 已提交
1
<div class="card">
C
codecalm 已提交
2 3 4
	<div class="card-header border-0">
		<div class="card-title">Development activity</div>
	</div>
C
codecalm 已提交
5
	<div class="position-relative">
C
codecalm 已提交
6 7
		<div class="position-absolute top-0 left-0 px-3 mt-1 w-50">
			<div class="row g-2">
C
codecalm 已提交
8
				<div class="col-auto">{% include ui/chart-sparkline.html percentage=35 type="donut" %}</div>
C
codecalm 已提交
9 10 11 12 13
				<div class="col">
					<div>Today's Earning: $4,262.40</div>
					<div class="text-muted">{% include ui/icon.html icon="trending-up" color="green" class="icon-inline" %} +5% more than yesterday</div>
				</div>
			</div>
C
codecalm 已提交
14 15 16
		</div>
		{% include ui/chart.html chart-id="development-activity" height=12 %}
	</div>
C
codecalm 已提交
17

C
codecalm 已提交
18 19 20 21 22 23 24 25 26 27 28 29 30
	<div class="table-responsive">
		<table class="table card-table table-vcenter">
			<thead>
			<tr>
				<th>User</th>
				<th>Commit</th>
				<th>Date</th>
			</tr>
			</thead>
			<tbody>
			{% for commit in site.data.commits limit: 5 %}
			<tr>
				<td class="w-1">
C
codecalm 已提交
31
					{% include ui/avatar.html person-id=forloop.index size="sm" %}
C
codecalm 已提交
32 33 34 35 36 37 38 39 40 41 42 43
				</td>
				<td class="td-truncate">
					<div class="text-truncate">
						{{ commit.description }}
					</div>
				</td>
				<td class="text-nowrap text-muted">{{ commit.date | date_to_string }}</td>
			</tr>
			{% endfor %}
			</tbody>
		</table>
	</div>
C
codecalm 已提交
44 45
</div>