diff --git a/src/khoj/interface/web/base_config.html b/src/khoj/interface/web/base_config.html index 41347141..92e0ec27 100644 --- a/src/khoj/interface/web/base_config.html +++ b/src/khoj/interface/web/base_config.html @@ -12,24 +12,11 @@
-
- - -
+ + + {% import 'utils.html' as utils %} + {{ utils.heading_pane(user_photo, username) }} +
diff --git a/src/khoj/interface/web/chat.html b/src/khoj/interface/web/chat.html index a222569c..e4739cd2 100644 --- a/src/khoj/interface/web/chat.html +++ b/src/khoj/interface/web/chat.html @@ -270,32 +270,10 @@ {% endif %}
+ -
- {% if demo %} - - {% else %} - - {% endif %} - -
+ {% import 'utils.html' as utils %} + {{ utils.heading_pane(user_photo, username) }}
diff --git a/src/khoj/interface/web/index.html b/src/khoj/interface/web/index.html index a3ed548f..8ea846e7 100644 --- a/src/khoj/interface/web/index.html +++ b/src/khoj/interface/web/index.html @@ -282,33 +282,10 @@ {% endif %} + -
- {% if demo %} - - {% else %} - - {% endif %} - -
+ {% import 'utils.html' as utils %} + {{ utils.heading_pane(user_photo, username) }} diff --git a/src/khoj/interface/web/utils.html b/src/khoj/interface/web/utils.html new file mode 100644 index 00000000..31c07a54 --- /dev/null +++ b/src/khoj/interface/web/utils.html @@ -0,0 +1,20 @@ +{% macro heading_pane(user_photo="/static/assets/icons/anon.png", username="Anon") -%} +
+ + +
+{%- endmacro %}