{% extends "base.html" %}

{% block page_title %}Galactic Radio Telescope - Directory{% endblock %}
{% block body %}
<div class="container">
    <h1>Galaxy Directory</h1>
    <table class="table table-striped">
        <thead>
            <tr><th>Name</th><th>Description</th><th>Users</th></tr>
        </thead>
        <tbody>
        {% for galaxy in object_list %}
            {% if galaxy.public %}
                <tr>
                    <td>
                        <a href="{% url 'galaxy-instance-detail' galaxy.uuid %}">
                            {{ galaxy.humanname }}
                        </a>
                    </td>
                    <td>{{ galaxy.description }}</td>
                    <td>{{ galaxy.latest_users_total }}</td>
                </tr>
            {% endif %}
        {% endfor %}
        </tbody>
    </table>
</div>
{% endblock %}

{% extends "base.html" %}

{% block page_title %}Galactic Radio Telescope - Directory{% endblock %}
{% block body %}
<div class="container">
    <h1>Galaxy Directory</h1>
    <table class="table table-striped">
        <thead>
            <tr><th>Name</th><th>Description</th><th>Users</th></tr>
        </thead>
        <tbody>
        {% for galaxy in object_list %}
            {% if galaxy.public or galaxy.owner == request.user or request.user.is_superuser %}
                <tr>
                    <td>
                        <a href="{% url 'galaxy-instance-detail' galaxy.uuid %}">
                            {{ galaxy.humanname }}
                        </a>
                    </td>
                    <td>{{ galaxy.description }}</td>
                    <td>{{ galaxy.latest_users_total }}</td>
                </tr>
            {% endif %}
        {% endfor %}
        </tbody>
    </table>
</div>
{% endblock %}

Fix issue of galaxies not showing up
Fix issue of galaxies not showing up
