Skip to content

Commit 1adc7bb

Browse files
McTom234Codeberg Admins @ build
authored andcommitted
CB/ui: Landingpage renovation (!35)
Fresh design for the landing/about page. Includes responsive behavior for all display sizes. CB/tmpl: UX/a11y of LandingPage, update social links (!43) - new Mastodon location - rel="noopener noreferrer" for social links - improve usability Designed-by: mray <[email protected]> Co-authored-by: mray <[email protected]> Co-authored-by: McTom234 <[email protected]> Co-authored-by: 6543 <[email protected]> Co-authored-by: Otto <[email protected]> Co-authored-by: fnetX <[email protected]> Reviewed-on: https://codeberg.org/Codeberg/gitea/pulls/35 Co-authored-by: McTom234 <[email protected]> Co-authored-by: fsologureng <[email protected]> Reviewed-on: https://codeberg.org/Codeberg/gitea/pulls/43 Co-authored-by: Felipe Leopoldo Sologuren Gutiérrez <[email protected]> Co-committed-by: Felipe Leopoldo Sologuren Gutiérrez <[email protected]> Co-committed-by: McTom234 <[email protected]> CB/tmpl: Fix Mastodon link CB/tmpl: Add `rel=me` to mastodon link - This should allow to verify the link on mastodon instances.
1 parent b0cb2fa commit 1adc7bb

13 files changed

+889
-33
lines changed
Loading
Loading
Loading
Loading

public/img/logo-250px-dark.png

10.5 KB
Loading

public/img/logo-250px.png

13.6 KB
Loading
Lines changed: 144 additions & 0 deletions
Loading

routers/web/home.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"code.gitea.io/gitea/models/db"
1313
repo_model "code.gitea.io/gitea/models/repo"
1414
user_model "code.gitea.io/gitea/models/user"
15+
activities_model "code.gitea.io/gitea/models/activities"
1516
"code.gitea.io/gitea/modules/base"
1617
"code.gitea.io/gitea/modules/context"
1718
"code.gitea.io/gitea/modules/log"
@@ -61,8 +62,15 @@ func Home(ctx *context.Context) {
6162
return
6263
}
6364

65+
// codeberg: show about page
66+
About(ctx)
67+
}
68+
69+
// codeberg specific about page
70+
func About(ctx *context.Context) {
6471
ctx.Data["PageIsHome"] = true
6572
ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled
73+
ctx.Data["Stats"] = activities_model.GetStatistic()
6674
ctx.HTML(http.StatusOK, tplHome)
6775
}
6876

routers/web/web.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ func RegisterRoutes(m *web.Route) {
303303
// for health check
304304
m.Get("/", Home)
305305
m.Get("/sitemap.xml", ignExploreSignIn, HomeSitemap)
306+
m.Get("/about", About) // codeberg
306307
m.Group("/.well-known", func() {
307308
m.Get("/openid-configuration", auth.OIDCWellKnown)
308309
m.Group("", func() {

0 commit comments

Comments
 (0)