Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions django_app/redbox_app/templates/chats.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,33 @@
govuk-!-margin-bottom-2 govuk-!-margin-top-4">
New chat
</a>
<h2 class="govuk-heading-s iai-panel-heading">Recent chats</h2>
<chat-history>
<template id="template-chat_history_heading">
<div>
{% call chat_history_heading("-") %}
{% endcall %}
</div>
</template>
<template id="template-chat_history_item">
{{ chat_history_item({
"id": "id",
"name": ""
}, "", "id") }}
</template>

{% for date_group, chats in chat_grouped_by_date_group %}
<div class="chat-group-container">
{% call chat_history_heading(date_group) %}
<ul class="chat-list">
{% for chat in chats %}
{{ chat_history_item(chat, url('chats', chat.id), chat_id) }}
{% endfor %}
</ul>
{% endcall %}
</div>
{% endfor %}
</chat-history>

<document-selector class="govuk-!-margin-top-5 govuk-!-padding-top-3">
<fieldset class="govuk-fieldset">
Expand Down Expand Up @@ -65,33 +92,6 @@ <h3 class="govuk-heading-s iai-panel-heading">Your documents
</div>
</fieldset>
</document-selector>
<h2 class="govuk-heading-s iai-panel-heading">Recent chats</h2>
<chat-history>
<template id="template-chat_history_heading">
<div>
{% call chat_history_heading("-") %}
{% endcall %}
</div>
</template>
<template id="template-chat_history_item">
{{ chat_history_item({
"id": "id",
"name": ""
}, "", "id") }}
</template>

{% for date_group, chats in chat_grouped_by_date_group %}
<div class="chat-group-container">
{% call chat_history_heading(date_group) %}
<ul class="chat-list">
{% for chat in chats %}
{{ chat_history_item(chat, url('chats', chat.id), chat_id) }}
{% endfor %}
</ul>
{% endcall %}
</div>
{% endfor %}
</chat-history>

<div class="iai-doc-list">
<label for="llm-selector">Model</label>
Expand Down