aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 6 insertions, 1 deletions
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<Mutex<State>>, 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!()
}