Skip to main content

max / makenotwork

1.8 KB · 40 lines History Blame Raw
1 {# The reader's own annotations on the object this page shows. Read-only: the
2 write half is `git_annotation_edit.html`, which follows it. Included only by
3 the commit page, the way `git_notes_edit.html` is, because a commit is what
4 the browser lets anybody annotate; the file view shows the repository's own
5 notes and nothing private.
6
7 Nobody but the signed-in reader ever sees a row here. The handler reads
8 their annotation repository and nobody else's, and it reads nothing at all
9 for a visitor who is signed out. #}
10 {% if can_annotate %}
11 <div class="git-annotations" id="annotations">
12 <h2 class="git-annotations-heading">Your annotations</h2>
13 <p class="git-annotations-privacy">
14 Only you can see these. They live in your own annotation repository,
15 not in this one, and they clone and export like anything else.
16 </p>
17 {% for a in personal_annotations %}
18 <div class="git-annotation-entry">
19 <div class="git-annotation-header">
20 {% if let Some(origin) = a.origin %}
21 {% if let Some(link) = a.link %}
22 <a class="git-annotation-origin" href="{{ link }}">{{ origin }}</a>
23 {% else %}
24 <span class="git-annotation-origin">{{ origin }}</span>
25 {% endif %}
26 {% endif %}
27 <span class="git-annotation-target">{{ a.short_target }}</span>
28 {% if !a.updated.is_empty() %}
29 <span class="git-annotation-when">{{ a.updated }}</span>
30 {% endif %}
31 {% if a.orphan %}
32 <span class="git-annotation-orphan">Annotates a commit makenot.work no longer serves.</span>
33 {% endif %}
34 </div>
35 <div class="git-note-body git-readme-body">{{ a.html|safe }}</div>
36 </div>
37 {% endfor %}
38 </div>
39 {% endif %}
40