3b3597aa1f
- Fixed js error on dashboard page if no cookie is found. - Use cookies only until end of session. For dashboard cookies use url /dashboard only. - Updated permission numbering of builtin groups and added can_use_chat permission. - Used minified version of jquery.cookie. - Added TODO comment for django session way from pull request.
23 lines
905 B
HTML
23 lines
905 B
HTML
{% load i18n %}
|
|
|
|
{% if chat_messages != None %}
|
|
<div class="hidden well" id="chatbox">
|
|
<div id="chatbox-header">
|
|
<h1 id="chatbox-title"><i class="icon-comments icon-white"></i> Chat
|
|
<button class="btn btn-mini right" id="close-chatbox"><i class="icon-remove"></i></button>
|
|
</h1>
|
|
</div>
|
|
<div id="chatbox-text">
|
|
{% for message in chat_messages %}
|
|
<br>{{ message.html_time|safe }} {{ message.html_person|safe }} {{ message.message|urlize }}
|
|
{% endfor %}
|
|
</div>
|
|
<form class="form-inline" id="chatbox-form">
|
|
<div class="input-append" style="width: calc(100% - 25px);">
|
|
<input id="chatbox-form-input" type="text" />
|
|
<button type="submit" class="btn"><i class="icon-comments"></i></button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endif %}
|