hhhh
This commit is contained in:
commit
3d00ca149d
|
@ -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
|
||||
}))
|
||||
|
||||
|
|
BIN
itf/static/images/noel/close.png.moved
Normal file
BIN
itf/static/images/noel/close.png.moved
Normal file
Binary file not shown.
After Width: | Height: | Size: 705 B |
|
@ -1,7 +1,7 @@
|
|||
{% load thumbnail %}
|
||||
<div class="itfInfo">
|
||||
{% for s in stories %}
|
||||
<span class="orange">Situation: </span><span class="ifInfoInfo">{{ s.text|linebreaksbr }}</span>
|
||||
<span class="orange">Situation: </span><span class="ifInfoInfo">{{ s.text|safe|linebreaksbr }}</span>
|
||||
{% if s.image %}
|
||||
{% thumbnail s.image "164x114" crop="center" as im %}
|
||||
<img class="itfInfoImg" src="{{ im.url }}" />
|
||||
|
@ -26,10 +26,10 @@
|
|||
{% endif %}
|
||||
<br /><br />
|
||||
{% if theatre %}
|
||||
<span class="orange">Spotlight on Theatre: </span><span class="itfInfoInfo">{{ theatre|linebreaksbr }}</span> <br /><br />
|
||||
<span class="orange">Spotlight on Theatre: </span><span class="itfInfoInfo">{{ theatre|safe|linebreaksbr }}</span> <br /><br />
|
||||
{% endif %}
|
||||
{% if quick_howto %}
|
||||
<span class="orange">Best Practices or Quick, Tell Me How to Avoid Conflict! </span><span class="itfInfoInfo">{{ quick_howto|linebreaksbr }}</span><br /><br />
|
||||
<span class="orange">Best Practices or Quick, Tell Me How to Avoid Conflict! </span><span class="itfInfoInfo">{{ quick_howto|safe|linebreaksbr }}</span><br /><br />
|
||||
{% endif %}
|
||||
|
||||
{% if links %}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
<div class="tab_container">
|
||||
<div id="synopsis" class="tab_content">
|
||||
{{ meeting.intro }}
|
||||
{{ meeting.intro|safe }}
|
||||
<!--Content-->
|
||||
</div>
|
||||
|
||||
|
@ -94,7 +94,7 @@
|
|||
<a href="/static/{{d.file}}">{{d.title}}</a>
|
||||
</div>
|
||||
<div class="intro">
|
||||
{{ d.intro }}
|
||||
{{ d.intro|safe }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
|
3
itf/templates/modules/scriptbank/license.html
Normal file
3
itf/templates/modules/scriptbank/license.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{ short_description }} <br /><br />
|
||||
<a href="{{ readable_file }}" class="bpRelated">Download Readable Version</a><br /><br />
|
||||
<a href="{{ legal_file }}" class="bpRelated">Download Full Version</a>
|
|
@ -1,3 +1,7 @@
|
|||
<div class="orange">{{ title }}</div>
|
||||
|
||||
<span class="orange">Synopsis: </span> {{ synopsis }}
|
||||
{% if synopsis %}
|
||||
<span class="orange">Synopsis: </span> {{ synopsis }} <br />
|
||||
{% endif %}
|
||||
|
||||
<a class="bpRelated" href="{{ script_file }}">Download</a>
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
<div id="contentTab">
|
||||
<ul>
|
||||
{% for t in tweets %}
|
||||
<li>{{ t.text }}</li>
|
||||
<li>{{ t|safe }}</li>
|
||||
{% endfor %}
|
||||
<!--
|
||||
<li>@dootah there's a new play this weekend. <span>bit.ly/xYr3dD</span></li>
|
||||
|
|
Loading…
Reference in New Issue
Block a user