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 +++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 design/templates/notes/partials/note_list.html create mode 100644 design/templates/notes/partials/note_sidebar.html (limited to 'design/templates/notes') 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 @@ +
    + +
    +
    + +
    -- cgit v1.2.3