failmap/admin

View on GitHub
websecmap/game/templates/game/submitted_organizations_list.html

Summary

Maintainability
Test Coverage
{% load humanize %}
<h2>Submitted organizations</h2>
<p>This is a list of submitted organizations during this contest. Below it also shows the urls that already exist.
This information can help you to quickly determine if an organization is already being investigated and if some
information is still missing.</p>
{% for organization in submitted_organizations %}

    {% ifchanged organization.organization_type_name %}
        </tbody></table><h3>Layer: {{ organization.organization_type_name }}</h3><table class="table table-sm table-striped table-bordered table-hover">
            <thead>
            <tr>
                <th width="20%">Organization (urls)</th>
                <th width="30%">Address</th>
                <th width="5%">Acceptation</th>
                <th width="10%">Added on</th>
                <th width="15%">Search</th>
            </tr>
            </thead><tbody>
    {% endifchanged %}

    <tr style="background-color: {{ organization.added_by_team.color }}33;" title="Added by {{ organization.added_by_team.name }}">
        <td>{{ organization.organization_name }} {% if organization.has_been_accepted %}({{ organization.num_urls }}) {% else %} <span style="color: red">!!!</span>{% endif %}</td>
        <td>{{ organization.organization_address }}</td>
        {% if organization.has_been_accepted %}
        <td style="color: green;">accepted</td>
        {% elif organization.has_been_rejected %}
        <td style="color: red;">rejected</td>
        {% else %}
        <td style="color: gray;">pending</td>
        {% endif %}
        <td>{{ organization.added_on|naturaltime  }}</td>
        <td>
            <a href="https://www.duckduckgo.com/?q={{ organization.organization_name }}" target="_blank">duckduckgo</a>,
            <a href="https://www.google.com/search?q={{ organization.organization_name }}" target="_blank">google</a>
            {% if contest.target_country == "NL" %}
            <a href="https://www.kvk.nl/zoeken/?source=all&q={{ organization.organization_name }}" target="_blank">kvk</a>
            {% endif %}
        </td>
    </tr>
    {% empty %}
    <tr><td colspan="7">-</td></tr>
{% endfor %}
</tbody>
</table>