feat show repo description on summary page instead of branches

Replace the branches listing on the summary page with the repository description (from the bare repo 'description' file). Branches remain accessible via their dedicated nav tab.

Commit
13c95408ec308b8f71da2d42f7743eb7b87ad640
Author
Claude Sonnet 4 <claude@anthropic.invalid>
Author date
Committer
Marius Peter <dev@marius-peter.com>
Committer date
Changed files
lib/handlers.ml
index 90b2b3e9..f862c404 100644..100644
@@ -74,11 +74,10 @@
74 74 handler repository context id)
75 75
76 76 let summary config repository context =
77 Removed: let* branches = Resolvers.Reference.branches repository in
78 77 let* commits =
79 78 Resolvers.Commit.recent repository config.Config.commits_max_displayed
80 79 in
81 Removed: Views.Repo.summary context branches commits
80 Added: Views.Repo.summary context commits
82 81
83 82 let commit_matches ?filter_type ?author ?committer
84 83 (commit : Resolvers.Commit.t) =
lib/views/repo.ml
index c1002f6f..bcfe971c 100644..100644
@@ -501,12 +501,15 @@
501 501 ];
502 502 ])
503 503
504 Removed: let summary context branches commits =
504 Added: let summary context commits =
505 Added: let description_section =
506 Added: if context.description = "" then HTML.null []
507 Added: else HTML.(p [] [ txt "%s" context.description ])
508 Added: in
505 509 render_page context ~active:Summary
506 510 HTML.
507 511 [
508 Removed: h3 [] [ txt "Branches" ];
509 Removed: ul [] (List.map (li_of_branch context.repo) branches);
512 Added: description_section;
510 513 h3 [] [ txt "Latest commits" ];
511 514 ul [] (List.map (li_of_commit context.repo) commits);
512 515 ]