aboutsummaryrefslogtreecommitdiff
path: root/app/templates/admin/annotations_by_dataset.html
blob: 3885d7f0ad0899d058c31205ae133f15180227e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% extends "base.html" %}

{% block styles %}
  {{ super() }}
  <link rel="stylesheet" href="{{url_for('static', filename='css/admin/view_annotation.css')}}">
{% endblock %}

{% block app_content %}
  <h1>View Annotations</h1>
  <div id="graph"></div>
{% endblock %}

{% block scripts %}
  {{ super() }}
  <script src="//d3js.org/d3.v5.min.js"></script>
  <script src="{{ url_for('static', filename='js/makeChart.js') }}"></script>
  <script>adminViewAnnotations(
    '#graph',
    {{ data.chart_data | tojson }},
    {{ data.annotations | tojson }}
    );
  </script>
{% endblock scripts %}