Skip to content

Commit 7902187

Browse files
committed
Hidden Help Menu
1 parent cf839bf commit 7902187

File tree

2 files changed

+5
-38
lines changed

2 files changed

+5
-38
lines changed

templates/base/head_navbar.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@
4747

4848
{{template "custom/extra_links" .}}
4949

50-
{{if not .IsSigned}}
50+
<div style="display:none">
51+
{{if not .IsSigned}}
5152
<a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.com">{{ctx.Locale.Tr "help"}}</a>
5253
{{end}}
54+
</div>
5355
</div>
5456

5557
<!-- the full dropdown menus -->

templates/home.tmpl

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{template "base/head" .}}
2+
23
<div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}" class="page-content home">
34
<div class="gt-mb-5 gt-px-5">
45
<div class="center">
@@ -7,45 +8,9 @@
78
<h1 class="ui icon header title">
89
{{AppName}}
910
</h1>
10-
<h2>{{ctx.Locale.Tr "startpage.app_desc"}}</h2>
1111
</div>
1212
</div>
1313
</div>
14-
<div class="ui stackable middle very relaxed page grid">
15-
<div class="eight wide center column">
16-
<h1 class="hero ui icon header">
17-
{{svg "octicon-flame"}} {{ctx.Locale.Tr "startpage.install"}}
18-
</h1>
19-
<p class="large">
20-
{{ctx.Locale.Tr "startpage.install_desc" | Str2html}}
21-
</p>
22-
</div>
23-
<div class="eight wide center column">
24-
<h1 class="hero ui icon header">
25-
{{svg "octicon-device-desktop"}} {{ctx.Locale.Tr "startpage.platform"}}
26-
</h1>
27-
<p class="large">
28-
{{ctx.Locale.Tr "startpage.platform_desc" | Str2html}}
29-
</p>
30-
</div>
31-
</div>
32-
<div class="ui stackable middle very relaxed page grid">
33-
<div class="eight wide center column">
34-
<h1 class="hero ui icon header">
35-
{{svg "octicon-rocket"}} {{ctx.Locale.Tr "startpage.lightweight"}}
36-
</h1>
37-
<p class="large">
38-
{{ctx.Locale.Tr "startpage.lightweight_desc" | Str2html}}
39-
</p>
40-
</div>
41-
<div class="eight wide center column">
42-
<h1 class="hero ui icon header">
43-
{{svg "octicon-code"}} {{ctx.Locale.Tr "startpage.license"}}
44-
</h1>
45-
<p class="large">
46-
{{ctx.Locale.Tr "startpage.license_desc" | Str2html}}
47-
</p>
48-
</div>
49-
</div>
5014
</div>
15+
5116
{{template "base/footer" .}}

0 commit comments

Comments
 (0)