Merge branch 'master' of git.freesoftwareextremist.com:public/bloat
[bloat] / templates / navigation.tmpl
index 53386772afbbfc5a67a0ef8945f7cb8c7e3b50f0..a85f9fdbdbfb56f0b0f8a6637daa6159b8b093cd 100644 (file)
@@ -1,6 +1,30 @@
-<div class="navigation">
-       <a href="/timeline">home</a>
-       <a href="/notifications">notifications{{if gt .NotificationCount 0}} ({{.NotificationCount}}){{end}}</a>
-       <a href="/about">about</a>
-       <a href="/signout">sign out</a>
+{{with .Data}}
+<div class="user-info">
+       <div class="user-info-img-container">
+               <a class="img-link" href="/timeline/home" title="home">
+                       <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>  
+                       <a class="nav-link" href="/user/{{.User.ID}}">
+                               <span class="status-uname"> {{.User.Acct}} </span>
+                       </a>
+               </div>
+               <div>
+                       <a class="nav-link" href="/timeline/home">home</a>
+                       <a class="nav-link" href="/notifications">notifications{{if gt .NotificationCount 0}}({{.NotificationCount}}){{end}}</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>
+               </div>
+               <div>
+                       <a class="nav-link" href="/settings">settings</a>
+                       <a class="nav-link" href="/signout">sign out</a>
+               </div>
+       </div>
 </div>
+{{end}}