aphene_django/graphiql.js' %}"></script>
  <script>
  {% if perms.extras.view_graphqlquery %}
    document.addEventListener('DOMContentLoaded', function() {
      queries_tab = `
        <div class="btn-group" role="button">
          <button class="toolbar-button dropdown-toggle" aria-haspopup="true" aria-expanded="false" data-toggle="dropdown">
              <span>Queries </span>
              <span class="caret"></span>
          </button>
          <ul class="dropdown-menu" id="graphql-queries-menu">
  