diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2017-01-05 11:53:01 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-05 11:53:01 -0200 |
commit | 79d527195d98d74867a067ce93a4dace2b86d2bb (patch) | |
tree | 0dd577f8b0f28c95a7d66def7d321e3b4e65f2c3 /templates/base | |
parent | 9d1bc9aac88bda13e4b9319ab915bca1b65521f6 (diff) | |
parent | b354cf362ec432533da4384d4ee0c32283b7089f (diff) | |
download | gitea-79d527195d98d74867a067ce93a4dace2b86d2bb.tar.gz gitea-79d527195d98d74867a067ce93a4dace2b86d2bb.zip |
Merge pull request #539 from andreynering/notifications-step-2
Notifications - Step 2
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/head.tmpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 847503022e..a0b5220fd2 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -82,6 +82,18 @@ {{if .IsSigned}} <div class="right menu"> + <a href="/notifications" class="ui head link jump item poping up" data-content='{{.i18n.Tr "notifications"}}' data-variation="tiny inverted"> + <span class="text"> + <i class="octicon octicon-inbox"><span class="sr-only">{{.i18n.Tr "notifications"}}</span></i> + + {{if .NotificationUnreadCount}} + <span class="ui red label"> + {{.NotificationUnreadCount}} + </span> + {{end}} + </span> + </a> + <div class="ui dropdown head link jump item poping up" data-content="{{.i18n.Tr "create_new"}}" data-variation="tiny inverted"> <span class="text"> <i class="octicon octicon-plus"><span class="sr-only">{{.i18n.Tr "create_new"}}</span></i> |