{% extends "sentry/projects/manage.html" %}

{% load i18n %}

{% block title %}{% trans "Client Configuration" %} | {{ block.super }}{% endblock %}

{% block breadcrumb %}
    {{ block.super }}
    <li class="divider"></li>
    <li><a href="{% url sentry-project-client-help project.slug %}">{% trans "Client Configuration" %}</a></li>
{% endblock %}

{% block inner %}
    <div class="page-header">
        <h2>{% trans "Client Configuration" %}</h2>
    </div>

    {% if key %}
        <p>{% trans "To start sending events, configure your client with the following DSN value:" %}</p>

        <pre class="clippy">{{ dsn }}</pre>

        <p>{% blocktrans with 'https://github.com/getsentry/raven-js' as link %}If this is a client that only needs public access (like <a href="{{ link }}">raven-js</a>), you can use the following public DSN:{% endblocktrans %}</p>

        <pre class="clippy">{{ dsn_public }}</pre>
    {% else %}
        {% url sentry-project-keys project.slug as link %}
        <p>{% blocktrans %}There is no API key assigned to your account. Generate a new key or select one from the <a href="{{ link }}">API Keys page</a>.{% endblocktrans %}</p>
    {% endif %}

    <div class="page-header">
        <h3>{% trans "Platform Instructions" %}</h3>
    </div>

    <p>{% trans "Choose your platform for quick setup instructions:" %}</p>
    {% include "sentry/partial/_client_config.html" %}

    <p>{% blocktrans with 'http://sentry.readthedocs.org' as link %}For more information on developing clients and the Sentry API, see the <a href="{{ link }}">documentation</a>.{% endblocktrans %}</p>
{% endblock %}

