From: yomguy Date: Thu, 27 Oct 2011 09:35:56 +0000 (+0200) Subject: add iframe player on right index column, change world image X-Git-Tag: 1.1~31 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=fda06450d48204c2ebdbb36242f721789b7cdcb6;p=telemeta.git add iframe player on right index column, change world image --- diff --git a/telemeta/htdocs/css/telemeta.css b/telemeta/htdocs/css/telemeta.css index 377e95e5..5a2903a3 100644 --- a/telemeta/htdocs/css/telemeta.css +++ b/telemeta/htdocs/css/telemeta.css @@ -846,7 +846,7 @@ a.image-link { } .home-content .module { - width: 338px; + width: 400px; } .home-description { diff --git a/telemeta/htdocs/images/world2.png b/telemeta/htdocs/images/world2.png new file mode 100644 index 00000000..39c3171b Binary files /dev/null and b/telemeta/htdocs/images/world2.png differ diff --git a/telemeta/htdocs/images/world_full.png b/telemeta/htdocs/images/world_full.png new file mode 100644 index 00000000..8f9861b1 Binary files /dev/null and b/telemeta/htdocs/images/world_full.png differ diff --git a/telemeta/templates/telemeta_default/index.html b/telemeta/templates/telemeta_default/index.html index 312bdcda..7c0be013 100644 --- a/telemeta/templates/telemeta_default/index.html +++ b/telemeta/templates/telemeta_default/index.html @@ -11,20 +11,16 @@

world {% trans "Geo Navigator" %}

- {% trans + {% trans

playlist {% trans "Musical selection" %}

diff --git a/telemeta/web/base.py b/telemeta/web/base.py index 7411394a..2f4f0aa7 100644 --- a/telemeta/web/base.py +++ b/telemeta/web/base.py @@ -184,14 +184,17 @@ class GeneralView(object): 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'