diff --git a/.idea/workspace.xml b/.idea/workspace.xml index bd28fe3..49d3c1e 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -10,7 +10,14 @@ - + + + + + + + + - @@ -255,7 +272,8 @@ - diff --git a/bookkeeper/Cargo.lock b/bookkeeper/Cargo.lock index 9c22cd7..59bc5ca 100644 --- a/bookkeeper/Cargo.lock +++ b/bookkeeper/Cargo.lock @@ -423,7 +423,7 @@ dependencies = [ [[package]] name = "bookkeeper" -version = "0.1.0" +version = "0.1.1" dependencies = [ "chrono", "entity", diff --git a/bookkeeper/Cargo.toml b/bookkeeper/Cargo.toml index 63dd2a9..1f8d579 100644 --- a/bookkeeper/Cargo.toml +++ b/bookkeeper/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bookkeeper" -version = "0.1.0" +version = "0.1.1" edition = "2021" [dependencies] diff --git a/bookkeeper/deploy.ps1 b/bookkeeper/deploy.ps1 new file mode 100644 index 0000000..1202565 --- /dev/null +++ b/bookkeeper/deploy.ps1 @@ -0,0 +1,3 @@ +Copy-Item "target\release\bookkeeper.exe" -Destination "\\10.80.15.15\docker-volume\bookkeeper\" -Force +Copy-Item "static" -Destination "\\10.80.15.15\docker-volume\bookkeeper" -Recurse -Force +Copy-Item "templates" -Destination "\\10.80.15.15\docker-volume\bookkeeper" -Recurse -Force diff --git a/bookkeeper/src/main.rs b/bookkeeper/src/main.rs index 94c3233..08ec2d7 100644 --- a/bookkeeper/src/main.rs +++ b/bookkeeper/src/main.rs @@ -76,8 +76,11 @@ async fn index(conn: Connection<'_, Db>, last: Option, name: Option<&str>) .await .unwrap(); + let version = env!("CARGO_PKG_VERSION"); + Template::render("index", context! { rows: rows, + version: version, }) } diff --git a/bookkeeper/templates/nav.html.j2 b/bookkeeper/templates/nav.html.j2 index 5630e3c..3fa66d6 100644 --- a/bookkeeper/templates/nav.html.j2 +++ b/bookkeeper/templates/nav.html.j2 @@ -15,14 +15,15 @@ - - + {% block container %}{% endblock container %}