diff options
author | Milan Pässler <me@pbb.lc> | 2019-12-12 03:16:40 +0100 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-12-13 14:21:21 +0100 |
commit | baf496acf0640fecdc01864989f2142a9757ba14 (patch) | |
tree | 7c0d076097c1f14f5a8eae0a541d1e4cfef78f11 /src | |
parent | d43a02e05a9341325c4b09d810775678d14cc5b0 (diff) |
initial styling
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index d516d66..44588b2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,7 +37,11 @@ impl Repository { #[derive(Template)] #[template(path = "repo.html")] struct Repo<'a> { + project_owner: &'a str, + project_summary: &'a str, project_name: &'a str, + project_logo: &'a str, + project_logo_alt_text: &'a str, first_commit: &'a str, num_commits: usize, num_contributors: usize, @@ -48,7 +52,11 @@ fn repo(req: HttpRequest, path: web::Path<(String)>) -> Result<HttpResponse> { dbg!(req); let repo = Repo { + project_owner: "spacekookie", + project_summary: "A lightweight web frontend for git repositories", project_name: "webgit", + project_logo: "rust.png", + project_logo_alt_text: "Rust logo", first_commit: "f6ca929", num_commits: 123, num_contributors: 3, |