aboutsummaryrefslogtreecommitdiff
path: root/templates/nav.tmpl
blob: ea18a5f4c7adf7fedd7ab2d790929125fcbd575c (plain)
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
{{with .Data}}
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
<div class="user-info">
	<div class="user-info-img-container">
		<a class="img-link" href="/timeline/home" title="Home (1)">
			<img class="user-info-img" src="{{.User.Avatar}}" alt="profile-avatar" height="64" />
		</a>
	</div>
	<div class="user-info-details-container">
		<div class="user-info-details-name">
			<bdi class="status-dname"> {{EmojiFilter (html .User.DisplayName) .User.Emojis}} </bdi>  
			<a class="nav-link" href="/user/{{.User.ID}}" accesskey="0" title="User profile (0)">
				<span class="status-uname"> @{{.User.Acct}} </span>
			</a>
		</div>
		<div class="user-info-details-nav">
			<a class="nav-link" href="/timeline/home" accesskey="1" title="Home timeline (1)">home</a>
			<a class="nav-link" href="/timeline/direct" accesskey="2" title="Direct timeline (2)">direct</a>
			<a class="nav-link" href="/timeline/local" accesskey="3" title="Local timeline (3)">local</a>
			<a class="nav-link" href="/timeline/twkn" accesskey="5" title="The Whole Known Netwwork (4)">twkn</a>
			<a class="nav-link" href="/timeline/remote" accesskey="4" title="Remote timeline (5)">remote</a>
			<a class="nav-link" href="/search" accesskey="6" title="Search (6)">search</a>
		</div>
		<div>
			<a class="nav-link" href="/settings" target="_top" accesskey="7" title="Settings (7)">settings</a>
			<form class="signout" action="/signout" method="post" target="_top">
				<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
				<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
				<input type="submit" value="signout" class="btn-link nav-link" accesskey="8" title="Signout (8)">
			</form>
			<a class="nav-link" href="/about" accesskey="9" title="About (9)">about</a>
		</div>
	</div>
</div>

{{template "postform.tmpl" (WithContext .PostContext $.Ctx)}}

{{template "footer.tmpl"}}
{{end}}