UI improvements

stable
Thomas Petazzoni 2009-08-31 23:49:39 +02:00
rodzic 67f2decc39
commit b67dacafb5
3 zmienionych plików z 54 dodań i 18 usunięć

Wyświetl plik

@ -167,3 +167,27 @@ input[type="submit"]
{ {
width: 300px; width: 300px;
} }
table.list
{
margin: 1em;
padding-right: 2em;
width: 100%;
}
table.list tr
{
background: white;
}
table.list tr.odd
{
background: #FFF6BF;
}
table.list td
{
text-align: center;
padding: 1em;
vertical-align: middle;
}

Wyświetl plik

@ -33,16 +33,20 @@ class="activelink"
{% block page %} {% block page %}
<p><b>Job list</b></p> <h1>Job list</h1>
<p>This page gives the status of all the rendering requests received
during the last 24 hours, starting from the most recent one.</p>
<table class="list"> <table class="list">
<thead> <thead>
<tr> <tr>
<th>Title</th> <th>Title</th>
<th>Location</th>
<th>Status</th> <th>Status</th>
<th>Submission time</th> <th>Submission at</th>
<th>Start rendering time</th> <th>Rendering started at</th>
<th>End rendering time</th> <th>Rendering finished at</th>
<th>Position in queue</th> <th>Position in queue</th>
<th>ETA before rendering</th> <th>ETA before rendering</th>
</tr> </tr>
@ -52,33 +56,41 @@ class="activelink"
<td> <td>
<a href="/jobs/{{ job.id }}">{{ job.maptitle }}</a><br/> <a href="/jobs/{{ job.id }}">{{ job.maptitle }}</a><br/>
</td> </td>
<td>
{% if job.lat_upper_left %}
{{ job.lat_upper_left }}<br/>
{{ job.lon_upper_left }}&nbsp;{{job.lon_bottom_right}}<br/>
{{ job.lat_bottom_right }}
{% else %}
{{ job.administrative_city }}
{% endif %}
<td> <td>
{{ job.status|job_status_to_str:job.resultmsg }} {{ job.status|job_status_to_str:job.resultmsg }}
</td> </td>
<td>{{ job.submission_time|date:"Y-m-d H:i:s" }}</td> <td>{{ job.submission_time|date:"Y-m-d H:i:s" }}</td>
<td> <td>
{% ifequal job.status 0 %} {% if job.is_waiting %}
not started not started
{% else %} {% else %}
{{ job.startofrendering_time|date:"Y-m-d H:i:s" }} {{ job.startofrendering_time|date:"Y-m-d H:i:s" }}
{% endifequal %} {% endif %}
</td> </td>
<td> <td>
{% ifequal job.status 2 %} {% if job.is_done %}
{{ job.endofrendering_time|date:"Y-m-d H:i:s" }} {{ job.endofrendering_time|date:"Y-m-d H:i:s" }}
{% else %} {% else %}
not finished not finished
{% endifequal %} {% endif %}
</td> </td>
<td> <td>
{% ifequal job.status 0 %} {% if job.is_waiting %}
{{ job.current_position_in_queue }} {{ job.current_position_in_queue }}
{% endifequal %} {% endif %}
</td> </td>
<td> <td>
{% ifequal job.status 0 %} {% if job.is_waiting %}
{{ job.rendering_estimated_start_time|timeuntil }} {{ job.rendering_estimated_start_time|timeuntil }}
{% endifequal %} {% endif %}
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}

Wyświetl plik

@ -102,7 +102,7 @@ minutes and get your own map&nbsp;!</p>
<p style="text-align: right"><a href="/about/">More details</a></p> <p style="text-align: right"><a href="/about/">More details</a></p>
<h2>Generate your own map</h2> <h2 style="clear: right">Generate your own map</h2>
<p>For the moment <i>MapOSMatic</i> is only available for the <p>For the moment <i>MapOSMatic</i> is only available for the
metropolitan France. We need contributors to translate and adapt the metropolitan France. We need contributors to translate and adapt the
@ -114,11 +114,11 @@ available&nbsp;:</p>
<ul> <ul>
<li>Using an administrative boundary. These boundaries allow to get <li>Using an administrative boundary. These boundaries allow to get
a map with precise boundaries of the city, but the boundaries are a map with precise boundaries of the city, but the boundaries are
for the moment only available for part of the French cities (about a for the moment only available for part of the Metropolitan French
third). The name of the provided city must exactly match the one cities (about a third). The name of the provided city must exactly
available in the OpenStreetMap database (no case or accent match the one available in the OpenStreetMap database (no case or
difference is allowed). Working examples are: <i>Chavagne</i>, accent difference is allowed). Working examples are:
<i>Bénodet</i> or <i>Sanguinet</i>.</li> <i>Chavagne</i>, <i>Bénodet</i> or <i>Sanguinet</i>.</li>
<li>Using a traditionnal bounding box.</li> <li>Using a traditionnal bounding box.</li>
</ul> </ul>