From 5c13375f554103c5a9cc78f902020744d35c24f2 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Thu, 22 Apr 2021 06:49:24 -0600 Subject: actually handle files who needs syntax highlighting and line numbers anyway --- src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 333a4bc..f4e26d9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -114,7 +114,12 @@ async fn view_tree_path(state: &Arc>, repo_rel_path: &str, tree_rel }; Ok(template.into()) } else if let Some(selected_blob) = selected_object.as_blob() { - todo!() + let template = templates::RepoFile { + title: repo_rel_path, + rel_path: &tree_rel_path, + blob: selected_blob.clone(), + }; + Ok(template.into()) } else { panic!() } -- cgit v1.2.3