2012-09-24 17:17:41 +02:00
|
|
|
{% extends "zephyr/base.html" %}
|
|
|
|
|
2012-09-10 20:31:53 +02:00
|
|
|
<title>Humbug, from Humbug Inc.</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
2012-09-11 20:15:41 +02:00
|
|
|
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
|
2012-09-10 20:31:53 +02:00
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
|
|
|
<![endif]-->
|
2012-09-06 21:13:15 +02:00
|
|
|
{% load jstemplate %}
|
|
|
|
|
2012-08-28 22:04:10 +02:00
|
|
|
|
2012-09-24 17:17:41 +02:00
|
|
|
{% block customhead %}
|
2012-08-28 18:44:51 +02:00
|
|
|
|
2012-09-24 17:10:12 +02:00
|
|
|
<script id="template_zephyr" type="text/x-handlebars-template">
|
|
|
|
{% rawjstemplate "zephyr" %}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script id="template_subscription" type="text/x-handlebars-template">
|
|
|
|
{% rawjstemplate "subscription" %}
|
|
|
|
</script>
|
2012-09-24 16:54:30 +02:00
|
|
|
|
2012-09-10 20:31:53 +02:00
|
|
|
{% autoescape off %}
|
2012-09-25 22:58:59 +02:00
|
|
|
<link href="/static/styles/zephyr.css?dummy_time={% now "U" %}" rel="stylesheet">
|
2012-09-17 20:25:00 +02:00
|
|
|
<link href="/static/styles/pygments.css" rel="stylesheet">
|
2012-09-06 17:22:38 +02:00
|
|
|
<script type="text/javascript" src="/static/third/jquery/jquery.form.js"></script>
|
2012-09-24 17:10:12 +02:00
|
|
|
<script type="text/javascript" src="/static/third/handlebars/handlebars-1.0.rc.1.js"></script>
|
2012-09-26 22:44:38 +02:00
|
|
|
<script type="text/javascript" src="/static/third/spin/spin.min.js"></script>
|
2012-09-26 20:44:41 +02:00
|
|
|
<script type="text/javascript" src="/static/third/jquery-mousewheel/jquery.mousewheel.js"></script>
|
2012-10-03 22:07:04 +02:00
|
|
|
<script type="text/javascript" src="/static/js/setup.js"></script>
|
2012-10-03 20:49:58 +02:00
|
|
|
<script type="text/javascript" src="/static/js/dom_access.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/narrow.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/compose.js"></script>
|
2012-10-03 22:24:17 +02:00
|
|
|
<script type="text/javascript" src="/static/js/subscribe.js"></script>
|
2012-10-03 21:44:07 +02:00
|
|
|
<script type="text/javascript" src="/static/js/ui.js"></script>
|
2012-09-21 22:35:32 +02:00
|
|
|
<script type="text/javascript" src="/static/js/hotkey.js"></script>
|
2012-10-03 20:49:58 +02:00
|
|
|
<script type="text/javascript" src="/static/js/zephyr.js"></script>
|
2012-09-19 22:25:13 +02:00
|
|
|
|
|
|
|
{% if debug %}
|
|
|
|
<script type="text/javascript" src="/static/js/debug.js"></script>
|
|
|
|
{% endif %}
|
|
|
|
|
2012-08-30 19:56:15 +02:00
|
|
|
<script type="text/javascript">
|
2012-09-04 18:45:45 +02:00
|
|
|
var initial_pointer = {{ user_profile.pointer }};
|
2012-09-21 00:26:59 +02:00
|
|
|
var email = "{{ user_profile.user.email }}";
|
2012-10-02 17:53:14 +02:00
|
|
|
// class_list only contains lower-case names.
|
2012-09-04 20:31:23 +02:00
|
|
|
var class_list = {{ classes }};
|
|
|
|
var people_list = {{ people }};
|
2012-09-27 22:12:57 +02:00
|
|
|
var have_initial_messages = {{ have_initial_messages }};
|
2012-08-30 19:56:15 +02:00
|
|
|
</script>
|
2012-09-10 20:31:53 +02:00
|
|
|
{% endautoescape %}
|
2012-09-24 17:17:41 +02:00
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
2012-10-04 22:34:00 +02:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="span3 sidebar-nav affix">
|
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="span12">
|
2012-09-17 19:07:59 +02:00
|
|
|
<ul class="nav nav-pills nav-stacked nav-zephyr" id="sidebar">
|
2012-09-14 21:27:12 +02:00
|
|
|
<span class="my_fullname">{{ user_profile.full_name }}</span><br/>
|
2012-09-21 17:33:37 +02:00
|
|
|
<span class="my_email">{{ user_profile.user.email }}</span>
|
2012-09-27 21:54:33 +02:00
|
|
|
<span class="logout">(<a href="/accounts/logout?next=/accounts/login">not you?</a>)</span>
|
2012-09-21 17:28:18 +02:00
|
|
|
<li class="active"><a href="#home" data-toggle="pill"><i class="icon-home"></i> Home</a></li>
|
|
|
|
<li><a href="#subscriptions" data-toggle="pill"><i class="icon-globe"></i> Subscriptions</a></li>
|
|
|
|
<li class="disabled"><a href="#"><i class="icon-star"></i> Starred</a></li>
|
|
|
|
<li><a href="#settings" data-toggle="pill"><i class="icon-edit"></i> Settings</a></li>
|
|
|
|
<li class="disabled"><a href="#"><i class="icon-envelope"></i> Invite a friend</a></li>
|
2012-09-26 00:26:35 +02:00
|
|
|
|
|
|
|
{% if show_debug %}
|
|
|
|
<li><a href="#debug" data-toggle="pill"><i class="icon-barcode"></i> Debug</a></li>
|
|
|
|
{% endif %}
|
|
|
|
|
2012-09-14 21:27:12 +02:00
|
|
|
<br>
|
2012-09-25 16:04:27 +02:00
|
|
|
<a href="#" class="btn btn-large btn-block" id="new_message_button" onclick="compose_button();">New Message</a>
|
2012-09-14 21:27:12 +02:00
|
|
|
</ul>
|
2012-10-04 22:34:00 +02:00
|
|
|
</div>
|
|
|
|
<div class="span12">
|
|
|
|
<div class="alert alert_sidebar alert-error" id="connection-error">
|
|
|
|
<strong>Can't receive messages</strong> — try reloading the page.
|
|
|
|
</div>
|
|
|
|
<div class="alert alert_sidebar" id="home-error"></div>
|
|
|
|
<div class="alert alert_sidebar" id="class-dne">
|
|
|
|
<p>The class <span class="classname" id="class-dne-name"></span> does not exist.</p>
|
|
|
|
<a id="create-it" class="btn btn-primary" href="#">Create and send</a>
|
|
|
|
<a class="btn" onClick="$('#class-dne').stop(true).fadeOut(500);">Cancel message</a>
|
|
|
|
</div>
|
|
|
|
<div class="alert alert_sidebar" id="class-nosub">
|
|
|
|
<p>You're not subscribed to the class <span class="classname" id="class-nosub-name"></span>.</p>
|
|
|
|
<a id="sub-it" class="btn btn-primary" href="#">Subscribe and send</a>
|
|
|
|
<a class="btn" onClick="$('#class-nosub').stop(true).fadeOut(500);">Cancel message</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!--/sidebar-->
|
|
|
|
<div class="span9 offset3 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-->
|
2012-09-14 21:27:12 +02:00
|
|
|
</div><!--/row-->
|
2012-09-14 21:47:22 +02:00
|
|
|
</div>
|
2012-09-10 20:31:53 +02:00
|
|
|
|
2012-08-28 18:44:51 +02:00
|
|
|
{% endblock %}
|