summaryrefslogtreecommitdiffstats
path: root/templates/admin/navbar.tmpl
blob: e8eb54e58da485c56085559f3bd320219928d88d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<div class="four wide column">
	<div class="ui fluid vertical menu">
		<div class="header item">{{.locale.Tr "settings"}}</div>
		<a class="{{if .PageIsAdminDashboard}}active {{end}}item" href="{{AppSubUrl}}/admin">
			{{.locale.Tr "admin.dashboard"}}
		</a>
		<a class="{{if .PageIsAdminUsers}}active {{end}}item" href="{{AppSubUrl}}/admin/users">
			{{.locale.Tr "admin.users"}}
		</a>
		<a class="{{if .PageIsAdminOrganizations}}active {{end}}item" href="{{AppSubUrl}}/admin/orgs">
			{{.locale.Tr "admin.organizations"}}
		</a>
		<a class="{{if .PageIsAdminRepositories}}active {{end}}item" href="{{AppSubUrl}}/admin/repos">
			{{.locale.Tr "admin.repositories"}}
		</a>
		{{if .EnablePackages}}
			<a class="{{if .PageIsAdminPackages}}active {{end}}item" href="{{AppSubUrl}}/admin/packages">
				{{.locale.Tr "packages.title"}}
			</a>
		{{end}}
		{{if not DisableWebhooks}}
			<a class="{{if or .PageIsAdminDefaultHooks .PageIsAdminSystemHooks}}active {{end}}item" href="{{AppSubUrl}}/admin/hooks">
				{{.locale.Tr "admin.hooks"}}
			</a>
		{{end}}
		<a class="{{if .PageIsAdminAuthentications}}active {{end}}item" href="{{AppSubUrl}}/admin/auths">
			{{.locale.Tr "admin.authentication"}}
		</a>
		<a class="{{if .PageIsAdminEmails}}active {{end}}item" href="{{AppSubUrl}}/admin/emails">
			{{.locale.Tr "admin.emails"}}
		</a>
		{{if .EnableOAuth2}}
			<a class="{{if .PageIsAdminApplications}}active {{end}}item" href="{{AppSubUrl}}/admin/applications">
				{{.locale.Tr "settings.applications"}}
			</a>
		{{end}}
		{{if .EnableActions}}
		<a class="{{if .PageIsAdminRunners}}active {{end}}item" href="{{AppSubUrl}}/admin/runners">
			{{.locale.Tr "actions.runners"}}
		</a>
		{{end}}
		<a class="{{if .PageIsAdminConfig}}active {{end}}item" href="{{AppSubUrl}}/admin/config">
			{{.locale.Tr "admin.config"}}
		</a>
		<a class="{{if .PageIsAdminNotices}}active {{end}}item" href="{{AppSubUrl}}/admin/notices">
			{{.locale.Tr "admin.notices"}}
		</a>
		<a class="{{if .PageIsAdminMonitor}}active {{end}}item" href="{{AppSubUrl}}/admin/monitor">
			{{.locale.Tr "admin.monitor"}}
		</a>
	</div>
</div>