summaryrefslogtreecommitdiff
path: root/app/notes/templates/note_detail.html
blob: 5dc7ace725bd5d3fc4e8a7daf03cc43874c36d3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% extends 'base_notes.html' %}
{% block primary %}
<style>
p {
    margin-top: 1rem !important;
    margin-bottom: 1rem;
}
</style>
<main class="post-detail">
    <div class="note-list">
        <article>
    <h2>{% if object.url %}<a href="{{object.url}}">{{object.title}}</a>{%else%}{{object.title}}{%endif%} <span class="note-edit"><a href="{%url 'notes:note-edit' object.id %}">edit</a></span></h2>
    <p>{{object.description}}</p>
    --------------------
    <p>{{object.body_html|safe}}</p>
    <p class="small"><a href="{% url 'notes:note-delete' object.pk %}">delete</a></p>
        </article>
</div>
</main>


{% endblock %}
{% block js %}
<script type="text/javascript">var go_from_select = function(opt) { window.location = window.location.pathname + opt };</script>
{% endblock%}