summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/editor_annotations.html
blob: 7a8b53cf46573dc864e449d023a07399df8945bf (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
26
27
28
29
30
31
32
33
34
35
{% extends "base.html" %}
{% block body %}

<h1 class="ui header">{{ editor.username }}: Comments and Annotations
<div class="sub header">
  <code>editor_{{ editor.editor_id }}</code>
</div>
</h1>
<a href="/editor/{{ editor.editor_id }}/editgroups">Edit History</a> - 
<a href="/editor/{{ editor.editor_id }}/annotations">Comments and Annotation History</a>

<br>
<br>
{% for annotation in annotations %}
  <div class="ui segments">
    <div class="ui top attached secondary segment">
      On <b><small><code><a href="/editgroup/{{ annotation.editgroup_id }}">
        {{ annotation.editgroup_id }}
      </a></code></small></b>
      at {{ annotation.created.strftime("%Y-%m-%d %H:%M:%S") }}
    </div>
    {% if annotation.extra %}
    <div class="ui attached segment">
      {{ entity_macros.extra_metadata(annotation.extra) }}
    </div>
    {% endif %}
    <div class="ui bottom attached segment">
      {{ annotation.comment_markdown|markdown(escape=True) }}
    </div>
  </div>
{% else %}
  <i>No comments or annotations for this editor!</i>
{% endfor %}

{% endblock %}