aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-24 14:55:05 +0000
committerr <r@freesoftwareextremist.com>2019-12-24 14:55:05 +0000
commita24d87ad2044db01b5ce35c5fe581967fbde4cf6 (patch)
tree52fe7e1ded0aeaf11e801093f416d2fea55e3ebd /templates
parent16300c93c1cfc65c95d0e95ec1249fae182283bd (diff)
downloadbloat-a24d87ad2044db01b5ce35c5fe581967fbde4cf6.tar.gz
bloat-a24d87ad2044db01b5ce35c5fe581967fbde4cf6.zip
Add userinfo in navigation
Diffstat (limited to 'templates')
-rw-r--r--templates/navigation.tmpl27
1 files changed, 22 insertions, 5 deletions
diff --git a/templates/navigation.tmpl b/templates/navigation.tmpl
index 5338677..0e745a2 100644
--- a/templates/navigation.tmpl
+++ b/templates/navigation.tmpl
@@ -1,6 +1,23 @@
-<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>
+<div class="user-info">
+ <div class="user-info-img-container">
+ <a class="img-link" href="/timeline" 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</a>
+ <a class="nav-link" href="/notifications">notifications{{if gt .NotificationCount 0}}({{.NotificationCount}}){{end}}</a>
+ <a class="nav-link" href="/about">about</a>
+ </div>
+ <div>
+ <a class="nav-link" href="/signout">sign out</a>
+ </div>
+ </div>
</div>