diff --git a/app/templates/chat/index.html b/app/templates/chat/index.html index 49affbc..f94c87b 100644 --- a/app/templates/chat/index.html +++ b/app/templates/chat/index.html @@ -1,131 +1,130 @@ -<%extends "base.html" %} +{% extends "base.html" %} {% block title %}Chat - {{ config.APP_NAME }}{% endblock %} {% block content %}
-2 -44 -45
-46
-47
-48

Start a conversation with the AI assistant.

-49
-50
-51 -52 {% if not provider_status.configured %} -53
-57

Add a provider API key to start chatting

-58

-59 This assistant uses the {{ provider_status.provider }} provider, -60 which needs an API key before it can reply. You can still create and browse -61 conversations in the meantime. -62

-63
    -64
  1. Open the API keys page.
  2. -65
  3. Add a key for {{ provider_status.provider }}.
  4. -66
  5. Return here and press Check again — no reload needed.
  6. -67
-68
-69 Manage API keys -70 -71
-72

-73
-74 {% endif %} -75 -76
-77 Model & generation settings -78
-79
-80 -81 -82
-83
-84 -85 -86
-87
-88 -89 -90
-91
-92 -93 -94
-95

Providers without a key are disabled. Manage API keys.

-96
-97
-98 -99
-100
-101 -102 -103
-104 -105 -106
-107 -108

-109

Press Enter to send, Shift+Enter for a new line. The assistant streams its reply. Markdown and code blocks are supported. Attach up to 4 png/jpeg/webp images.

-110
-111
-112
-113 -114 + + +
+
+
+

Start a conversation with the AI assistant.

+
+
+ + {% if not provider_status.configured %} +
+

Add a provider API key to start chatting

+

+ This assistant uses the {{ provider_status.provider }} provider, + which needs an API key before it can reply. You can still create and browse + conversations in the meantime. +

+
    +
  1. Open the API keys page.
  2. +
  3. Add a key for {{ provider_status.provider }}.
  4. +
  5. Return here and press Check again — no reload needed.
  6. +
+
+ Manage API keys + +
+

+
+ {% endif %} + +
+ Model & generation settings +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+

Providers without a key are disabled. Manage API keys.

+
+
+ +
+
+ + +
+ + +
+ +

+

Press Enter to send, Shift+Enter for a new line. The assistant streams its reply. Markdown and code blocks are supported. Attach up to 4 png/jpeg/webp images.

+
+
+ + + {% endblock %} {% block scripts %} diff --git a/tests/test_template_hygiene.py b/tests/test_template_hygiene.py new file mode 100644 index 0000000..6df2f54 --- /dev/null +++ b/tests/test_template_hygiene.py @@ -0,0 +1,44 @@ +"""Template hygiene checks. + +A squash-merged change once landed a Jinja template whose lines were prefixed +with their own line numbers (``2