Fixed plural from vessel & user counts
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Sun, 8 Aug 2010 16:07:49 +0000 (16:07 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Sun, 8 Aug 2010 16:07:49 +0000 (16:07 +0000)
html_templates/fleet.html
html_templates/fleets.html

index 6a53ccabf22f1948603fb269834f0accd95966d6..1741ee1e23e43dde5e4eb9bfc6920b8944f7b324 100644 (file)
@@ -9,8 +9,8 @@
 <h3>Details of fleet {{ fleet.name }}</h3>
 {{ fleet.description }}<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 }} vessels)<br>
-<a href=users class=button>User list</a> ({{ fleet.user_count }} users)<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>
 <a href=edit class=button>Change descrription</a><br>
 
 {% endblock %}
index c8f10d1a8a08e9ac9c46dc4d276599d07dccdb0b..01e157ee3bc0f0113fa8eebb8633a9274e35341c 100644 (file)
@@ -12,7 +12,7 @@
 {% for fleetuser in fleetusers %}
 <a href='{{ fleetuser.fleet.name }}/' class=button>{{ fleetuser.fleet.name }}</a>{{ fleetuser.fleet.description }}
 <br>
-{{ fleetuser.fleet.vessel_count }} vessels - {{ fleetuser.fleet.user_count }} users<br>
+{{ fleetuser.fleet.vessel_count }} vessel{{ fleetuser.fleet.vessel_count|pluralize }} - {{ fleetuser.fleet.user_count }} user{{ fleetuser.fleet.user_count|pluralize }} <br>
 
 <br><br>
 {% endfor %}