comparison sat_templates/templates/bulma/chat/chat.html @ 329:6a26c8a43d10

bulma (chat): fix chat: those change are done to have a minimal chat working, but it's really basic. A full-featured chat should come in a future version.
author Goffi <goffi@goffi.org>
date Fri, 07 May 2021 15:38:10 +0200
parents 1928ba66c194
children b2b859a62e70
comparison
equal deleted inserted replaced
328:bfb0d5829728 329:6a26c8a43d10
1 {{ script.include('chat') }} 1 {{ script.include('chat') }}
2 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} 2 {% if not embedded %}{% extends 'base/base.html' %}{% endif %}
3 {% block title %}{{ target_jid }} - {{ super() }}{% endblock %} 3 {% block title %}{{ target_jid }} - {{ super() }}{% endblock %}
4 {% block body %} 4 {% block body %}
5 <div class="container has-background-white px-1 py-1"> 5 <div id="chat-panel">
6 <div id="messages"> 6 {% if subject is defined %}
7 {% if subject is defined %} 7 <div class="notification is-primary my-0">
8 <div class="notification is-primary"> 8 {{- subject|urlize(nofollow=true,target='_blank') -}}
9 {{- subject|urlize(nofollow=true,target='_blank') -}} 9 </div>
10 {% endif %}
11 <div id="messages" class="has-background-white pt-4 px-4">
12 {% for msg in messages %}
13 {% include 'chat/message.html' %}
14 {% endfor %}
10 </div> 15 </div>
11 {% endif %} 16 <textarea id="message_input" class="textarea mt-4 chat_input mb-4" name="message" type="text" rows="1" placeholder="{{_("enter your message")}}"></textarea>
12 {% for msg in messages %}
13 {% include 'chat/message.html' %}
14 {% endfor %}
15 </div> 17 </div>
16 <textarea id="message_input" class="textarea mt-4 chat_input" name="message" type="text" rows="1" placeholder="{{_("enter your message")}}"></textarea>
17 </div>
18 {% endblock body %} 18 {% endblock body %}
19 19
20 {% block footer %}{% endblock footer %} 20 {% block footer %}{% endblock footer %}