Source

MyHost / src / hosts / templates / hosts / host_detail.html

{% extends "base.html" %}
{% load i18n %}
{% load widget_tweaks %}
{% load thumbnail %}
{% load gencal %}


{% block main_content %}
        <div class="span3">
            <div class="well sidebar-nav">
            </div>
        </div>
        <div class="span9">
            <div class="hero-unit">
                <div class="span4">
                    <h1>{{ object.name }}</h1>
                </div>
                <div class="span5">
                    {% if host.user.avatar %}
                    <img src="{{ host.user.avatar|thumbnail_url:'avatar' }}" alt="">
                    {% endif %}
                    {{ host.user.user.first_name }}
                    {{ host.user.user.last_name }}
                    - {{ host.user.ldap }}
                </div>
                <button class="btn btn-large btn-success">Book host now</button>
                </button>
            </div>
            <div class="row-fluid">
                <div class="frame">
                    <div class="span4">
                        {% gencal queryset 2012 06 %}
                    </div>
                    <div class="span4">
                        {% gencal queryset 2012 07 %}
                    </div>
                    <div class="span4">
                        {% gencal queryset 2012 08 %}
                    </div>
                </div>
            </div>
            <div class="row-fluid">
                <div class="span12 frame status status-{{ status_last_ping }}">
                    <h1>Host Details</h1>
                    <p></p>
                    <ul>
                        <li>
                            last update: {{ host.time_change }}
                        </li>
                        <li>
                            Hardwaredb ID:
                            <a href="http://quecksilber.amd.com/hardwaredb/index.php?head=systems&rev_id={{ host.hardware_db_id }}">
                                {{ host.hardware_db_id }}
                            </a>
                        </li>
                        <li>
                            CPUs: {{ host.cpu_number }}x {{ host.cpu_type.name }}
                        </li>
                        <li>
                            location: {{ host.location }}
                        </li>
                        <li>
                            Last ping: {{ host.time_last_ping|date:"r" }}
                        </li>
                    </ul>
                </div>
            </div>
            <div class="row-fluid">
                <div class="span12 frame status status-{{ status_tapper }}">
                    <h1>Tapper Details</h1>
                    <p></p>
                    {% if host.in_tapper %}
                        {% with host.tapper as t %}
                            <ul>
                                <li>
                                    Tapper ID: <a href="http://tapper/tapper/testruns/host/{{ host.name }}">{{ t.tapper_id }}</a>
                                </li>
                                <li>
                                    {% if t.tapper_status != 'free' %}
                                        Current testrun id: <a href="http://tapper/tapper/testruns/id/{{ t.tapper_status }}">{{ t.tapper_status }}</a>
                                    {% else %}
                                        Host is not running any tapper testrun right now
                                    {% endif %}
                                </li>
                                <li>
                                    Comment: {{ t.comment }}
                                </li>
                                <li>
                                    Queues: {{ t.queues }}
                                </li>
                                <li>
                                    last update: {{ t.time_last_update|date:"jS F Y H:i" }}
                                </li>
                            </ul>
                        {% endwith %}
                    {% else %}
                        This host is not registered in Tapper.
                    {% endif %}
                </div>
            </div>
        </div>
{% endblock %}