sponsor template + minor css

This commit is contained in:
Sanj 2012-03-09 19:39:12 +05:30
parent 2194b0bf57
commit 89f138168e
3 changed files with 13 additions and 6 deletions

View File

@ -138,10 +138,7 @@ class ItfModel(models.Model):
def insidepage_dict(self, request): def insidepage_dict(self, request):
context = RequestContext(request, self.info_dict()) context = RequestContext(request, self.info_dict())
try: html = render_to_string(self.get_template_path(), context)
html = render_to_string(self.get_template_path(), context)
except:
html = "Template path not found at : " + self.get_template_path()
return { return {
'url': self.get_absolute_url(), 'url': self.get_absolute_url(),
'title': self.get_title(), 'title': self.get_title(),

View File

@ -113,7 +113,7 @@ text-align:center;
padding-left:10px; padding-left:10px;
padding-right:10px; padding-right:10px;
float:left; float:left;
border-bottom:1px solid #f0dfdf;} /*border-bottom:1px solid #f0dfdf;*/}
#selection #selection
{padding-left:6px; {padding-left:6px;

View File

@ -1,4 +1,5 @@
{% load markup %} {% load markup %}
{% load thumbnail %}
<link rel="stylesheet" href="/static/css/modules/tabsinnerright.css" type="text/css" /> <link rel="stylesheet" href="/static/css/modules/tabsinnerright.css" type="text/css" />
<ul class="tabsInnerRight"> <ul class="tabsInnerRight">
@ -38,6 +39,15 @@
<div class="tab_container"> <div class="tab_container">
<div id="synopsis" class="tab_content"> <div id="synopsis" class="tab_content">
{{ meeting.intro|markdown }} {{ meeting.intro|markdown }}
{% if sponsors %}
Supported by: <br />
{% for s in sponsors %}
{% thumbnail s.logo "x30" crop="center" as thumb %}
<a href="{{ s.url }}" target="_blank" /><img alt="{{ s.name }}" src="{{ thumb.url }}" /></a>
{% endthumbnail %}
{% endfor %}
{% endif %}
<!-- <!--
<iframe src="https://docs.google.com/spreadsheet/embeddedform?formkey=dFJqM3hGQWktT0tUbnVPZWhoY1g4N3c6MQ" width="600" height="1969" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe> <iframe src="https://docs.google.com/spreadsheet/embeddedform?formkey=dFJqM3hGQWktT0tUbnVPZWhoY1g4N3c6MQ" width="600" height="1969" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe>
--> -->
@ -148,7 +158,7 @@
<div id="gallery" class="tab_content"> <div id="gallery" class="tab_content">
<!-- <h4 class="tabTitle">Gallery</h4> --> <!-- <h4 class="tabTitle">Gallery</h4> -->
<div class="thumbsGallery"> <div class="thumbsGallery">
{% load thumbnail %}
{% for i in imagegallery %} {% for i in imagegallery %}
{% thumbnail i.file "600x500" crop="center" as big %} {% thumbnail i.file "600x500" crop="center" as big %}
{% thumbnail i.file "164x114" crop="center" as thumb %} {% thumbnail i.file "164x114" crop="center" as thumb %}