Parent
[>]
1//! Route handlers for branch pages. 2//! 3//! Covers two routes: the branch list (`/{repo}/branches`) and the branch 4//! detail page (`/{repo}/branches/{*branch}`). The detail handler resolves 5//! the branch ref to its tip commit and walks ancestors to produce a log view. 6 7use Template; 8use WebTemplate; 9use ; 10use IntoResponse; 11use Deserialize; 12 13use crate; 14use crate; 15 16const PAGE_SIZE: usize = 100; 17 18 19pub 22 23 24pub 28 29/// Template context for a single branch in the list. 30 35 36/// Template context for the branch list page. 37 38 39 43 44/// Template context for a single commit row in the log. 45 51 52/// Template context for the branch detail (log) page. 53 54 55 63 64/// Renders the full list of branches for a repository. 65pub async 102 103/// Renders a paginated log of commits reachable from the tip of the given branch. 104pub async