navbar-side.html 1.0 KB
Newer Older
C
codecalm 已提交
1 2
{% assign person-id = include.person-id | default: 1 %}
{% assign person = site.data.people[person-id] %}
C
codecalm 已提交
3
<ul class="navbar-nav flex-row{% if include.class %} {{ include.class }}{% endif %}">
C
codecalm 已提交
4
	<li class="nav-item nav-item-icon dropdown d-none d-md-flex mr-3">
C
codecalm 已提交
5
		<a href="#" class="nav-link px-0" data-toggle="dropdown" tabindex="-1">
C
codecalm 已提交
6
			{% include ui/icon.html icon="bell" %}
C
codecalm 已提交
7
			<span class="badge bg-red"></span>
C
codecalm 已提交
8 9 10 11 12 13 14
		</a>
		<div class="dropdown-menu dropdown-menu-right dropdown-menu-card">
			{% include cards/navbar-notifications.html %}
		</div>
	</li>

	<li class="nav-item dropdown">
C
codecalm 已提交
15
		<a href="#" class="nav-link d-flex lh-1 text-reset p-0" data-toggle="dropdown">
C
codecalm 已提交
16 17
			{% include ui/avatar.html person-id=person-id %}
			{% unless include.hide-username %}
C
codecalm 已提交
18
			<div class="d-none d-xl-block pl-2">
C
codecalm 已提交
19 20
				<div>{{ person.full_name }}</div>
				<div class="mt-1 small text-muted">{{ person.job_title }}</div>
C
codecalm 已提交
21
			</div>
C
codecalm 已提交
22
			{% endunless %}
C
codecalm 已提交
23 24 25 26
		</a>
		{% include ui/dropdown-menu.html right=true icons=true separated=true %}
	</li>
</ul>