aboutsummaryrefslogtreecommitdiff
path: root/src/tmpl/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tmpl/mod.rs')
-rw-r--r--src/tmpl/mod.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tmpl/mod.rs b/src/tmpl/mod.rs
index 29d75f6..5391e9f 100644
--- a/src/tmpl/mod.rs
+++ b/src/tmpl/mod.rs
@@ -1,7 +1,27 @@
+use crate::app::Config;
use maud::{html, Markup};
+use std::sync::Arc;
pub mod nag;
+pub fn xeblog_salary_history(cfg: Arc<Config>) -> Markup {
+ html! {
+ table.salary_history {
+ tr {
+ th { "Title" }
+ th { "Start Date" }
+ th { "End Date" }
+ th { "Days Worked" }
+ th { "Salary" }
+ th { "How I Left" }
+ }
+ @for job in &cfg.clone().job_history {
+ (job.pay_history_row())
+ }
+ }
+ }
+}
+
pub fn xeblog_hero(file: String, prompt: Option<String>) -> Markup {
html! {
figure.hero style="margin:0" {