<h3><img src="{% url telemeta-images "module_world.png" %}" alt="world" style="vertical-align:middle" />
{% trans "Geo Navigator" %}</h3>
<a class="image-link" href="{% url telemeta-geo-continents %}">
- <img class="map-thumbnail" src="{% url telemeta-images "map_thumbnail.png" %}" alt="{% trans "Open the geographic navigator" %}" /></a>
+ <img class="map-thumbnail" src="{% url telemeta-images "world2.png" %}" alt="{% trans "Open the geographic navigator" %}" style="width:398px" /></a>
</div>
<div id="module" class="module">
<h3><img src="{% url telemeta-images "module_playlist.png" %}" alt="playlist" style="vertical-align:middle" />
{% trans "Musical selection" %}</h3>
<ul class="playlist">
- {% for item in items %}
- <li>
- <a href="{% url telemeta-item-detail item.public_id %}"><b>{{item}}</b></a>
- <br />
- <span class="info">{{item.computed_duration}} {{item.apparent_collector|prepend:' - '}} - {{item.country_or_continent}}</span>
+ <li><a href="{% url telemeta-item-detail sound_pub_item.public_id %}"><b>{{ sound_pub_item }}</b></a>{% if sound_pub_item.alt_title %} ({{ sound_pub_item.alt_title }}){% endif %}<br /><span style="font-size: 90%">{{ sound_pub_item.location.fullnames|to_string }}</span><br />
+<iframe width='376' height='215' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='/items/{{sound_pub_item.public_id }}/player/362x130/'></iframe>
</li>
- {% endfor %}
</ul>
</div>
if get_public_access(item.public_access, str(item.recorded_from_date).split('-')[0],
str(item.recorded_to_date).split('-')[0]):
sound_pub_items.append(item)
+
+ sound_pub_item = sound_pub_items[0]
random.shuffle(sound_pub_items)
if len(sound_pub_items) >= 2:
sound_pub_items = sound_pub_items[0:2]
- revisions = get_revisions(3)
+ revisions = get_revisions(4)
context = RequestContext(request, {
'page_content': pages.get_page_content(request, 'home', ignore_slash_issue=True),
- 'items': items, 'revisions': revisions, 'sound_items': sound_pub_items})
+ 'items': items, 'revisions': revisions, 'sound_items': sound_pub_items,
+ 'sound_pub_item': sound_pub_item })
return HttpResponse(template.render(context))
else:
template='telemeta/home.html'