2013-07-29 23:03:31 +02:00
{% extends "zerver/base.html" %}
2015-11-03 09:37:07 +01:00
{% load i18n %}
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
2013-01-30 23:11:34 +01:00
{% load compressed %}
Reuse minified JS from previous deploys
This is a big change affecting lots of areas:
* Pipeline no longer deals with JS (though it still minifies CSS)
* A new script, tools/minify-js (called from update-prod-static),
minifies JavaScripts
* A command-line argument --prev-deploy, if passed to minify-js or
update-prod-static, is used to copy minified JS from a previous
deploy (i.e., a previous git checkout), if the source files have
not changed
* update-deployment passes --prev-deploy
* Scripts are now included with the minified_js template tag, rather
than Pipeline's compressed_js
Also, as a side benefit of this commit, our Handlebars templates will
no longer be copied into prod-static/ and accessible in production.
Unminification is probably broken, but, per Zev and Trac ticket #1377,
it wasn't working perfectly before this change either.
(Based on code review, this commit has been revised to:
* Warn if git returns an error in minify-js
* Add missing output redirects in update-prod-static
* Use DEPLOY_ROOT instead of manually constructing that directory
* Use old style formatting)
(imported from commit e67722ea252756db8519d5c0bd6a421d59374185)
2013-07-03 22:42:25 +02:00
{% load minified_js %}
2012-09-06 21:13:15 +02:00
2013-05-16 22:42:28 +02:00
{% block page_params %}
{# Insert parameters, which have been encoded with JSONEncoderForHTML. #}
< script type = "text/javascript" >
{% autoescape off %}
var page_params = {{ page_params }};
{% endautoescape %}
< / script >
{% endblock %}
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" >
2013-11-25 23:05:08 +01:00
< style type = "text/css" >
#css-loading {
background: white;
position: fixed;
height: 100%;
width: 100%;
2013-12-18 22:56:37 +01:00
padding: 10px;
2013-11-25 23:05:08 +01:00
top: 0px;
left: 0px;
}
< / style >
2012-10-18 20:23:57 +02:00
2013-07-01 20:13:26 +02:00
{% if nofontface %}
{# We can't use @font-face on qtwebkit, so use differently minified CSS #}
{% compressed_css 'app-fontcompat' %}
{% else %}
2013-01-30 23:11:34 +01:00
{% compressed_css 'app' %}
2013-07-01 20:13:26 +02:00
{% endif %}
Reuse minified JS from previous deploys
This is a big change affecting lots of areas:
* Pipeline no longer deals with JS (though it still minifies CSS)
* A new script, tools/minify-js (called from update-prod-static),
minifies JavaScripts
* A command-line argument --prev-deploy, if passed to minify-js or
update-prod-static, is used to copy minified JS from a previous
deploy (i.e., a previous git checkout), if the source files have
not changed
* update-deployment passes --prev-deploy
* Scripts are now included with the minified_js template tag, rather
than Pipeline's compressed_js
Also, as a side benefit of this commit, our Handlebars templates will
no longer be copied into prod-static/ and accessible in production.
Unminification is probably broken, but, per Zev and Trac ticket #1377,
it wasn't working perfectly before this change either.
(Based on code review, this commit has been revised to:
* Warn if git returns an error in minify-js
* Add missing output redirects in update-prod-static
* Use DEPLOY_ROOT instead of manually constructing that directory
* Use old style formatting)
(imported from commit e67722ea252756db8519d5c0bd6a421d59374185)
2013-07-03 22:42:25 +02:00
{% minified_js 'app' %}
2013-05-14 23:14:20 +02:00
2015-10-26 17:11:44 +01:00
{% if not pipeline %}
< script type = "text/javascript" src = "/webpack/bundle.js" > < / script >
{% endif %}
2013-05-14 23:14:20 +02:00
{% if debug %}
Reuse minified JS from previous deploys
This is a big change affecting lots of areas:
* Pipeline no longer deals with JS (though it still minifies CSS)
* A new script, tools/minify-js (called from update-prod-static),
minifies JavaScripts
* A command-line argument --prev-deploy, if passed to minify-js or
update-prod-static, is used to copy minified JS from a previous
deploy (i.e., a previous git checkout), if the source files have
not changed
* update-deployment passes --prev-deploy
* Scripts are now included with the minified_js template tag, rather
than Pipeline's compressed_js
Also, as a side benefit of this commit, our Handlebars templates will
no longer be copied into prod-static/ and accessible in production.
Unminification is probably broken, but, per Zev and Trac ticket #1377,
it wasn't working perfectly before this change either.
(Based on code review, this commit has been revised to:
* Warn if git returns an error in minify-js
* Add missing output redirects in update-prod-static
* Use DEPLOY_ROOT instead of manually constructing that directory
* Use old style formatting)
(imported from commit e67722ea252756db8519d5c0bd6a421d59374185)
2013-07-03 22:42:25 +02:00
{% minified_js 'app_debug' %}
2013-05-14 23:14:20 +02:00
{% endif %}
2012-09-24 17:17:41 +02:00
{% endblock %}
{% block content %}
2013-11-25 23:05:08 +01:00
< div id = "css-loading" >
2015-11-03 09:37:07 +01:00
< h3 > {% trans 'Loading' %}...< / h3 >
< p > {% trans 'If this message does not go away, please wait a couple seconds and' %} < a href = "javascript:location.reload(true)" > {% trans 'reload' %}< / a > {% trans 'the page' %}.< / p >
2013-11-25 23:05:08 +01:00
< / div >
2013-06-27 20:32:08 +02:00
< div id = "top-screen" class = "screen" > < / div >
< div id = "bottom-screen" class = "screen" > < / div >
< div id = "left-screen" class = "screen" > < / div >
< div id = "right-screen" class = "screen" > < / div >
< div id = "clear-screen" class = "screen" > < / div >
2014-01-15 17:11:37 +01:00
{% include "zerver/navbar.html" %}
2014-01-09 16:58:51 +01:00
< div class = "fixed-app" >
< div class = "app-main" >
< div class = "column-middle column-overlay" >
< div id = "tab_bar_underpadding" > < / div >
< / div >
< / div >
< / div >
2014-02-13 22:40:40 +01:00
< div class = "app" >
2013-08-13 12:52:26 +02:00
< div class = "app-main" >
< div class = "column-left" >
2013-07-29 23:03:31 +02:00
{% include "zerver/left-sidebar.html" %}
2013-08-13 12:52:26 +02:00
< / div >
< div class = "column-middle" >
< div class = "column-middle-inner tab-content" >
2012-09-17 20:59:26 +02:00
< div class = "tab-pane active" id = "home" >
2014-02-18 17:41:49 +01:00
< div class = "fixed-app" id = "floating_recipient_bar" >
< div class = "app-main recipient_bar_content" >
< div class = "column-middle column-overlay recipient-bar-main" >
< div class = "floating_recipient" >
< div style = "display: none;" id = "current_label_stream" class = "recipient_row" >
< div class = "message_label_clickable message_header message_header_stream right_part" > < / div >
< / div >
< div style = "display: none;" id = "current_label_private_message" class = "recipient_row" >
< div class = "message_label_clickable message_header message_header_private_message right_part" > < / div >
< / div >
< / div >
< / div >
< / div >
< / div >
2014-02-07 20:02:29 +01:00
< div id = "alert-bar-container" class = "alert-bar-container" style = 'display: none;' >
< div id = "alert-bar" class = "alert-bar" >
< div id = "alert-bar-contents" class = "alert-bar-contents" >
< div id = "custom-alert-bar-content" > < / div >
< i class = "icon-vector-remove close-alert-icon" > < / i >
< / div >
< / div >
2014-02-06 23:36:45 +01:00
< / div >
2013-07-29 23:03:31 +02:00
{% include "zerver/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" >
2013-07-29 23:03:31 +02:00
{% include "zerver/subscriptions.html" %}
2012-09-10 20:31:53 +02:00
< / div >
2013-08-12 23:31:23 +02:00
< div class = "tab-pane" id = "administration" >
< / div >
2012-10-03 22:21:17 +02:00
< div class = "tab-pane" id = "settings" >
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" >
2013-07-29 23:03:31 +02:00
{% include "zerver/debug.html" %}
2012-09-26 00:26:35 +02:00
< / div >
{% endif %}
2012-09-17 20:59:26 +02:00
< / div > <!-- /tab - content -->
2013-08-13 12:52:26 +02:00
< / div >
< div class = "column-right" >
2013-07-29 23:03:31 +02:00
{% include "zerver/right-sidebar.html" %}
2013-08-13 12:52:26 +02:00
< / div > <!-- /right sidebar -->
< / div > <!-- /row -->
2013-07-29 23:03:31 +02:00
{% include "zerver/keyboard_shortcuts.html" %}
2013-12-02 22:51:03 +01:00
{% include "zerver/search_operators.html" %}
2013-07-29 23:03:31 +02:00
{% include "zerver/markdown_help.html" %}
{% include "zerver/invite_user.html" %}
{% include "zerver/bankruptcy.html" %}
{% include "zerver/logout.html" %}
{% include "zerver/tutorial_finale.html" %}
2013-06-19 01:41:27 +02:00
< div class = 'notifications top-right' > < / div >
2013-02-28 19:04:58 +01:00
< / div >
2012-08-28 18:44:51 +02:00
{% endblock %}