Added RDBMS info
Canonical names to forced to lowercase Made user model compatible to other DBs CSS adjustments Basic Firepad support (no presence info) Cleaned up JS a bit Added ability to remove draft from localstorage Added support for drafts on multiple pages Alert user if page changes, issue #1
This commit is contained in:
parent
d72ecf10f0
commit
eb12c84e9a
21 changed files with 841 additions and 717 deletions
|
@ -7,6 +7,7 @@
|
|||
<meta name="author" content="">
|
||||
|
||||
<title>{{ config.SITE_TITLE }}</title>
|
||||
|
||||
<link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.ico') }}">
|
||||
|
||||
{% for bundle in g.assets['css'] %}
|
||||
|
@ -14,6 +15,7 @@
|
|||
<link href="{{ ASSET_URL }}" rel="stylesheet">
|
||||
{% endassets %}
|
||||
{% endfor %}
|
||||
|
||||
{% block css %}{% endblock %}
|
||||
|
||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
|
@ -88,6 +90,20 @@
|
|||
{% block body %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var Config = {};
|
||||
{% for attr in ['RELATIVE_PATH'] %}
|
||||
Config.{{ attr }} = {{ config[attr]|tojson }};
|
||||
{% endfor %}
|
||||
|
||||
var User = {};
|
||||
User.is_authenticated = {{ current_user.is_authenticated()|tojson }};
|
||||
{% for attr in ['username', 'email'] %}
|
||||
User.{{ attr }} = {{ current_user[attr]|tojson }};
|
||||
{% endfor %}
|
||||
</script>
|
||||
|
||||
{% for bundle in g.assets['js'] %}
|
||||
{% assets bundle %}
|
||||
{% if bundle == 'editor.js' %}
|
||||
|
@ -97,6 +113,8 @@
|
|||
{% endif %}
|
||||
{% endassets %}
|
||||
{% endfor %}
|
||||
|
||||
{% block js %}{% endblock %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue