2012-09-10 20:31:53 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Humbug, from Humbug Inc.</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link href="static/styles/zephyr.css" rel="stylesheet">
|
2012-09-11 00:18:09 +02:00
|
|
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
|
2012-09-10 20:31:53 +02:00
|
|
|
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap-responsive.css" rel="stylesheet">
|
|
|
|
|
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-08-28 18:44:51 +02:00
|
|
|
|
2012-09-06 21:13:15 +02:00
|
|
|
{% load jstemplate %}
|
|
|
|
|
2012-08-28 22:04:10 +02:00
|
|
|
|
2012-08-28 18:44:51 +02:00
|
|
|
{% block content %}
|
|
|
|
|
2012-09-06 21:13:15 +02:00
|
|
|
{% icanhazjs "zephyr" %}
|
2012-09-10 20:31:53 +02:00
|
|
|
{% autoescape off %}
|
2012-09-11 20:13:53 +02:00
|
|
|
<link href="/static/third/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<link href="/static/third/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
|
|
|
|
<link href="/static/third/jquery/jquery-ui-1.8.23.custom.css" rel="stylesheet">
|
|
|
|
{# We need to import jQuery before Bootstrap #}
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>
|
|
|
|
<script src="/static/third/bootstrap/js/bootstrap.min.js"></script>
|
|
|
|
<script src="/static/js/common.js"></script>
|
2012-09-06 17:22:38 +02:00
|
|
|
<script type="text/javascript" src="/static/third/jquery/jquery.form.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/third/ich/ICanHaz.min.js"></script>
|
2012-08-29 17:12:21 +02:00
|
|
|
<script type="text/javascript" src="/static/js/zephyr.js"></script>
|
2012-08-30 19:56:15 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
var initial_zephyr_json = {{ zephyr_json }};
|
2012-09-04 18:45:45 +02:00
|
|
|
var initial_pointer = {{ user_profile.pointer }};
|
2012-08-31 22:50:24 +02:00
|
|
|
var username = "{{ user_profile.user.username }}";
|
2012-09-04 20:31:23 +02:00
|
|
|
var class_list = {{ classes }};
|
|
|
|
var instance_list = {{ instances }};
|
|
|
|
var people_list = {{ people }};
|
2012-08-30 19:56:15 +02:00
|
|
|
</script>
|
2012-09-10 20:31:53 +02:00
|
|
|
{% endautoescape %}
|
2012-08-28 18:44:51 +02:00
|
|
|
|
2012-09-10 20:31:53 +02:00
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="span3">
|
|
|
|
<div class="zephyr_well well sidebar-nav">
|
|
|
|
<ul class="nav nav-list nav-zephyr">
|
|
|
|
<span class="realname">Your Name</span><br/>
|
|
|
|
<span class="email">{{ user_profile.user.username }}@humbughq.com</span>
|
|
|
|
<span class="logout">(<a href="/accounts/logout?next=/">not you?</a>)</span>
|
|
|
|
<li><a href="subscriptions/">Manage subscriptions</a></li>
|
|
|
|
<li><a href="#">View starred messages</a></li>
|
|
|
|
<li><a href="">Search</a></li>
|
|
|
|
<li><a href="#">Invite a friend</a></li>
|
|
|
|
<br>
|
2012-09-11 16:54:25 +02:00
|
|
|
<a href="#" class="btn btn-large btn-block button-slide">New Message</a>
|
2012-09-10 20:31:53 +02:00
|
|
|
</ul>
|
|
|
|
</div><!--/.well -->
|
|
|
|
</div><!--/span-->
|
|
|
|
<div class="span9">
|
|
|
|
<div class="zephyr_list" id="main_div">
|
2012-09-11 19:39:01 +02:00
|
|
|
<br/><br/>
|
2012-09-11 20:13:53 +02:00
|
|
|
<table class="zephyr_table" id="table">
|
|
|
|
<tbody>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2012-09-11 19:39:01 +02:00
|
|
|
<br/><br/>
|
2012-09-11 18:12:02 +02:00
|
|
|
<div class="narrow"><span id="narrow_indicator"></span>. <button id="unhide" class="btn" disabled=disabled onclick="unhide()">Show all.</button> </div>
|
2012-09-11 20:13:53 +02:00
|
|
|
</div>
|
2012-09-10 20:31:53 +02:00
|
|
|
<div class="tabbable container zephyr_compose">
|
|
|
|
<ul class="nav nav-tabs" id="zephyr-type-tabs">
|
|
|
|
<li class="active"><a href="#class-message" data-toggle="tab">Class message</a></li>
|
|
|
|
<li><a href="#personal-message" data-toggle="tab">Personal message</a></li>
|
|
|
|
<li class="alert pull-right" id="send-status"></li>
|
|
|
|
</ul>
|
2012-08-29 18:11:15 +02:00
|
|
|
|
2012-09-10 20:31:53 +02:00
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active" id="class-message">
|
|
|
|
<div class="zephyr_comp">
|
2012-09-11 20:13:53 +02:00
|
|
|
<br/>
|
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2012-09-10 20:31:53 +02:00
|
|
|
<td class="pointer"><p></p></td>
|
|
|
|
<form action="/zephyr/" method="post" class="zephyr">
|
|
|
|
<input type="hidden" name="type" value="class" />
|
|
|
|
{% csrf_token %}
|
|
|
|
</div>
|
2012-08-29 01:05:57 +02:00
|
|
|
</div>
|
2012-09-10 20:31:53 +02:00
|
|
|
|
2012-09-11 20:13:53 +02:00
|
|
|
<td class="zephyr_recipient">
|
|
|
|
<p>
|
|
|
|
<span class="zephyr_label_clickable zephyr_class">
|
2012-09-10 20:31:53 +02:00
|
|
|
<input type="text" class="zephyr_recipient_box" name="class" id="class" value="" />
|
2012-09-11 20:13:53 +02:00
|
|
|
</span>
|
|
|
|
<br/>
|
|
|
|
<span class="zephyr_label_clickable zephyr_instance">
|
2012-09-10 20:31:53 +02:00
|
|
|
|
|
|
|
<input type="text" class="zephyr_recipient_box" name="instance" id="instance" value="" />
|
2012-09-11 20:13:53 +02:00
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
<td class="messagebox compose">
|
|
|
|
<img class="profile_picture" src="http://www.gravatar.com/avatar/a?d=identicon"/>
|
|
|
|
<p class="zephyr_text">
|
2012-09-10 20:31:53 +02:00
|
|
|
<textarea class="zephyr_message" name="new_zephyr" id="new_zephyr" value="" /></textarea>
|
2012-09-11 20:25:29 +02:00
|
|
|
<input type="submit" value="Zephyr" class="btn send_zephyr" />
|
2012-09-11 20:13:53 +02:00
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2012-09-10 20:31:53 +02:00
|
|
|
<tr>
|
|
|
|
<td></td><td></td><td>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2012-09-11 20:13:53 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2012-09-10 20:31:53 +02:00
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane" id="personal-message">
|
|
|
|
<form action="/zephyr/" method="post" class="zephyr">
|
|
|
|
<input type="hidden" name="type" value="personal" />
|
|
|
|
{% csrf_token %}
|
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="span6">
|
|
|
|
<label>User</label>
|
|
|
|
<input type="text" name="recipient" id="recipient" value="" />
|
|
|
|
</div>
|
2012-08-29 01:05:57 +02:00
|
|
|
</div>
|
2012-09-10 20:31:53 +02:00
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="span12">
|
|
|
|
<label>Content</label>
|
|
|
|
<textarea rows="4" cols="60" name="new_zephyr" id="new_personal_zephyr" value="" /></textarea>
|
|
|
|
<input type="submit" name="personal_zephyr" value="Send personal" class="btn" />
|
|
|
|
</div>
|
2012-08-29 01:05:57 +02:00
|
|
|
</div>
|
2012-09-10 20:31:53 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
2012-08-29 01:05:57 +02:00
|
|
|
</div>
|
2012-09-10 20:31:53 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div><!--/span-->
|
|
|
|
</div><!--/row-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row-fluid" id="connection-error">
|
|
|
|
<div class="span12">
|
|
|
|
<div class="alert alert-error">
|
|
|
|
<strong>Can't receive messages</strong> — try reloading the page.
|
|
|
|
</div>
|
2012-08-29 01:05:57 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2012-09-10 20:31:53 +02:00
|
|
|
<div class="alert" 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" 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>
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-28 18:44:51 +02:00
|
|
|
|
|
|
|
{% endblock %}
|