aboutsummaryrefslogtreecommitdiff
path: root/design/templates/notes/partials/note_list.html
blob: 0c91b34f68f8be67782748488aa26b43b3afe907 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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>