diff options
author | luxagraf <sng@luxagraf.net> | 2018-12-06 06:59:25 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-12-06 06:59:25 -0600 |
commit | cb21e59587ab328e9a3e06c9d57c2bafce281715 (patch) | |
tree | ca98741b686ce3e00c0e001caedf51683b921a0c /design/templates/notes/partials/note_list.html | |
parent | d45fa99aa9d587b5674484f68955b43f39e8f6fd (diff) |
restructed notes urls, added more tests
Diffstat (limited to 'design/templates/notes/partials/note_list.html')
-rw-r--r-- | design/templates/notes/partials/note_list.html | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ +<li {% if object.notebook and not hidecolor %}class="notebook-colored" style="border-left-color: {{object.notebook.color_rgb}};" {% endif %} > + <a href="{% url 'notes:detail' object.slug object.pk %}"> + <h4>{{object.title}}</h4> + <div class="note-preview">{{object.body_text|truncatewords:36}}</div> + </a> + <div class="flex-wrapper">{% if object.notebook and not hidenotebook %} + <div class="notebook"> + <a href="{% url 'notebooks:detail' object.slug %}"><span class="color-box" style="background-color: {{object.notebook.color_rgb}}"></span>{{object.notebook}}</a> + </div>{% endif %} + <div class="tags">tags: {% for tag in object.tags.all %} + <a href="{% url 'notes:tags' tag.slug %}"> + <span class="tag-wrapper" data-bg-color="#{{tag.color_hex}};" >{{tag}}</span> + </a> + {%endfor%}</div> + </div> + </li> |