Some checks failed
testing / backend-checks (push) Failing after 18m2s
testing / frontend-checks (push) Successful in 4m31s
testing / test-unit (push) Has been skipped
testing / test-remote-cacher (map[image:docker.io/bitnami/redis:7.2 port:6379]) (push) Has been skipped
testing / test-remote-cacher (map[image:docker.io/bitnami/valkey:7.2 port:6379]) (push) Has been skipped
testing / test-remote-cacher (map[image:ghcr.io/microsoft/garnet-alpine:1.0.14 port:6379]) (push) Has been skipped
testing / test-remote-cacher (map[image:registry.redict.io/redict:7.3.0-scratch port:6379]) (push) Has been skipped
testing / test-mysql (push) Has been skipped
testing / test-pgsql (push) Has been skipped
testing / test-sqlite (push) Has been skipped
testing / security-check (push) Has been skipped
/ release (push) Has been cancelled
159 lines
4.2 KiB
Go HTML Template
159 lines
4.2 KiB
Go HTML Template
{{$notificationUnreadCount := 0}}
|
|
{{if and .IsSigned .NotificationUnreadCount}}
|
|
{{$notificationUnreadCount = call .NotificationUnreadCount}}
|
|
{{end}}
|
|
|
|
<nav id="custom-navbar-container" aria-label="{{ctx.Locale.Tr "aria.navbar"}}">
|
|
<div class="custom-navbar">
|
|
<menu class="mobile-links">
|
|
<li class="dropdown">
|
|
<a aria-label="{{ctx.Locale.Tr "toggle_menu"}}">
|
|
<i class="fa-solid fa-bars"></i>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li>
|
|
<a href="https://incremental.social/all">Threads</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://incremental.social/microblog">Microblog</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://incremental.social/people">People</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://chat.incremental.social">Chat</a>
|
|
</li>
|
|
<li class="active">
|
|
<a href="https://code.incremental.social">Code</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</menu>
|
|
|
|
<a id="custom-navbar-logo" href="https://incremental.social" aria-label="{{ctx.Locale.Tr "home"}}">
|
|
<img id="logo" src="https://incremental.social/mbin_logo.svg" alt="{{ctx.Locale.Tr "logo"}}" aria-hidden="true">
|
|
</a>
|
|
|
|
<menu class="desktop-links">
|
|
<li>
|
|
<a href="https://incremental.social/all">Threads</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://incremental.social/microblog">Microblog</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://incremental.social/people">People</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://chat.incremental.social">Chat</a>
|
|
</li>
|
|
<li class="active">
|
|
<a href="https://code.incremental.social">Code</a>
|
|
</li>
|
|
</menu>
|
|
|
|
<div class="flex-spacer"></div>
|
|
|
|
<menu>
|
|
<li class="dropdown">
|
|
<a aria-label="{{ctx.Locale.Tr "toggle_menu"}}">
|
|
<i class="fa-solid fa-magnifying-glass"></i>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
{{if .IsSigned}}
|
|
<li>
|
|
<a href="{{AppSubUrl}}/issues">{{ctx.Locale.Tr "issues"}}</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{AppSubUrl}}/pulls">{{ctx.Locale.Tr "pull_requests"}}</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{AppSubUrl}}/milestones">{{ctx.Locale.Tr "milestones"}}</a>
|
|
</li>
|
|
{{end}}
|
|
<li>
|
|
<a href="{{AppSubUrl}}/explore/repos">{{ctx.Locale.Tr "explore.repos"}}</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{AppSubUrl}}/explore/users">{{ctx.Locale.Tr "explore.users"}}</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{AppSubUrl}}/explore/organizations">{{ctx.Locale.Tr "explore.organizations"}}</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
{{if .IsSigned}}
|
|
<li class="dropdown">
|
|
<a aria-label="{{ctx.Locale.Tr "toggle_menu"}}">
|
|
<i class="fa-solid fa-plus"></i>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li>
|
|
<a href="{{AppSubUrl}}/repo/create">{{ctx.Locale.Tr "new_repo.link"}}</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{AppSubUrl}}/repo/migrate">{{ctx.Locale.Tr "new_migrate.link"}}</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{AppSubUrl}}/org/create">{{ctx.Locale.Tr "new_org.link"}}</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a href="{{AppSubUrl}}/notifications" aria-label="{{ctx.Locale.Tr "notifications"}}">
|
|
<i class="fa-solid fa-bell"></i>
|
|
<span class="notification-badge{{if not $notificationUnreadCount}} tw-hidden{{end}}">{{$notificationUnreadCount}}</span>
|
|
</a>
|
|
</li>
|
|
<li class="dropdown">
|
|
<a class="user" aria-label="{{ctx.Locale.Tr "toggle_menu"}}">
|
|
{{ctx.AvatarUtils.Avatar .SignedUser 50 "tw-mr-1"}}
|
|
<span class="user-name">{{.SignedUser.Name}}</span>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li>
|
|
<a href="https://incremental.social/u/{{.SignedUser.Name}}">
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{.SignedUser.HomeLink}}">
|
|
Code Profile
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{.SignedUser.HomeLink}}?tab=stars">
|
|
{{ctx.Locale.Tr "your_starred"}}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{AppSubUrl}}/notifications/subscriptions">
|
|
{{ctx.Locale.Tr "notification.subscriptions"}}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{AppSubUrl}}/user/settings">
|
|
{{ctx.Locale.Tr "your_settings"}}
|
|
</a>
|
|
</li>
|
|
{{if .IsAdmin}}
|
|
<li>
|
|
<a href="{{AppSubUrl}}/admin">
|
|
{{ctx.Locale.Tr "admin_panel"}}
|
|
</a>
|
|
</li>
|
|
{{end}}
|
|
<li>
|
|
<a href="{{AppSubUrl}}/user/logout">{{ctx.Locale.Tr "sign_out"}}</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
{{else}}
|
|
<li>
|
|
<a rel="nofollow" href="{{AppSubUrl}}/user/oauth2/Incremental%20Social?redirect_to={{.CurrentURL}}">
|
|
{{ctx.Locale.Tr "sign_in"}}
|
|
</a>
|
|
</li>
|
|
{{end}}
|
|
</menu>
|
|
</div>
|
|
</nav>
|