commit da7b17a31957f5c847acce17e4fa300142655db5 from: Omar Polo date: Fri Mar 03 09:15:12 2023 UTC allow to disable navbar/footer/image preview commit - 81c76a9aff80b7ecc421f213ee79f82424bf3e6f commit + da7b17a31957f5c847acce17e4fa300142655db5 blob - 0a15e33f2954fcf9b6d0bb279c0b0599a680d3bf blob + 76de0865b8ee3c20dd1d91f4218f57e97ac53a32 --- fragments.tmpl +++ fragments.tmpl @@ -43,6 +43,9 @@ static int tp_navigation(struct template *); const char *stylesheet = pc ? pc->stylesheet : ""; const char *prfx = clt->clt_script_name; const char *path = clt->clt_path_info; + int hidenav; + + hidenav = pc ? pc->flags & PROXY_NO_NAVBAR : 0; !} @@ -64,7 +67,7 @@ static int tp_navigation(struct template *); - {{ if path }} + {{ if path && !hidenav }} {{ render tp_navigation(tp) }} {{ end }} {{ end }} @@ -74,8 +77,11 @@ static int tp_navigation(struct template *); struct client *clt = tp->tp_arg; struct proxy_config *pc = clt->clt_pc; const char *path = clt->clt_path_info; + int hidefoot; + + hidefoot = pc ? pc->flags & PROXY_NO_FOOTER : 0; !} - {{ if pc }} + {{ if pc && !hidefoot }}