Use '@' prefix for all usernames
[bloat] / templates / nav.tmpl
1 {{with .Data}}
2 {{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
3 <div class="user-info">
4         <div class="user-info-img-container">
5                 <a class="img-link" href="/timeline/home" title="home">
6                         <img class="user-info-img" src="{{.User.AvatarStatic}}" alt="profile-avatar" height="64" />
7                 </a>
8         </div>
9         <div class="user-info-details-container">
10                 <div>
11                         <span class="status-dname"> {{EmojiFilter .User.DisplayName .User.Emojis}} </span>  
12                         <a class="nav-link" href="/user/{{.User.ID}}">
13                                 <span class="status-uname"> @{{.User.Acct}} </span>
14                         </a>
15                 </div>
16                 <div>
17                         <a class="nav-link" href="/timeline/home">home</a>
18                         <a class="nav-link" href="/timeline/direct">direct</a>
19                         <a class="nav-link" href="/timeline/local">local</a>
20                         <a class="nav-link" href="/timeline/twkn">twkn</a>
21                         <a class="nav-link" href="/search">search</a>
22                         <a class="nav-link" href="/about">about</a>
23                 </div>
24                 <div>
25                         <a class="nav-link" href="/settings" target="_top">settings</a>
26                         <form class="signout" action="/signout" method="post" target="_top">
27                                 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
28                                 <input type="submit" value="signout" class="btn-link nav-link">
29                         </form>
30                 </div>
31         </div>
32 </div>
33
34 {{template "postform.tmpl" (WithContext .PostContext $.Ctx)}}
35
36 {{template "footer.tmpl"}}
37 {{end}}