Add userinfo in navigation
[bloat] / templates / navigation.tmpl
1 <div class="user-info">
2         <div class="user-info-img-container">
3                 <a class="img-link" href="/timeline" title="home">
4                         <img class="user-info-img" src="{{.User.AvatarStatic}}" alt="profile-avatar" />
5                 </a>
6         </div>
7         <div class="user-info-details-container">
8                 <div>
9                         <span class="status-dname"> {{EmojiFilter .User.DisplayName .User.Emojis}} </span>  
10                         <a class="nav-link" href="/user/{{.User.ID}}">
11                                 <span class="status-uname"> {{.User.Acct}} </span>
12                         </a>
13                 </div>
14                 <div>
15                         <a class="nav-link" href="/timeline">home</a>
16                         <a class="nav-link" href="/notifications">notifications{{if gt .NotificationCount 0}}({{.NotificationCount}}){{end}}</a>
17                         <a class="nav-link" href="/about">about</a>
18                 </div>
19                 <div>
20                         <a class="nav-link" href="/signout">sign out</a>
21                 </div>
22         </div>
23 </div>