aboutsummaryrefslogtreecommitdiff
path: root/app/templates/admin/annotations_by_dataset.html
blob: fd646730ac14e74240e9f416fbd5df2ef2aea52c (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
{% 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>
  {% if is_multi %}
  <script src="{{ url_for('static', filename='js/makeChartMulti.js') }}"></script>
  {% else %}
  <script src="{{ url_for('static', filename='js/makeChart.js') }}"></script>
  {% endif %}
  <script>adminViewAnnotations(
    '#graph',
    {{ data.chart_data | tojson }},
    {{ data.annotations | tojson }}
    );
  </script>
{% endblock scripts %}