internal/web/templates/notifications.html

568741bf3226b21a023ff5dcd22b00fa0047350c
gitbay/internal/web/templates/notifications.html

22 lines · 1130 bytes

 1{{define "title"}}notifications · {{.Site}}{{end}}
 2{{define "content"}}
 3<div class="listhead">
 4  <h1>Notifications</h1>
 5  <nav class="filters">
 6    <a {{if not .All}}class="active" aria-current="page" {{end}}href="/notifications">unread</a>
 7    <a {{if .All}}class="active" aria-current="page" {{end}}href="/notifications?all=1">all</a>
 8  </nav>
 9  <span class="spacer"></span>
10  {{if .Notices}}<form method="post" action="/notifications" class="inline"><button type="submit" class="btn">Mark all read</button></form>{{end}}
11</div>
12<ul class="issuelist">
13{{range .Notices}}<li>
14  <div class="issuemain">
15    <p class="title"><a href="{{.Href}}">{{.Actor}} {{.Summary}}</a></p>
16    <p class="meta"><a href="/{{.RepoPath}}">{{.RepoPath}}</a> · {{when .CreatedAt}}</p>
17  </div>
18  {{if not .Read}}<form method="post" action="/notifications" class="inline"><input type="hidden" name="id" value="{{.ID}}"><button type="submit" class="btn">Mark read</button></form>{{end}}
19</li>
20{{else}}<li class="empty">{{if .All}}nothing here yet{{else}}nothing unread — <a href="/notifications?all=1">show all</a>{{end}}</li>{{end}}
21</ul>
22{{end}}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form