From cb21e59587ab328e9a3e06c9d57c2bafce281715 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 6 Dec 2018 06:59:25 -0600 Subject: restructed notes urls, added more tests --- design/templates/notes/partials/note_list.html | 16 ++++++++++++++++ design/templates/notes/partials/note_sidebar.html | 13 +++++++++++++ design/templates/pages/page.html | 5 +---- 3 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 design/templates/notes/partials/note_list.html create mode 100644 design/templates/notes/partials/note_sidebar.html (limited to 'design') diff --git a/design/templates/notes/partials/note_list.html b/design/templates/notes/partials/note_list.html new file mode 100644 index 0000000..0c91b34 --- /dev/null +++ b/design/templates/notes/partials/note_list.html @@ -0,0 +1,16 @@ +
  • + +

    {{object.title}}

    +
    {{object.body_text|truncatewords:36}}
    +
    +
    {% if object.notebook and not hidenotebook %} + {% endif %} +
    tags: {% for tag in object.tags.all %} + + {{tag}} + + {%endfor%}
    +
    +
  • diff --git a/design/templates/notes/partials/note_sidebar.html b/design/templates/notes/partials/note_sidebar.html new file mode 100644 index 0000000..1209fee --- /dev/null +++ b/design/templates/notes/partials/note_sidebar.html @@ -0,0 +1,13 @@ +
    + +
    +
    + +
    diff --git a/design/templates/pages/page.html b/design/templates/pages/page.html index 3feff75..9eccaff 100644 --- a/design/templates/pages/page.html +++ b/design/templates/pages/page.html @@ -1,6 +1,6 @@ {% extends 'base.html' %} {% block content %} -
    +

    {{page.title}}

    {{page.body_html|safe}}
    @@ -22,9 +22,6 @@ novicell.overlay.create({ 'selector': trigger.getAttribute('data-element'), 'class': 'selector-overlay', - "onCreate": function() { console.log('created'); }, - "onLoaded": function() { console.log('loaded'); }, - "onDestroy": function() { console.log('Destroyed'); } }); }); {% endif %} -- cgit v1.2.3