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>
|
|
|
|
|
2012-10-18 20:23:57 +02:00
|
|
|
<script id="template_userinfo_popover_title" type="text/x-handlebars-template">
|
|
|
|
{% rawjstemplate "userinfo_popover_title" %}
|
|
|
|
</script>
|
|
|
|
<script id="template_userinfo_popover_content" type="text/x-handlebars-template">
|
|
|
|
{% rawjstemplate "userinfo_popover_content" %}
|
|
|
|
</script>
|
2012-11-27 22:30:47 +01:00
|
|
|
<script id="template_timeinfo_popover_content" type="text/x-handlebars-template">
|
|
|
|
{% rawjstemplate "timeinfo_popover_content" %}
|
|
|
|
</script>
|
2012-10-18 20:23:57 +02:00
|
|
|
|
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>
|
|
|
|
<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-01-30 21:44:52 +01:00
|
|
|
<script type="text/javascript" src="/static/js/debug.js"></script>
|
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-01-16 00:52:57 +01:00
|
|
|
{# Not escaped, because it's guaranteed to be an integer (either the UserProfile's pointer, or the id of a Stream, or -1). #}
|
|
|
|
var initial_pointer = {{ initial_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 }};
|
2012-10-10 23:53:00 +02:00
|
|
|
|
2013-01-16 00:52:57 +01:00
|
|
|
{% if lurk_stream %}
|
|
|
|
var lurk_stream = "{{ lurk_stream|escapejs }}";
|
|
|
|
{% else %}
|
|
|
|
var lurk_stream = undefined;
|
|
|
|
{% endif %}
|
|
|
|
|
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-01-31 22:32:29 +01:00
|
|
|
{% include "zephyr/navbar.html" %}
|
2012-10-04 22:34:00 +02:00
|
|
|
<div class="row">
|
2012-10-05 17:46:07 +02:00
|
|
|
<div class="span3">
|
2012-10-04 22:59:18 +02:00
|
|
|
<div class="row">
|
2013-01-16 21:42:35 +01:00
|
|
|
<div class="span3 sidebar-nav affix hidden-phone">
|
2013-02-06 19:48:26 +01:00
|
|
|
<div class="upper_sidebar">
|
|
|
|
<span>
|
|
|
|
<img class="img-rounded gravatar-profile"
|
|
|
|
src="https://secure.gravatar.com/avatar/{{ email_hash }}?d=identicon&s=60" />
|
|
|
|
</span>
|
|
|
|
<span class="my_fullname">{{ user_profile.full_name }}</span>
|
|
|
|
<span class="my_email">{{ user_profile.user.email }}</span>
|
|
|
|
<div class="new_message_button">
|
|
|
|
<button type="button" class="btn btn-large btn-block"
|
|
|
|
id="left_bar_compose_stream_button_big"
|
|
|
|
onclick="compose.set_mode('stream');">
|
|
|
|
<i class="icon-bullhorn"></i> New stream message
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="new_message_button">
|
|
|
|
<button type="button" class="btn btn-large btn-block"
|
|
|
|
id="left_bar_compose_private_button_big"
|
|
|
|
onclick="compose.set_mode('private');">
|
|
|
|
<i class="icon-user"></i> New private message
|
|
|
|
</button>
|
|
|
|
</div>
|
2012-11-08 19:09:15 +01:00
|
|
|
</div>
|
2013-02-06 19:48:26 +01:00
|
|
|
<div class="bottom_sidebar">
|
|
|
|
<ul class="filters">
|
|
|
|
<div id="global_filters">
|
|
|
|
{# Special-case this link so we don't actually go to page top. #}
|
|
|
|
<li id="filthome" class="active-filter"><a href="#" onclick="narrow.deactivate();return false" >Home</a></li>
|
|
|
|
</div>
|
2013-02-08 17:58:08 +01:00
|
|
|
<hr id="stream_filters_sep">
|
2013-02-06 19:48:26 +01:00
|
|
|
<div id="stream_filters">
|
|
|
|
</div>
|
2013-02-08 17:58:08 +01:00
|
|
|
<hr id="personal_filters_sep">
|
2013-02-06 22:33:06 +01:00
|
|
|
<div id="personal_filters">
|
|
|
|
<li id="filtpers"><a href="#narrow/is/private-message">All private messages</a></li>
|
|
|
|
</div>
|
2013-02-06 19:48:26 +01:00
|
|
|
</ul>
|
2012-10-11 23:11:30 +02:00
|
|
|
</div>
|
2012-10-04 22:34:00 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!--/sidebar-->
|
2012-10-05 17:46:07 +02:00
|
|
|
<div class="span9 tab-content" id="application_area">
|
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-->
|
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" %}
|
2012-09-10 20:31:53 +02:00
|
|
|
|
2012-08-28 18:44:51 +02:00
|
|
|
{% endblock %}
|