diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2018-12-02 13:52:23 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2018-12-02 13:52:23 +0100 |
commit | f098fdc99de724f53f7f129b6a5bde50b73fd797 (patch) | |
tree | dab4645ee420a7d6373818c44c6a5f7439dc7726 /src/request_handler/views.rs | |
parent | cf40041946626b105102e3dab2515d2ef2fb0506 (diff) | |
download | nginx-auth-totp-master.tar.gz nginx-auth-totp-master.zip |
Diffstat (limited to 'src/request_handler/views.rs')
-rw-r--r-- | src/request_handler/views.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/request_handler/views.rs b/src/request_handler/views.rs index bdd7999..d2de163 100644 --- a/src/request_handler/views.rs +++ b/src/request_handler/views.rs @@ -17,7 +17,7 @@ fn render_base_template(title: &'static str, page_body: Box<RenderBox>) -> Strin }).into_string().unwrap() } -pub(in super) fn info_debug<'a>(path_rest: &'a str, cookies: Vec<(String, String)>) -> String { +pub(in super) fn info_debug<'a>(path_rest: &'a str, cookies: Vec<(String, String)>, wait_until: u64) -> String { let path = path_rest.to_string(); render_base_template("Info (debug)", box_html! { h1(id = "heading") { @@ -32,7 +32,7 @@ pub(in super) fn info_debug<'a>(path_rest: &'a str, cookies: Vec<(String, String th: "Cookie value"; th: "Valid until"; } - tbody { + tbody { @ for (name, valid_until) in cookies { tr { td: name; @@ -41,6 +41,11 @@ pub(in super) fn info_debug<'a>(path_rest: &'a str, cookies: Vec<(String, String } } } + h2: "Request Slowdown"; + p { + : "Until: "; + : wait_until; + } }) } |