Skip to content

Commit f9b545a

Browse files
committed
Codeberg related template changes
1 parent 18604ca commit f9b545a

File tree

7 files changed

+43
-72
lines changed

7 files changed

+43
-72
lines changed

templates/base/footer_content.tmpl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<footer>
22
<div class="ui container">
33
<div class="ui left">
4-
{{.i18n.Tr "powered_by" "Gitea"}} {{if (or .ShowFooterVersion .PageIsAdmin)}}{{.i18n.Tr "version"}}: {{AppVer}}{{end}} {{if ShowFooterTemplateLoadTime}}{{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong>{{end}}
4+
{{if (or .ShowFooterVersion .PageIsAdmin)}}© Gitea{{.i18n.Tr "version"}}: {{AppVer}}{{end}} {{if ShowFooterTemplateLoadTime}}{{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong>{{end}}
55
</div>
66
<div class="ui right links">
77
{{if .ShowFooterBranding}}
@@ -16,9 +16,7 @@
1616
{{end}}
1717
</div>
1818
</div>
19-
<a href="{{StaticUrlPrefix}}/js/licenses.txt">{{.i18n.Tr "licenses"}}</a>
20-
{{if .EnableSwagger}}<a href="{{AppSubUrl}}/api/swagger">API</a>{{end}}
21-
<a target="_blank" rel="noopener noreferrer" href="https://gitea.io">{{.i18n.Tr "website"}}</a>
19+
<a href="{{StaticUrlPrefix}}/vendor/librejs.html" data-jslicense="1">JavaScript licenses</a>
2220
{{template "custom/extra_links_footer" .}}
2321
{{if (or .ShowFooterVersion .PageIsAdmin)}}<span class="version">{{GoVer}}</span>{{end}}
2422
</div>

templates/home.tmpl

Lines changed: 31 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,52 +2,40 @@
22
<div class="home">
33
<div class="ui stackable middle very relaxed page grid">
44
<div class="sixteen wide center aligned centered column">
5-
<div>
6-
<img class="logo" src="{{StaticUrlPrefix}}/img/gitea-lg.png" />
7-
</div>
8-
<div class="hero">
9-
<h1 class="ui icon header title">
10-
{{AppName}}
11-
</h1>
12-
<h2>{{.i18n.Tr "startpage.app_desc"}}</h2>
13-
</div>
5+
<img width="75%" src="{{AppSubUrl}}/img/logo.svg"/><br>
6+
<a href="/user/sing_up"><button class="ui button huge blue">{{.i18n.Tr "auth.sign_up_now" | Str2html}}</button></a>
147
</div>
158
</div>
16-
<div class="ui stackable middle very relaxed page grid">
17-
<div class="eight wide center column">
18-
<h1 class="hero ui icon header">
19-
{{svg "octicon-flame"}} {{.i18n.Tr "startpage.install"}}
20-
</h1>
21-
<p class="large">
22-
{{.i18n.Tr "startpage.install_desc" | Str2html}}
23-
</p>
9+
{{if eq .Lang "undefined"}}
10+
<div class="ui stackable middle very relaxed page grid">
2411
</div>
25-
<div class="eight wide center column">
26-
<h1 class="hero ui icon header">
27-
{{svg "octicon-device-desktop"}} {{.i18n.Tr "startpage.platform"}}
28-
</h1>
29-
<p class="large">
30-
{{.i18n.Tr "startpage.platform_desc" | Str2html}}
31-
</p>
32-
</div>
33-
</div>
34-
<div class="ui stackable middle very relaxed page grid">
35-
<div class="eight wide center column">
36-
<h1 class="hero ui icon header">
37-
{{svg "octicon-rocket"}} {{.i18n.Tr "startpage.lightweight"}}
38-
</h1>
39-
<p class="large">
40-
{{.i18n.Tr "startpage.lightweight_desc" | Str2html}}
41-
</p>
42-
</div>
43-
<div class="eight wide center column">
44-
<h1 class="hero ui icon header">
45-
{{svg "octicon-code"}} {{.i18n.Tr "startpage.license"}}
46-
</h1>
47-
<p class="large">
48-
{{.i18n.Tr "startpage.license_desc" | Str2html}}
49-
</p>
12+
{{else}}
13+
<div class="ui stackable middle very relaxed page grid">
14+
<div class="eight wide center column">
15+
<h1 class="header">
16+
Give your free project a free home.
17+
</h1>
18+
<p class="large">
19+
Collaboration platform and git hosting for free and open source software, content, projects.
20+
<a href="https://blog.codeberg.org/codebergorg-launched.html">⇢Our mission statement.</a>
21+
</p>
22+
<p class="large">
23+
Independent and powered by your donations and contributions.
24+
25+
</p>
26+
</div>
27+
<div class="eight wide center column">
28+
<h1 class="header">
29+
No tracking. Your data is not for sale.
30+
</h1>
31+
<p class="large">
32+
All services run on servers under our control. No dependencies on external services. No third party cookies, no tracking.
33+
</p>
34+
<p class="large">
35+
Hosted in the EU, we welcome the world.
36+
</p>
37+
</div>
5038
</div>
51-
</div>
39+
{{end}}
5240
</div>
5341
{{template "base/footer" .}}

templates/mail/auth/activate.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
<p>Please click the following link to activate your account within <b>{{.ActiveCodeLives}}</b>:</p>
1111
<p><a href="{{AppUrl}}user/activate?code={{.Code}}">{{AppUrl}}user/activate?code={{.Code}}</a></p>
1212
<p>Not working? Try copying and pasting it to your browser.</p>
13-
<p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
13+
<p>Welcome to <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a>!</p>
1414
</body>
1515
</html>

templates/mail/auth/activate_email.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
<p>Please click the following link to verify your email address within <b>{{.ActiveCodeLives}}</b>:</p>
1111
<p><a href="{{AppUrl}}user/activate_email?code={{.Code}}&email={{.Email}}">{{AppUrl}}user/activate_email?code={{.Code}}&email={{.Email}}</a></p>
1212
<p>Not working? Try copying and pasting it to your browser.</p>
13-
<p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
13+
<p>Welcome to <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a>!</p>
1414
</body>
1515
</html>

templates/mail/auth/register_notify.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
<p>You can now login via username: {{.Username}}.</p>
1111
<p><a href="{{AppUrl}}user/login">{{AppUrl}}user/login</a></p>
1212
<p>If this account has been created for you, please <a href="{{AppUrl}}user/forgot_password">set your password</a> first.</p>
13-
<p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
13+
<p>Welcome to <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a>!</p>
1414
</body>
1515
</html>

templates/mail/auth/reset_passwd.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111

1212
<p><a href="{{AppUrl}}user/recover_account?code={{.Code}}">{{AppUrl}}user/recover_account?code={{.Code}}</a></p>
1313
<p>Not working? Try copying and pasting it to your browser.</p>
14-
<p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
14+
<p>Welcome back to <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a>!</p>
1515
</body>
1616
</html>

templates/pwa/manifest_json.tmpl

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,16 @@
11
{
2-
"short_name": "Gitea",
3-
"name": "Gitea - Git with a cup of tea",
2+
"short_name": "Codeberg",
3+
"name": "The Non-Profit Collaboration Project",
44
"icons": [
55
{
6-
"src": "{{StaticUrlPrefix}}/img/gitea-lg.png",
6+
"src": "{{AppSubUrl}}/img/codeberg.png",
77
"type": "image/png",
8-
"sizes": "880x880"
9-
},
10-
{
11-
"src": "{{StaticUrlPrefix}}/img/gitea-sm.png",
12-
"type": "image/png",
13-
"sizes": "120x120"
14-
},
15-
{
16-
"src": "{{StaticUrlPrefix}}/img/gitea-512.png",
17-
"type": "image/png",
18-
"sizes": "512x512"
19-
},
20-
{
21-
"src": "{{StaticUrlPrefix}}/img/gitea-192.png",
22-
"type": "image/png",
23-
"sizes": "192x192"
8+
"sizes": "290x290"
249
}
2510
],
2611
"start_url": "{{AppSubUrl}}/",
2712
"scope": "{{AppSubUrl}}/",
28-
"background_color": "#FAFAFA",
13+
"background_color": "#FFFFFF",
2914
"display": "standalone",
3015
"theme_color": "{{ThemeColorMetaTag}}"
31-
}
16+
}

0 commit comments

Comments
 (0)