2012-09-24 17:17:41 +02:00
|
|
|
{% extends "zephyr/base.html" %}
|
|
|
|
|
2012-10-16 06:03:29 +02:00
|
|
|
{# The app itself. #}
|
|
|
|
{# Includes some other templates as tabs. #}
|
2012-11-02 16:59:54 +01:00
|
|
|
|
2012-09-06 21:13:15 +02:00
|
|
|
{% load jstemplate %}
|
2013-01-30 23:11:34 +01:00
|
|
|
{% load compressed %}
|
2012-09-06 21:13:15 +02:00
|
|
|
|
2012-09-24 17:17:41 +02:00
|
|
|
{% block customhead %}
|
2012-10-17 19:52:57 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2012-10-10 16:32:59 +02:00
|
|
|
<script id="template_message" type="text/x-handlebars-template">
|
|
|
|
{% rawjstemplate "message" %}
|
2012-09-24 17:10:12 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script id="template_subscription" type="text/x-handlebars-template">
|
|
|
|
{% rawjstemplate "subscription" %}
|
|
|
|
</script>
|
2012-09-24 16:54:30 +02:00
|
|
|
|
2013-01-31 21:01:53 +01:00
|
|
|
<script id="template_new_stream_users" type="text/x-handlebars-template">
|
|
|
|
{% rawjstemplate "new_stream_users" %}
|
|
|
|
</script>
|
|
|
|
|
2012-12-05 22:48:15 +01:00
|
|
|
<script id="template_invite_subscription" type="text/x-handlebars-template">
|
|
|
|
{% rawjstemplate "invite_subscription" %}
|
|
|
|
</script>
|
|
|
|
|
2013-02-08 23:03:33 +01:00
|
|
|
<script id="template_actions_popover_title" type="text/x-handlebars-template">
|
|
|
|
{% rawjstemplate "actions_popover_title" %}
|
2012-10-18 20:23:57 +02:00
|
|
|
</script>
|
2013-02-08 23:03:33 +01:00
|
|
|
<script id="template_actions_popover_content" type="text/x-handlebars-template">
|
|
|
|
{% rawjstemplate "actions_popover_content" %}
|
2012-10-18 20:23:57 +02:00
|
|
|
</script>
|
|
|
|
|
2013-01-30 23:11:34 +01:00
|
|
|
{% compressed_css 'app' %}
|
|
|
|
<link rel="stylesheet" href="/static/third/spectrum/spectrum.css" />
|
|
|
|
|
2012-10-31 19:00:40 +01:00
|
|
|
<script type="text/javascript" src="/static/third/jquery/jquery.form.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/third/jquery/jquery.highlight.js"></script>
|
2013-02-18 07:47:42 +01:00
|
|
|
<script type="text/javascript" src="/static/third/jcaret/jquery.caret.1.02.min.js"></script>
|
2012-10-31 19:00:40 +01:00
|
|
|
<script type="text/javascript" src="/static/third/xdate/xdate.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/third/handlebars/handlebars-1.0.rc.1.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/third/spin/spin.min.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/third/jquery-mousewheel/jquery.mousewheel.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/third/jquery-throttle-debounce/jquery.ba-throttle-debounce.min.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/third/jquery.idle/jquery.idle.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/third/jquery-autosize/jquery.autosize.js"></script>
|
2012-11-19 16:47:43 +01:00
|
|
|
<script type="text/javascript" src="/static/third/spectrum/spectrum.js"></script>
|
2013-01-30 23:11:34 +01:00
|
|
|
{% compressed_js 'app' %}
|
2012-09-19 22:25:13 +02:00
|
|
|
|
|
|
|
{% if debug %}
|
2013-02-25 02:59:59 +01:00
|
|
|
{% compressed_js 'app_debug' %}
|
2012-09-19 22:25:13 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2012-08-30 19:56:15 +02:00
|
|
|
<script type="text/javascript">
|
2012-10-10 22:59:46 +02:00
|
|
|
{% autoescape off %}
|
2012-10-10 23:53:00 +02:00
|
|
|
|
2013-02-06 00:33:45 +01:00
|
|
|
{# Not escaped, because it's guaranteed by the model to be an integer. #}
|
|
|
|
var initial_pointer = {{ user_profile.pointer }};
|
2012-10-10 23:53:00 +02:00
|
|
|
|
2012-12-11 18:08:18 +01:00
|
|
|
var poll_timeout = {{ poll_timeout }};
|
|
|
|
|
2013-01-09 23:49:54 +01:00
|
|
|
var fullname = "{{ user_profile.full_name|escapejs }}";
|
2012-10-10 23:53:00 +02:00
|
|
|
var email = "{{ user_profile.user.email|escapejs }}";
|
2012-11-26 23:57:31 +01:00
|
|
|
var domain = "{{ user_profile.realm.domain|escapejs }}";
|
2012-10-10 23:53:00 +02:00
|
|
|
var have_initial_messages = {{ have_initial_messages|escapejs }};
|
2013-01-09 00:10:37 +01:00
|
|
|
var desktop_notifications_enabled = {{ desktop_notifications_enabled|escapejs }};
|
2013-02-27 23:18:38 +01:00
|
|
|
var enter_sends = {{ enter_sends|escapejs }};
|
2012-10-10 23:53:00 +02:00
|
|
|
|
2013-01-30 21:02:41 +01:00
|
|
|
{# We use JSONEncoderForHTML to generate "streams". #}
|
|
|
|
var stream_list = {{ streams }};
|
2012-10-10 23:53:00 +02:00
|
|
|
|
|
|
|
var people_list = [
|
|
|
|
{% for person in people %}
|
2012-10-12 22:51:44 +02:00
|
|
|
{ 'email': "{{ person.email|escapejs }}",
|
|
|
|
'full_name': "{{ person.full_name|escapejs }}" },
|
2012-10-10 23:53:00 +02:00
|
|
|
{% endfor %}
|
|
|
|
];
|
|
|
|
|
2012-09-10 20:31:53 +02:00
|
|
|
{% endautoescape %}
|
2012-10-10 22:59:46 +02:00
|
|
|
</script>
|
2012-09-24 17:17:41 +02:00
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
2013-02-28 19:04:58 +01:00
|
|
|
<div class="container-fluid">
|
2013-01-31 22:32:29 +01:00
|
|
|
{% include "zephyr/navbar.html" %}
|
2013-02-28 19:04:58 +01:00
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="span3 hidden-phone">
|
2013-02-28 18:57:05 +01:00
|
|
|
{% include "zephyr/left-sidebar.html" %}
|
2013-02-21 03:49:18 +01:00
|
|
|
</div><!--/left sidebar-->
|
2013-02-28 19:04:58 +01:00
|
|
|
<div class="span7 tab-content">
|
2012-09-17 20:59:26 +02:00
|
|
|
<div class="tab-pane active" id="home">
|
|
|
|
{% include "zephyr/home.html" %}
|
2012-09-11 21:33:24 +02:00
|
|
|
</div>
|
2012-10-03 22:21:17 +02:00
|
|
|
<div class="tab-pane" id="subscriptions">
|
2012-09-17 20:59:26 +02:00
|
|
|
{% include "zephyr/subscriptions.html" %}
|
2012-09-10 20:31:53 +02:00
|
|
|
</div>
|
2012-10-03 22:21:17 +02:00
|
|
|
<div class="tab-pane" id="settings">
|
2012-09-21 17:28:18 +02:00
|
|
|
{% include "zephyr/settings.html" %}
|
2012-09-17 20:59:26 +02:00
|
|
|
</div>
|
2012-09-26 00:26:35 +02:00
|
|
|
|
|
|
|
{% if show_debug %}
|
2012-10-03 22:21:17 +02:00
|
|
|
<div class="tab-pane" id="debug">
|
2012-09-26 00:26:35 +02:00
|
|
|
{% include "zephyr/debug.html" %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2012-09-17 20:59:26 +02:00
|
|
|
</div><!--/tab-content-->
|
2013-02-28 19:04:58 +01:00
|
|
|
<div class="span2 hidden-phone">
|
2013-02-28 18:57:05 +01:00
|
|
|
{% include "zephyr/right-sidebar.html" %}
|
2013-02-21 03:49:18 +01:00
|
|
|
</div><!--/right sidebar-->
|
2012-09-14 21:27:12 +02:00
|
|
|
</div><!--/row-->
|
2012-10-24 22:53:19 +02:00
|
|
|
{% include "zephyr/keyboard_shortcuts.html" %}
|
2012-11-02 22:29:13 +01:00
|
|
|
{% include "zephyr/markdown_help.html" %}
|
2012-12-05 22:48:15 +01:00
|
|
|
{% include "zephyr/invite_user.html" %}
|
2013-02-28 19:04:58 +01:00
|
|
|
</div>
|
2012-08-28 18:44:51 +02:00
|
|
|
{% endblock %}
|