{% extends 'layouts/master-page' %}
{% block title %}Most recent entries{% endblock %}
{% block head %}
  <!-- css -->
  <link href="/static/css/custom/filter.css" rel="stylesheet" />

  <!-- javascript -->
  <script type="text/javascript" src="/static/js/custom/filter.js"></script>
  <script type="text/javascript" src="/static/js/custom/pager.js"></script>
  <script type="text/javascript">
    function setSettings(){
      {% if settings is defined%}
        document.getElementById('timeSelect').value = "{{settings['timeSelect']}}";
        document.getElementById('startDate').value = "{{settings['startDate']}}";
        document.getElementById('endDate').value = "{{settings['endDate']}}";
        document.getElementById('timeTypeSelect').value = "{{settings['timeTypeSelect']}}";
        document.getElementById('cvssSelect').value = "{{settings['cvssSelect']}}";
        document.getElementById('cvss').value = "{{settings['cvss']}}";
        document.getElementById('rejectedSelect').value = "{{settings['rejectedSelect']}}";
        cvssSelectDisable()
        timeSelectDisable()
      {%endif%}
    }
  </script>
{% endblock %}
{% block content %}
  <!-- Filter options -->
  {% include 'subpages/filters.html' %}
  <!-- Pager -->
  {% include 'subpages/pager.html' %}
  <!-- Search results -->
  {% include 'subpages/table.html' %}
  <!-- Pager -->
  {% include 'subpages/pager.html' %}
  <!-- end content -->
{% endblock %}
