bloat/templates/nav.tmpl

38 lines
1.3 KiB
Cheetah
Raw Normal View History

2020-02-19 00:15:37 +02:00
{{with .Data}}
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
<div class="user-info">
<div class="user-info-img-container">
2020-02-23 15:26:39 +02:00
<a class="img-link" href="/timeline/home" title="home">
2020-02-19 00:15:37 +02:00
<img class="user-info-img" src="{{.User.AvatarStatic}}" alt="profile-avatar" />
</a>
</div>
<div class="user-info-details-container">
<div>
<span class="status-dname"> {{EmojiFilter .User.DisplayName .User.Emojis}} </span>
2020-02-23 15:26:39 +02:00
<a class="nav-link" href="/user/{{.User.ID}}">
2020-02-19 00:15:37 +02:00
<span class="status-uname"> {{.User.Acct}} </span>
</a>
</div>
<div>
2020-02-23 15:26:39 +02:00
<a class="nav-link" href="/timeline/home">home</a>
<a class="nav-link" href="/timeline/direct">direct</a>
<a class="nav-link" href="/timeline/local">local</a>
<a class="nav-link" href="/timeline/twkn">twkn</a>
<a class="nav-link" href="/search">search</a>
<a class="nav-link" href="/about">about</a>
2020-02-19 00:15:37 +02:00
</div>
<div>
<a class="nav-link" href="/settings" target="_top">settings</a>
2020-03-04 17:59:59 +02:00
<form class="signout" action="/signout" method="post" target="_top">
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
<input type="submit" value="signout" class="btn-link nav-link">
</form>
2020-02-19 00:15:37 +02:00
</div>
</div>
</div>
{{template "postform.tmpl" (WithContext .PostContext $.Ctx)}}
{{template "footer.tmpl"}}
{{end}}