From ad6fba4c79e8b5ab08e2f0db8bc4087f03151f7f Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Tue, 14 Jun 2022 15:04:17 -0400 Subject: Add salary transparency page (#492) * Move dhall data and types into `/dhall` folder * Reformat salary transparency data into Dhall * Wire up the old salary transparency page with a custom element * Wire up a new salary transparency page * Expose raw data as JSON * Make dhall types more portable * Remove gallery from the navbar * Make signal boost page point to the new data location * Add salary transparency page to the footer of the site * Add site update post for this Signed-off-by: Xe --- src/tmpl/mod.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/tmpl') 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) -> 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) -> Markup { html! { figure.hero style="margin:0" { -- cgit v1.2.3