Dénote

Dénote Git Source Tree

Root/denote/templates/base_user.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 {% block head %} {% endblock %}
6 <link href="{{ STATIC_URL }}css/denote.css" rel="stylesheet" type="text/css"/>
7 <link href="{{ STATIC_URL }}css/pygments.css" rel="stylesheet" type="text/css"/>
8 <script type="text/javascript" src="{{ STATIC_URL }}js/denote.js"> </script>
9 <script type="text/javascript">
10 var hidden_categories = "{{ user.hidden_categories }}";
11 hidden_categories = hidden_categories.split(",");
12 function get_csrf_token() { return '{{ csrf_token }}';}
13 </script>
14 </head>
15 <body onload="startup();">
16 <!-- Header -->
17 <div class="settings"><a href="/user/edit">Settings</a> <a href="/disconnect">Disconnect</a></div>
18 <!-- Left panel -->
19 <div id="left_panel">
20 <a id="home_icon" href="/" alt="Home"><img src="{{ STATIC_URL }}images/home.png"/></a><br/><br/>
21 <a href="/note/add">Add a note</a>
22 <div id="categories">
23{% for meta_note in notes_by_category %}
24<div class="category" category_id="{{ meta_note.category_id }}">
25 <div id="category_{{ meta_note.category_id }}" class="name" ondblclick="edit_category({{ meta_note.category_id }}, '{{ meta_note.category }}')">
26 <img id="minus_{{ meta_note.category_id }}" src="{{ STATIC_URL }}images/denote_minus.png" onclick="hide_category({{ meta_note.category_id }},true);"/><img id="plus_{{ meta_note.category_id }}" src="{{ STATIC_URL }}images/denote_plus.png" onclick="show_category({{ meta_note.category_id }},true);"/>{{ meta_note.category }} ({{ meta_note.notes|length }})
27 </div>
28 <div class="edit_category" id="edit_category_{{ meta_note.category_id }}">
29 <form id="form_edit_category_{{ meta_note.category_id }}" action="/category/edit/{{ meta_note.category_id }}" method="post" onsubmit="return submit_category_name({{ meta_note.category_id }}, '{{ meta_note.category }}');">
30 {% csrf_token %}
31 <input id="cat_name_{{ meta_note.category_id }}" onkeypress="handleKeyPress(event, {{ meta_note.category_id }}, '{{ meta_note.category }}')" onblur="end_edit_category({{ meta_note.category_id }})" name="new_cat_name"/>
32 </form>
33 </div>
34 <div id="content_{{ meta_note.category_id }}" class="content" >
35 {% for note in meta_note.notes %}
36 <div class="note">
37 <a href="/note/{{ note.id}}" oncontextmenu="return DoEdit('{{ note.id}}');"><div class="title">{{ note.title }}</div></a>
38 <div class="date">{{ note.created_date }}</div>
39 <div class="summary">{{ note.short_summary }}</div>
40 </div>
41 {% endfor %}
42 </div>
43</div>
44{% endfor %}
45{% if notes_without_category|length != 0 %}
46<div class="category" category_id="-1">
47 <div id="category_-1" class="name">
48 <img id="minus_-1" src="{{ STATIC_URL }}images/denote_minus.png" onclick="hide_category(-1,true);"/><img id="plus_-1" src="{{ STATIC_URL }}images/denote_plus.png" onclick="show_category(-1,true);"/>Other ({{ notes_without_category|length }})</div>
49 <div id="content_-1" class="content">
50 {% for note in notes_without_category %}
51 <div class="note">
52 <a href="/note/{{ note.id}}" oncontextmenu="return DoEdit('{{ note.id}}');"><div class="title">{{ note.title }}</div></a>
53 <div class="date">{{ note.created_date }}</div>
54 <div class="summary">{{ note.short_summary }}</div>
55 </div>
56 {% endfor %}
57 </div>
58</div>
59{% else %}
60{% if notes_by_category|length == 0 %}
61<b>Any note</b>
62{% endif %}
63{% endif %}
64 </div>
65 </div>
66 <!-- Main panel -->
67 <div id="main_panel">
68 <div id="content">
69{% block content %} {% endblock %}
70 </div>
71 </div>
72 <br/><br/><br/>
73 <center><a href="http://indefero.soutade.fr/p/denote">Dénote</a> 0.2</center>
74 </body>
75</html>

Archive Download this file

Branches

Tags