{% extends "sentry/layout.html" %}

{% load sentry_api %}

{% block body %}
  <div id="blk_router"></div>
  <script>
  $(function(){
    Router.run(Sentry.routes, Router.HistoryLocation, function(Handler) {
      React.render(React.createFactory(Handler)({
        config: {
          singleOrganization: {% if SINGLE_ORGANIZATION %}true{% else %}false{% endif %},
          urlPrefix: '{{ URL_PREFIX }}',
          version: {
            current: '{{ sentry_version.current }}',
            latest: '{{ sentry_version.latest }}',
            upgradeAvailable: {% if sentry_version.upgrade_available %}true{% else %}false{% endif %}
          },
          features: {{ features }},
          mediaUrl: '{% url 'sentry-media' "sentry" '' %}',
        {% if request.user.is_authenticated %}
          isAuthenticated: true,
          user: {% serialize request.user %}
        {% else %}
          isAuthenticated: false,
          user: null
        {% endif %}
        }
      }), document.getElementById('blk_router'));
    });
  });
  </script>
{% endblock %}

{% extends "sentry/layout.html" %}

{% load sentry_api %}

{% block body %}
  <div id="blk_router">
    <div class="loading">
      <div class="loading-mask"></div>
      <div class="loading-indicator"></div>
      <div class="loading-message">Please wait while we load an obnoxious amount of JavaScript.</div>
    </div>
  </div>
  <script>
  $(function(){
    Router.run(Sentry.routes, Router.HistoryLocation, function(Handler) {
      React.render(React.createFactory(Handler)({
        config: {
          singleOrganization: {% if SINGLE_ORGANIZATION %}true{% else %}false{% endif %},
          urlPrefix: '{{ URL_PREFIX }}',
          version: {
            current: '{{ sentry_version.current }}',
            latest: '{{ sentry_version.latest }}',
            upgradeAvailable: {% if sentry_version.upgrade_available %}true{% else %}false{% endif %}
          },
          features: {{ features }},
          mediaUrl: '{% url 'sentry-media' "sentry" '' %}',
        {% if request.user.is_authenticated %}
          isAuthenticated: true,
          user: {% serialize request.user %}
        {% else %}
          isAuthenticated: false,
          user: null
        {% endif %}
        }
      }), document.getElementById('blk_router'));
    });
  });
  </script>
{% endblock %}

Add basic global pre-load indicator (fixes GH-1636)
Add basic global pre-load indicator (fixes GH-1636)
