You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by rg...@apache.org on 2009/12/28 20:58:09 UTC
svn commit: r894238 - /comdev/nearby_people/templates/people.html
Author: rgardler
Date: Mon Dec 28 19:58:08 2009
New Revision: 894238
URL: http://svn.apache.org/viewvc?rev=894238&view=rev
Log:
Use a table instead of a list for the people list - better layout and we can add jquery goodies
Modified:
comdev/nearby_people/templates/people.html
Modified: comdev/nearby_people/templates/people.html
URL: http://svn.apache.org/viewvc/comdev/nearby_people/templates/people.html?rev=894238&r1=894237&r2=894238&view=diff
==============================================================================
--- comdev/nearby_people/templates/people.html (original)
+++ comdev/nearby_people/templates/people.html Mon Dec 28 19:58:08 2009
@@ -83,20 +83,24 @@
}
#map { float:left; width:500px; height:500px; }
- #list { float:left; width:300px; background:#eee; list-style:none; padding:0; }
- #list li { padding:5px; }
- #list li:hover { background:#FFF; color:#ff;}
+ #people { float:left; width:300px; background:#eee; list-style:none; padding:0; }
+ #people tr { padding:5px; }
+ #people tr:hover { background:#FFF; color:#ff;}
</style>
{% endblock %}
{% block content %}
{% if people %}
- <ul id="list">
+ <table id="people">
{% for dist, person in people %}
- <li><a href="javascript:panTo('{{person.uid}}')">{{person.name}}</a> - {{dist|distanceformat}} - <a href="{{person.link}}">(info)</a></li>
+ <tr>
+ <td><a href="javascript:panTo('{{person.uid}}')">{{person.name}}</a></td>
+ <td>{{dist|distanceformat}}</td>
+ <td><a href="{{person.link}}">(info)</a></td>
+ </tr>
{% endfor %}
- </ul>
+ </table>
<div id="map"></div>
<script type="text/javascript">load()</script>