{% extends "base.html" %}

{% block content %}
<div class="page-header">
    <h1>{{ tower.name }}</h1>
</div>

<div class="row-fluid">
    <div class="span9">
        {{ tower.type.name }}<br/>
        {{ tower.system.name }} - {{ tower.moon.name }}<br/>
        </p>
    </div>
    <div class="span3">
        <img src="{{ tower.type.image }}"/>
    </div>
</div>
<div class="row-fluid">
    <h2>Attributes</h2>
    
    {{ tower.cpu_usage }}tf / {{ tower.power_usage }}MW
    
    <table>
    {% for name, value in tower.type.attributes_list %}
    <tr><td>{{ name }}</td><td>{{ value }}</td></tr>
    {% endfor %}
    </table>


    <h2>Nearby Modules</h2>
    <table class="table">
    {% for module in modules %}
    <tr><td>{{ module.pk }} {{ module.type.pk }}</td><td>{{ module.type.name }}</td><td>{{ module.x }}/{{ module.y }}/{{ module.z }}</td></tr>
    {% endfor %}
    </table>
</div>
{% endblock %}