diff options
author | Melody Horn <melody@boringcactus.com> | 2021-04-22 06:49:24 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-04-22 06:49:24 -0600 |
commit | 5c13375f554103c5a9cc78f902020744d35c24f2 (patch) | |
tree | f7fea5025f5952c4361b8354cccd7647de9ed4e3 /src/main.rs | |
parent | 7620dd41ca41cf4fb445d6a6e9afe2607ed77a95 (diff) | |
download | gityeet-5c13375f554103c5a9cc78f902020744d35c24f2.tar.gz gityeet-5c13375f554103c5a9cc78f902020744d35c24f2.zip |
actually handle files
who needs syntax highlighting and line numbers anyway
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 7 |
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!() } |