{% extends 'server_control_panel/base.html' %} {% load i18n static localcosmos_tags %} {% block content %}

{% trans 'Server Info' %}

API URL: {{ request.scheme }}://{{ request.get_host }}{% url 'api_home' %}
{% trans 'Use this url in the App Kit on localcosmos.org to connect your app to this server.' %}

{% trans 'Installed Apps' %}

{% if apps %} {% for app in apps %}
{% trans 'App' %} {% if localcosmos_private %} {% endif %}
{{ app }}
UID: {{ app.uid }}
{% if app.published_version %} {% trans 'version' %}: {{ app.published_version }}


{% trans 'Webapp' %}: {% if app.get_url %} {% if localcosmos_private %} {{ app.get_url }} {% else %} {{ request.scheme }}://{{ app.get_url }} {% endif %} {% else %} {% trans 'not available' %} {% endif %}

{% trans 'API Status' %}:
{% if localcosmos_private %} {% else %}
{% trans 'Android' %}: {% if app.apk_url %} {% trans 'download' %} {% else %} {% trans 'not available' %} {% endif %}
{% trans 'iOS' %}: {% if app.ipa_url %} {% trans 'download' %} {% else %} {% trans 'not available' %} {% endif %}
{% endif %}

{% else %} {% trans 'draft' %}

{% trans 'More information will be avaibale when this app has been published.' %}

{% endif %}
{% endfor %} {% else %}
{% trans 'You have not installed any apps yet.' %}
{% endif %}

{% endblock %} {% block extra_script %} {% endblock %}