mhall119 has proposed merging lp:~mhall119/loco-directory/fixes-575557 into
lp:loco-directory.
Requested reviews:
loco-directory-dev (loco-directory-dev)
Related bugs:
#575557 data items on pages should be identified
https://bugs.launchpad.net/bugs/575557
Dan Trevino is writing an Android app for accessing loco-directory data. Until
we can provide a webservice API, he is scraping our screens. Adding class=""
attributes to certain data points lets him do this in a safer manner.
--
https://code.launchpad.net/~mhall119/loco-directory/fixes-575557/+merge/24720
Your team loco-directory-dev is requested to review the proposed merge of
lp:~mhall119/loco-directory/fixes-575557 into lp:loco-directory.
=== modified file 'loco_directory/templates/events/global_event_detail_attending_teamevents.inc.html'
--- loco_directory/templates/events/global_event_detail_attending_teamevents.inc.html 2010-01-10 20:39:23 +0000
+++ loco_directory/templates/events/global_event_detail_attending_teamevents.inc.html 2010-05-05 03:58:23 +0000
@@ -1,8 +1,8 @@
{% load i18n %}
{% if global_event_object.teamevent_set.all %}
-<ul id="global-event-attending-teamevents">
+<ul class="teamlist" id="global-event-attending-teamevents">
{% for team_event in global_event_object.teamevent_set.all %}
- <li class="{% cycle 'col_left' 'col_right' %}"><a title="{% trans "More Information about Team Event" %}" href="{{ team_event.get_absolute_url }}">{{ team_event.name }}</a></li>
+ <li class="teamitem {% cycle 'col_left' 'col_right' %}"><a class="teamlink" title="{% trans "More Information about Team Event" %}" href="{{ team_event.get_absolute_url }}">{{ team_event.name }}</a></li>
{% endfor %}
</ul>
{% endif %}
=== modified file 'loco_directory/templates/teams/team_list.html'
--- loco_directory/templates/teams/team_list.html 2010-05-02 17:33:13 +0000
+++ loco_directory/templates/teams/team_list.html 2010-05-05 03:58:23 +0000
@@ -17,9 +17,9 @@
{{ form.as_line }}
<input type="image" src="/media/img/search.png" title="{% trans "Search" %}" />
</form>
-<ul>
+<ul class="teamlist">
{% for team in team_list %}
-<li title="{% if team.approved %}{% blocktrans with team.name as teamname %}{{ teamname }} approved{% endblocktrans %}{% else %}{% blocktrans with team.name as teamname %}{{ teamname }} not approved{% endblocktrans %}{% endif %}" class="{% if team.approved %}approved{% else %}unapproved{% endif %} {% cycle 'col_left' 'col_right' %}"><a href="{{ team.get_absolute_url }}">{{ team.name }}</a></li>
+<li title="{% if team.approved %}{% blocktrans with team.name as teamname %}{{ teamname }} approved{% endblocktrans %}{% else %}{% blocktrans with team.name as teamname %}{{ teamname }} not approved{% endblocktrans %}{% endif %}" class="teamitem {% if team.approved %}approved{% else %}unapproved{% endif %} {% cycle 'col_left' 'col_right' %}"><a class="teamlink" href="{{ team.get_absolute_url }}">{{ team.name }}</a></li>
{% endfor %}
</ul>
<br class="clear" />
=== modified file 'loco_directory/templates/venues/venue_list.html'
--- loco_directory/templates/venues/venue_list.html 2010-05-02 14:01:37 +0000
+++ loco_directory/templates/venues/venue_list.html 2010-05-05 03:58:23 +0000
@@ -21,9 +21,9 @@
{% regroup venue_list by country as venue_country_list %}
{% for country in venue_country_list %}
<h2>{{ country.grouper }}</h2>
- <ul>
+ <ul class="venuelist">
{% for venue in country.list %}
- <li class="{% if forloop.counter|divisibleby:2 %}col_right{% else %}col_left{% endif %}"><a title="{% trans "show venue details" %}" href="{{ venue.get_absolute_url }}">{{ venue.name }}{% if venue.city %}, {{ venue.city }}{% endif %}</a></li>
+ <li class="venueitem {% if forloop.counter|divisibleby:2 %}col_right{% else %}col_left{% endif %}"><a class="venuelink" title="{% trans "show venue details" %}" href="{{ venue.get_absolute_url }}">{{ venue.name }}{% if venue.city %}, {{ venue.city }}{% endif %}</a></li>
{% endfor %}
</ul>
<br style="clear:left;">
_______________________________________________
Mailing list: https://launchpad.net/~loco-directory-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~loco-directory-dev
More help : https://help.launchpad.net/ListHelp