From 5b9343d77d8321e44d1ffc60769c651771dc38dd Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 13 Jan 2019 11:42:01 -0600 Subject: Refactored Javascript, started on forums --- design/templates/notes/notebook_detail.html | 4 ++ design/templates/notes/notes_list.html | 2 + design/templates/notes/notes_list_by_tag.html | 71 +++++++++++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 design/templates/notes/notes_list_by_tag.html (limited to 'design/templates/notes') diff --git a/design/templates/notes/notebook_detail.html b/design/templates/notes/notebook_detail.html index 49717ca..43ec1df 100644 --- a/design/templates/notes/notebook_detail.html +++ b/design/templates/notes/notebook_detail.html @@ -1,9 +1,13 @@ {% extends 'base.html' %} +{% block bodyid %}body-notebook{%endblock%} {% block extrastyles %} {% endblock %} +{% block color %} +{% if object.color_rgb %}
{%endif%} +{%endblock%} {% block content %}
diff --git a/design/templates/notes/notes_list.html b/design/templates/notes/notes_list.html index 0799a1c..5b050b4 100644 --- a/design/templates/notes/notes_list.html +++ b/design/templates/notes/notes_list.html @@ -1,4 +1,6 @@ {% extends 'base.html' %} +{% block bodyid %}body-notebook{%endblock%} + {% block content %}
diff --git a/design/templates/notes/notes_list_by_tag.html b/design/templates/notes/notes_list_by_tag.html new file mode 100644 index 0000000..d7cc350 --- /dev/null +++ b/design/templates/notes/notes_list_by_tag.html @@ -0,0 +1,71 @@ +{% extends 'base.html' %} +{% block jsinclude %} + + +{%endblock%} +{% block content %} +
+
+
+

Notes

+ {% if messages %} +
    + {% for message in messages %} + + {% if 'safe' in message.tags %}{{ message|safe }}{% else %}{{ message }}{% endif %} + + {% endfor %} +
+ {% endif %} + {% if tag_list|length >= 1%}

Tagged with: {% for tag in tag%}{{tag.name}}{%endfor%}

{%endif%} +
+ + +
+
+ {%comment%} +{%endcomment%} + +
    {% for object in object_list %} + {% include "notes/partials/note_list.html" with object=object %} + {% endfor %}
+
{% if tags|length >= 1%} + {%comment%}{%endcomment%} + {%else%} + + {%endif%} + +
+{% endblock %} +{% block jsdomready %} +{% endblock %} -- cgit v1.2.3-70-g09d2