Dénote

Dénote Git Source Tree

Root/denote/templates/base.html

1<html>
2 <head>
3 <title>Dénote{% if user.get_full_name|length != 0 %} - {{ user.get_full_name }}{% endif %}</title>
4 <link rel="icon" type="image/png" href="{{ STATIC_URL }}images/favicon.png" />
5 <script type="text/javascript">
6 var hidden_categories = null;
7 function get_csrf_token() { return '{{ csrf_token }}';}
8 </script>
9 {% block head %} {% endblock %}
10 <link href="{{ STATIC_URL }}css/denote.css" rel="stylesheet" type="text/css"/>
11 <link href="{{ STATIC_URL }}css/pygments.css" rel="stylesheet" type="text/css"/>
12 <script type="text/javascript" src="{{ STATIC_URL }}js/denote.js"> </script>
13 </head>
14 <body onload="startup();">
15 <!-- Header -->
16 <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/>
17 {% endif %}
18 <form action="/search" method="post">{% csrf_token %}<input name="text"/><input type="submit" value="Search"/></form></div>
19 <!-- Left panel -->
20 <div id="left_panel">
21 <a id="home_icon" href="/" alt="Home"><img src="{{ STATIC_URL }}images/home.png"/></a><br/><br/>
22 {% if authenticated %}
23 <form id="form_note_add" action="/note/add" method="POST">
24{% csrf_token %}
25<a href="#" onclick="document.getElementById('form_note_add').submit();">Add a note</a>
26{% if templates_by_name|length != 0 %}
27<br/>
28 <select name="template">
29<option value="-1">None</option>
30{% for template in templates_by_name %}
31{% if template.id == user.default_template.id %}
32<option value="{{ template.id }}" selected="1">{{ template.name }}</option>
33{% else %}
34<option value="{{ template.id }}">{{ template.name }}</option>
35{% endif %}
36{% endfor %}
37</select>
38 <br/>
39 {% else %}
40 <input type="hidden" name="template" value="-1"/>
41{% endif %}
42</form>
43 {% endif %}
44 {% block left %} {% endblock %}
45 </div>
46 <div id="main_panel">
47 <div id="content">
48{% block content %} {% endblock %}
49 </div>
50 </div>
51 <br/><br/><br/>
52 <center><a href="http://indefero.soutade.fr/p/denote">Dénote</a> 0.2</center>
53 </body>
54</html>

Archive Download this file

Branches

Tags