aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/entity_history.html
blob: 05fae0c38cb9db06e0dc13b394c2ab9facb6e82e (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
36
37
38
39
40
41
42
{% set entity_view = "history" %}
{% extends "entity_base.html" %}

{% block entity_main %}

<h3 class="ui header">Entity Edit History</h3>

This table only shows <i>accepted</i> edits included in the catalog, not any work-in-progress.

<table class="ui table">
  <thead><tr><th>Changelog
             <th>Editgroup
             <th>Description
  <tbody>
  {% for entry in history %}
  <tr><td><a href="/changelog/{{ entry.changelog_entry.index }}">#{{ entry.changelog_entry.index }}</a>
          <br>{{ entry.changelog_entry.timestamp.strftime("%Y-%m-%d %H:%M") }}
      <td>
        {% if entry.editgroup.editor.is_bot %}
          <i class="icon server"></i>
        {% else %}
          <i class="icon user"></i>
        {% endif %}
        <code><a href="/editor/{{ entry.editgroup.editor_id }}">
          {{ entry.editgroup.editor.username }}</a>
        </a></code>
        <br>
        <small><code><a href="/editgroup/{{ entry.editgroup.editgroup_id }}">
          editgroup_{{ entry.editgroup.editgroup_id }}
        </a></code></small>
        <a href="/editgroup/{{ entry.editgroup.editgroup_id }}/{{ entity_type }}/{{ entry.edit.ident }}">
          [view]
        </a>
      <td>{% if entry.editgroup.description != None %}{{ entry.editgroup.description }}{% endif %}
  {% endfor %}
</table>
<div style="float: right; font-size: smaller;">
  <a href="{{ config.FATCAT_PUBLIC_API_HOST }}/{{ entity_type }}/{{ entity.ident }}/history">As JSON via API</a>
</div>


{% endblock %}