aboutsummaryrefslogtreecommitdiff
path: root/src/tmpl
diff options
context:
space:
mode:
authorXe Iaso <me@christine.website>2022-06-14 15:04:17 -0400
committerGitHub <noreply@github.com>2022-06-14 15:04:17 -0400
commitad6fba4c79e8b5ab08e2f0db8bc4087f03151f7f (patch)
tree9888fe24eb3ea35ea0f9b54af8723b4a000e6ad9 /src/tmpl
parent7541df778165b5a96da714256d011685b476abc0 (diff)
downloadxesite-ad6fba4c79e8b5ab08e2f0db8bc4087f03151f7f.tar.xz
xesite-ad6fba4c79e8b5ab08e2f0db8bc4087f03151f7f.zip
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 <me@xeiaso.net>
Diffstat (limited to 'src/tmpl')
-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" {