Denote/denote/templates/base.html

55 lines
2.1 KiB
HTML
Raw Permalink Normal View History

2015-09-24 18:31:03 +02:00
<html>
<head>
<title>Dénote{% if user.get_full_name|length != 0 %} - {{ user.get_full_name }}{% endif %}</title>
<link rel="icon" type="image/png" href="{{ STATIC_URL }}images/favicon.png" />
2016-06-14 11:09:11 +02:00
<script type="text/javascript">
var hidden_categories = null;
function get_csrf_token() { return '{{ csrf_token }}';}
</script>
2015-09-24 18:31:03 +02:00
{% block head %} {% endblock %}
<link href="{{ STATIC_URL }}css/denote.css" rel="stylesheet" type="text/css"/>
2016-06-14 09:44:44 +02:00
<link href="{{ STATIC_URL }}css/pygments.css" rel="stylesheet" type="text/css"/>
2015-09-24 18:31:03 +02:00
<script type="text/javascript" src="{{ STATIC_URL }}js/denote.js"> </script>
</head>
2016-06-14 09:44:44 +02:00
<body onload="startup();">
2015-09-24 18:31:03 +02:00
<!-- Header -->
2016-06-30 20:13:15 +02:00
<div class="settings"><a href="/public_notes">Public notes</a> {% if authenticated %}<a href="/templates">Templates</a> <a href="/user/edit">Settings</a> <a href="/disconnect">Disconnect</a><br/>
2016-06-14 11:09:11 +02:00
{% endif %}
<form action="/search" method="post">{% csrf_token %}<input name="text"/><input type="submit" value="Search"/></form></div>
2015-09-24 18:31:03 +02:00
<!-- Left panel -->
<div id="left_panel">
<a id="home_icon" href="/" alt="Home"><img src="{{ STATIC_URL }}images/home.png"/></a><br/><br/>
2016-06-14 11:28:37 +02:00
{% if authenticated %}
2016-06-30 20:13:15 +02:00
<form id="form_note_add" action="/note/add" method="POST">
{% csrf_token %}
<a href="#" onclick="document.getElementById('form_note_add').submit();">Add a note</a>
{% if templates_by_name|length != 0 %}
<br/>
<select name="template">
<option value="-1">None</option>
{% for template in templates_by_name %}
{% if template.id == user.default_template.id %}
<option value="{{ template.id }}" selected="1">{{ template.name }}</option>
{% else %}
<option value="{{ template.id }}">{{ template.name }}</option>
{% endif %}
{% endfor %}
</select>
<br/>
{% else %}
<input type="hidden" name="template" value="-1"/>
{% endif %}
</form>
2016-06-14 11:28:37 +02:00
{% endif %}
2016-06-14 09:44:44 +02:00
{% block left %} {% endblock %}
2015-09-24 18:31:03 +02:00
</div>
<div id="main_panel">
<div id="content">
{% block content %} {% endblock %}
</div>
</div>
<br/><br/><br/>
2015-11-08 14:55:22 +01:00
<center><a href="http://indefero.soutade.fr/p/denote">Dénote</a> 0.2</center>
2015-09-24 18:31:03 +02:00
</body>
</html>