aboutsummaryrefslogtreecommitdiff
path: root/design/templates/notes/partials/note_list.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-12-29 08:37:39 -0600
committerluxagraf <sng@luxagraf.net>2018-12-29 08:37:39 -0600
commit4f7b84194b056b5d6d9acca4cceb2cabc04fd8a5 (patch)
tree7fe109e7aeaddab7aa5e7f46f99414064a248e52 /design/templates/notes/partials/note_list.html
parent02f520038e3c6d5a01c9545e9b1c3eb91e4e016c (diff)
cleaned up JS and made modal handler.
Diffstat (limited to 'design/templates/notes/partials/note_list.html')
-rw-r--r--design/templates/notes/partials/note_list.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/design/templates/notes/partials/note_list.html b/design/templates/notes/partials/note_list.html
index 0c91b34..9ba4689 100644
--- a/design/templates/notes/partials/note_list.html
+++ b/design/templates/notes/partials/note_list.html
@@ -1,11 +1,11 @@
-<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 %}">
+<li {% if object.notebook and not hidecolor %}class="notebook-colored" style="border-left-color: {{object.notebook.color_rgba}};" {% endif %} >
+ <a href="{{object.get_absolute_url}}">
<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>
+ <a href="{{object.notebook.get_absolute_url}}"><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 %}">