<!-- Copyright 2019 British Broadcasting Corporation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. -->

<!doctype html>
<html>
  <head>
    <title>BBC R&amp;D Auth Server</title>
    <link rel="stylesheet" type="text/css" href="{{ url_for('_style', filename='style.css') }}">
    <link rel="icon" href="{{ url_for('_style', filename='bbc_favicon.ico') }}">
  </head>

  <body>
    <div class="navbar">
      <h1><a href="{{ url_for('_home') }}">R&amp;D Authorisation Server</a></h1>
      <a href="{{ url_for('_create_client_get') }}">Register Client</a>
      <a href="{{ url_for('_fetch_token') }}">Request Token</a>
      <a href="{{ url_for('_get_cert') }}">Certificates</a>
      <a href="{{ url_for('_get_users') }}">Users</a>
    </div>
    <div class="page">
      {% block body %}{% endblock %}
    </div>
    <script type="text/javascript">
      $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
    </script>
    <script src="{{ url_for('_style', filename='jquery.js') }}"></script>
    <script src="{{ url_for('_style', filename='main.js') }}"></script>
  </body>
</html>
