From 5b9b927a1967b0854757912ec1f8c85f723f4564 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 24 Oct 2011 14:10:41 +0100 Subject: [PATCH 1/6] close.png --- itf/static/images/noel/close.png | Bin 0 -> 705 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 itf/static/images/noel/close.png diff --git a/itf/static/images/noel/close.png b/itf/static/images/noel/close.png new file mode 100644 index 0000000000000000000000000000000000000000..4e97ed3f90559bfe1cec451d83b64b113fcd6f73 GIT binary patch literal 705 zcmV;y0zUnTP)>uzV6j~5k`e8r>KQ6sWDuRd*OT0w%;75vS z+Qe?MJI?NQ*WE5;H)3}>@UZXB4Db8w^S(1X!x2KjvT^%|z_YB?SD+~FQ9Rx6eZ#u) z(M^Cn9X1|eeK>b@%`il(M^i~5MCA*@juN&4-KA5Z7K1om<#s8cF)6~o1iFj~sH_QS z9m1M`zXD?B5`@G_D3y5-rRg5zBZv-<8K$zfs25eA1hn1?L{H}+U4CfV=Wn7}%0b)s zY%c1k3^}(5A$87tk7v++Jr#%mZyAIV=mqh}=*~Vxz{iFlUn_x&9jBiVLoByIgOAwb z`dmMM9tDVx0_}IRh-SyZi328cX$bLr30mtr#KSbW` zu70gmrvz66`|&D3{DFv!ME)_&dDdKJ4)6mBB**5#4`zb->Nf=t4j`GIMI^1~T(v>E zTei(hDN14vynO8c*MKy7iv}NY<^0!+J6K=3?y3oal8`Un`v(Fl=?zWu1aG}x#&)fY z`tl8TVX7Tpf1V=rI}2@PFL!thSjuzM52NG7NW5+%KwgkXj0Y>)|$4*F!dL4v>qGuJso$!V00000NkvXXu0mjfs@Og4 literal 0 HcmV?d00001 From 0a7b6b3f1cb3b38646d603b2f3075104349c2f0c Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 24 Oct 2011 14:16:27 +0100 Subject: [PATCH 2/6] script download --- itf/templates/modules/scriptbank/script.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/itf/templates/modules/scriptbank/script.html b/itf/templates/modules/scriptbank/script.html index 400d9b8..39740dd 100644 --- a/itf/templates/modules/scriptbank/script.html +++ b/itf/templates/modules/scriptbank/script.html @@ -1,3 +1,7 @@
{{ title }}
-Synopsis: {{ synopsis }} +{% if synopsis %} +Synopsis: {{ synopsis }}
+{% endif %} + +Download From 3e1cbf3b1752fc6d2a95ea7ed2d0de6eff582f9d Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 24 Oct 2011 14:22:45 +0100 Subject: [PATCH 3/6] added license template --- itf/templates/modules/scriptbank/license.html | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 itf/templates/modules/scriptbank/license.html diff --git a/itf/templates/modules/scriptbank/license.html b/itf/templates/modules/scriptbank/license.html new file mode 100644 index 0000000..bb214ae --- /dev/null +++ b/itf/templates/modules/scriptbank/license.html @@ -0,0 +1,3 @@ +{{ short_description }}

+Download Readable Version

+Download Full Version From 8a67c196d858d7affe5816b9c6f3a5a74cfd3345 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 24 Oct 2011 15:25:55 +0100 Subject: [PATCH 4/6] meeting safe things --- itf/templates/modules/festival/meeting.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/itf/templates/modules/festival/meeting.html b/itf/templates/modules/festival/meeting.html index ce69f31..81c9eca 100755 --- a/itf/templates/modules/festival/meeting.html +++ b/itf/templates/modules/festival/meeting.html @@ -28,7 +28,7 @@
- {{ meeting.intro }} + {{ meeting.intro|safe }}
@@ -94,7 +94,7 @@ {{d.title}}
- {{ d.intro }} + {{ d.intro|safe }}
{% endfor %} From d7afdc59f5d3465d5d4efa19bde3a70c7eda3e0a Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 24 Oct 2011 16:37:01 +0100 Subject: [PATCH 5/6] urlize twitter feed --- itf/frontpage/views.py | 5 +++-- itf/templates/noel/index.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/itf/frontpage/views.py b/itf/frontpage/views.py index 4416273..13387a2 100755 --- a/itf/frontpage/views.py +++ b/itf/frontpage/views.py @@ -6,6 +6,7 @@ import twitter from django.template import RequestContext from django import forms from django.forms.widgets import Textarea +from django.utils.html import urlize class ContactForm(forms.Form): email = forms.EmailField() @@ -22,12 +23,12 @@ class ContactForm(forms.Form): def index(request): try: tApi = twitter.Api() - statuses = tApi.GetUserTimeline(TWITTER_ID) + statuses = tApi.GetUserTimeline(TWITTER_ID)[0:3] except: statuses = [] boxes = SliderBox.objects.all() return render_to_response("noel/index.html", RequestContext(request, { - 'tweets': statuses[0:5], + 'tweets': [urlize(s.text) for s in statuses], 'boxes': boxes })) diff --git a/itf/templates/noel/index.html b/itf/templates/noel/index.html index b979e09..ead1d08 100755 --- a/itf/templates/noel/index.html +++ b/itf/templates/noel/index.html @@ -40,7 +40,7 @@
    {% for t in tweets %} -
  • {{ t.text }}
  • +
  • {{ t|safe }}
  • {% endfor %}