Small changes to fleet style.
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Sun, 15 Aug 2010 06:53:28 +0000 (06:53 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Sun, 15 Aug 2010 06:53:28 +0000 (06:53 +0000)
html_templates/fleet.html
html_templates/fleets.html

index 1741ee1e23e43dde5e4eb9bfc6920b8944f7b324..e392aa5a2cabad71798eaccc54fbb5edabbb0147 100644 (file)
@@ -7,7 +7,7 @@
 
 {% block content %}
 <h3>Details of fleet {{ fleet.name }}</h3>
-{{ fleet.description }}<br><br>
+{{ fleet.description|linebreaksbr }}<br><br>
 <a href=lastpos class=button>Last positions in Google Earth</a><br>
 <a href=list class=button>Vessel list</a> ({{ fleet.vessel_count }} vessel{{ fleet.vessel_count|pluralize }})<br>
 <a href=users class=button>User list</a> ({{ fleet.user_count }} user{{ fleet.user_count|pluralize }})<br>
index f869e4d71e4615290d915cd55f83d2f985f9ac0b..2f00ad4f126ec8cb76a22d84b905bc2ddaf7c30e 100644 (file)
@@ -2,6 +2,16 @@
 
 {% block tab_active_fleet %} id=tabactive{% endblock %}
 
+{% block style_extra %}
+<style>
+div.fleet {
+}
+div.fleet span.fleetname {
+    font-size: 150%;
+}
+</style>
+{% endblock %}
+
 {% block breadcrumbs %}
 {{ block.super }}
 / <a href="/fleet/">fleet</a>
 {% block content %}
 <h3>Select a fleet:</h3>
 {% for fleetuser in fleetusers %}
-<a href='{{ fleetuser.fleet.name }}/' class=button>{{ fleetuser.fleet.name }}</a>{{ fleetuser.fleet.description }}
-<br>
+<a href='{{ fleetuser.fleet.name }}/'>
+<div class=fleet>
+<span class=fleetname>{{ fleetuser.fleet.name }}</span><br>
+{{ fleetuser.fleet.description|linebreaksbr }}<br>
 {{ fleetuser.fleet.vessel_count }} vessel{{ fleetuser.fleet.vessel_count|pluralize }} 
 - {{ fleetuser.fleet.user_count }} user{{ fleetuser.fleet.user_count|pluralize }}
 - {{ fleetuser.fleet.job_count }} periodic job{{ fleetuser.fleet.job_count|pluralize }}
-<br>
+</div>
+</a>
 
 <br><br>
 {% endfor %}