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 crateResult; 14use crate; 15use crate; 16 17const PAGE_SIZE: usize = 100; 18 19 20pub 23 24 25pub 29 30/// Template context for a single branch in the list. 31 37 38/// Template context for the branch list page. 39 40 41 45 46/// Template context for a single commit row in the log. 47 53 54/// Template context for the branch detail (log) page. 55 56 57 66 67/// Renders the full list of branches for a repository. 68pub async 107 108/// Renders a paginated log of commits reachable from the tip of the given branch. 109pub async