plugged in design templates, started plugging in vars

This commit is contained in:
Sanj 2012-12-01 10:25:33 +05:30
parent 93e63bad87
commit c73cd51552
6 changed files with 954 additions and 661 deletions

View File

@ -91,10 +91,11 @@ class Person(ItfModel):
'occupations': [ obj for obj in self.occupations.all()],
'gender':self.gender,
'image':self.image,
'languages': [obj for obj in self.languages.all()],
'locations': [obj for obj in self.locations.all()],
'groups': [obj for obj in self.groups.all()],
'groups': [obj for obj in self.persongroup_set.all()],
'connections': [obj for obj in self.PersonFrom.all()] + [obj for obj in self.PersonTo.all() ],
'productions': [ obj for obj in self.productions.all()],
'productions': [ obj for obj in self.personproduction_set.all()],
'trainings': [ obj for obj in self.trainings.all()],
'languages': [ obj for obj in self.languages.all()],
'awards': [ obj for obj in self.awards.all()],
@ -295,6 +296,7 @@ class TheatreGroup(ItfModel):
tel = models.IntegerField(blank=True, null=True, verbose_name='Telephone number')
# -- FIXME tel = models.CharField(blank=True, null=True)
#image = models.ImageField(upload_to='upload/groups/', blank=True)
languages = models.ManyToManyField("Language", blank=True, null=True)
year_founded = models.IntegerField(blank=True, null=True)
about = models.TextField(blank=True)
@ -337,7 +339,7 @@ class TheatreGroup(ItfModel):
'buzzitems': [obj for obj in self.buzzitems.all()],
'productions': [obj for obj in self.production_set.all() ],
'scripts': [obj for obj in self.script_set.all() ],
'people' : [obj for obj in self.person_set.all() ],
'people' : [obj for obj in self.persongroup_set.all() ],
}
def get_title(self):
@ -381,13 +383,13 @@ class Production(ItfModel):
debut_date = models.DateField(blank=True, null=True)
reviews= generic.GenericRelation("BuzzItem")
galleries = generic.GenericRelation(GalleryAlbum)
#FIXME: add no of shows
def __unicode__(self):
return self.name
def get_dict(self):
rel_level1 = [obj for obj in Production.objects.filter(script= self.script)]
rel_level1 = [obj for obj in Production.objects.filter(script=self.script)]
rel_level2 = list(set(obj.production_set.all() for obj in self.script.related_scripts.all()))
return {
@ -424,7 +426,12 @@ class PersonProduction(models.Model):
no_of_shows = models.CharField(max_length=25, choices = SHOWS_NO_CHOICES)
original_cast = models.BooleanField(default=False)
def years(self):
if self.years:
return str(self.start_year) + " - " + str(self.start_year + self.years)
else:
return str(self.start_year)
class PersonGroup(models.Model):
person = models.ForeignKey(Person, db_index=True)

View File

@ -59,12 +59,21 @@ class Script(ItfModel):
'title': self.title,
}
def no_of_men(self):
if not self.no_characters:
return False
if self.no_of_women:
return self.no_characters - self.no_of_women
else:
return self.no_characters
def get_dict(self):
return {
'title': self.title,
'synopsis': self.synopsis,
'no_characters': self.no_characters,
'no_of_women': self.no_of_women,
'no_of_men': self.no_of_men(),
'production_notes': self.production_notes,
'language': self.language,
'approx_duration': self.approx_duration,

View File

@ -1,259 +1,255 @@
{% load thumbnail %}
<link rel="stylesheet" href="/static/css/modules/tabsinnerright.css" type="text/css" />
<ul class="tabsInnerRight">
<li><a href="#about">About</a></li>
<li><a href="#people">People</a></li>
<li><a href="#productions">Productions</a></li>
<li><a href="#scripts">Scripts</a></li>
<li><a href="#connections">Connections</a></li>
{% if productions %} <li><a href="#productions">Productions</a></li> {% endif %}
<li><a href="#gallery">Gallery</a></li>
<li><a href="#resources">Resources</a></li>
<li><a href="#notes">Notes</a></li>
{% if resources %} <li><a href="#resources">Resources</a></li> {% endif %}
</ul>
<div id="about" class="tab_content">
{% if image %}
<p class="orange"> Photo : </p>
<img href={{ image.get_absolute_url }} </img>
{% endif %}
{% if first_name %}
<p class="orange"> Name : </p> {{ first_name }}
{% endif %} <br/>
{% if last_name %}
{{ last_name }}
{% endif %} <br/>
<br/>
{% if about %}
<p class="orange"> About : </p> {{ about }}
{% endif %} <br/>
{% if user %}
<p class="orange"> Username : </p> {{ user }}
{% endif %} <br/>
{% if tel_no %}
<p class="orange"> Tel_no : </p> {{ tel_no }}
{% endif %} <br/>
{% if dob %}
<p class="orange"> Date-of-birth : </p> {{ dob }}
{% endif %} <br/>
{% if is_practitioner %}
<span class="orange"> Practitioner </span> {{ is_practioner }}
{% endif %} <br/>
{% if is_enthusiast %}
<p class="orange"> Enthusiast : </p> {{ is_enthusiast }}
{% endif %} <br/>
{% if is_freelancer %}
<p class="orange"> Freelancer : </p> {{ is_freelancer }}
{% endif %} <br/>
{% if gender %}
<p class="orange"> Gender : </p> {{ gender }}
{% endif %} <br/>
<h3>{{ first_name }} {{ last_name }}</h3>
<p>
{% for o in occupations %}
{{ o.name }}{% if not forloop.last %},{% endif %}
{% endfor %}
</p>
{% if occupations %}
<div id="" class="itfFormDisplay">
<p class="orange">Occupations: </p>
<ul>
{% for work in occupations %}
<li>{{ work.name }} {% if work.is_main %} - Primary occupation {% endif %} </li>
{% endfor %}
</ul>
<div>
{{ about }}
</div>
{% endif %}
{% if locations %}
<div id="" class="itfFormDisplay">
<p class="orange">Locations: </p>
<ul>
{% for place in locations %}
<li>
{{ place.city }}
</li>
{% endfor %}
</ul>
<br />
<div>Based in: (City)</div>
<div>Languages I work in:
{% for lang in languages %}
{{ lang.name }}{% if not forloop.last %},{% endif %}
{% endfor %}
</div>
{% endif %}
<div>DOB: {{ dob|date:"d M, Y" }}</div>
<div>Gender: {{ gender }}</div>
<a href="" class="toggleLink">Contact</a>
<div class="toggleDiv">Some text</div>
<div class="borderYellow"><br /></div>
<br />
{% if trainings %}
<div id="" class="itfFormDisplay">
<p class="orange">Trainings: </p>
<ul>
{% for training in trainings %}
<li>{{ training }} {{ training.title }} {{ training.desc }} {{ training.person }} {{ training.area }} {{ training.with_whom }} {{ training.where }} {{ training.from_when }} {{ training.until_when }}
</li>
{% for loc in training.locations.all %} {{ loc.city }} {% endfor %}
{% endfor %}
</ul>
{% if trainings %}
<div class="borderYellow">
<h5 class="orangeInnerRight">Training</h5>
{% for training in trainings %}
<div>
{{ training.area }},
{% if training.person %}
<a href="{{ training.person.get_absolute_url }}">{{ training.person}}</a>,
{% else %}
{{ training.with_whom }}
{% endif %}
{% if training.where %}
<a href="{{ training.where.get_absolute_url }}">{{ training.where }}</a>,
{% endif %}
{% if training.locations %}
{% for location in training.locations %}
{{ location.city.name }}{% if not forloop.last %},{% endif %}
{% endfor %}
{% endif %}
</div>
{% endfor %}
<br />
</div>
<br />
{% endif %}
{% if languages %}
<div id="" class="itfFormDisplay">
<p class="orange">Languages: </p>
<ul>
{% for elem in languages %}
<li>
{{ elem.name }}
</li>
{% endfor %}
</ul>
</div>
{% endif %} <br/>
{% if awards %}
<div id="" class="itfFormDisplay">
<p class="orange">Awards: </p>
<ul>
{% for elem in awards %}
<li>
{% if elem.link %} <a href="{{ elem.link }}"> {% endif %} {{ elem.title }} {% if elem.link %} </a> {% endif %}
{% if elem.year %} {{ elem.year }} {% endif %}
</li>
{% endfor %}
</ul>
</div>
<div class="borderYellow">
<h5 class="orangeInnerRight">Awards</h5>
{% for award in awards %}
<div>
{{ award.title }}
{% if award.year %},
{{ award.year }}
{% endif %}
{% if award.link %},
<a href="{{ award.link }}" target="_blank">link</a>
{% endif %}
</div>
{% endfor %}
<br />
</div>
<br />
{% endif %}
{% if buzzitems %}
<div id="" class="itfFormDisplay">
<p class="orange">Buzz Items: </p>
<div>
<h5 class="orangeInnerRight">More</h5>
<ul>
{% for elem in buzzitems %}
<li>
{% if elem.link %}
<a href="{{ elem.link }}">
{% endif %}
{{ elem.title }}
{% if elem.link %}
</a>
{% endif %}
<br/>
Desc: {{ elem.blurb }}
<br/>
Type:{{ elem.typ }}
</li>
{% endfor %}
</ul>
</div>
{% for item in buzzitems %}
<a href="{{ item.link }}" target="_blank">{{ item.title }}</a>
<div>{{ item.blurb }}</div>
{% endfor %}
</div>
{% endif %}
</div> <!-- end about -->
<div id="scripts" class="tab_content">
<div>Help text - to send them to script archive</div>
<br />
<a href="toggleLink">Title</a>
<div>One line description. <span class="toggleDiv">Extra information goes here</span></div>
<br />
<a href="toggleLink">Title</a>
<div>One line description. <span class="toggleDiv">Extra information goes here</span></div>
<br />
<a href="toggleLink">Title</a>
<div>One line description. <span class="toggleDiv">Extra information goes here</span></div>
<br />
</div> <!-- end scripts -->
</div>
<div id="people" class="tab_content">
<div id="connections" class="tab_content">
<!-- <p><a href="" class="toggleLink">A V Gopalakrishnan</a> Theatre Enthusiast, Mumbai</p>-->
{% if groups %}
<div id="" class="itfFormDisplay">
<p class="orange">Theatre Groups: </p>
<ul>
{% for elem in groups %}
<li>
<a href={{ elem.get_absolute_url }}> {{ elem.name }} </a>
</li>
{% endfor %}
</ul>
</div>
{% endif %} <br/>
<h5 class="orangeInnerRight">Member of</h5>
<br />
{% for group in groups %}
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<a href="{{ group.group.get_absolute_url }}">{{ group.group.name }}</a>
<div>{{ group.group.locations.0.city.name }}</div>
<div>{{ group.role }}</div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
{% endfor %}
{% endif %}
<!--
<a href="" class="toggleLink rightFloat">More>></a>
<div class="clear"></div>
-->
{% if connections %}
<h5 class="orangeInnerRight">Worked with</h5>
<br />
{% if connections_from or connections_to %}
<div id="" class="itfFormDisplay">
<p class="orange">Connections: </p>
{% if connections_from %} <ul>
{% for elem in connections_from %}
<li>
{{ elem.relation.name }}
<a href={{ elem.person2.get_absolute_url }}> {{ person2.name }} </a>
</li>
{% endfor %}
{% for connection in connections %}
{% ifequal connection.person1 obj %}
<div class="productionEach">
<div class="productionEachImg">
<img src="{{ connection.person2.get_image }}" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<a href="{{ connection.person2.get_absolute_url }}">{{ connection.person2.first_name }} {{ connection.person2.last_name }}</a>
<div>{{ connection.person2.about|truncatewords:40 }}</div>
<div>{{ connection.person2.locations.0.city.name }}</div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
{% else %}
<div class="productionEach">
<div class="productionEachImg">
<img src="{{ connection.person1.get_image }}" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<a href="{{ connection.person1.get_absolute_url }}">{{ connection.person1.first_name }} {{ connection.person1.last_name }}</a>
<div>{{ connection.person1.about|truncatewords:40 }}</div>
<div>{{ connection.person1.locations.0.city.name }}</div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
{% endifequal %}
{% endfor %}
{% endif %}
{% if connections_to %} <ul>
{% for elem in connections_to %}
<li>
{{ elem.relation.name }}
<a href={{ elem.person1.get_absolute_url }}> {{ person1.name }} </a>
</li>
{% endfor %}
{% endif %}
</ul>
</div>
{% endif %} <br/>
<!--
<a href="" class="toggleLink rightFloat">More>></a>
<div class="clear"></div>
<br />
-->
</div> <!-- end connections -->
{% if productions %}
<div id="productions" class="tab_content">
<h3 class="orange">Productions</h3>
{% for p in productions %}
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<a href="{{ p.production.get_absolute_url }}">{{ p.production.name }}</a>
<div>Group: {{ p.production.group.name }}</div>
<div><em>{{ p.years }}</em></div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
{% endfor %}
</div> <!-- end productions -->
{% endif %}
</div>
<div id="production" class="tab_content">
{% if productions %}
<div id="" class="itfFormDisplay">
<p class="orange">Productions: </p>
<ul>
{% for elem in productions %}
<li> <a href={{ elem.get_absolute_url }}> {{ elem.name }} </a>
</li>
{% endfor %}
</ul>
</div>
{% endif %} <br/>
</div>
<div id="gallery" class="tab_content">
Photos & Videos. There should be a clear demarcation between Photos and Videos
<h3 class="orange">Kindly refer to Gallery tab in Script Archive</h3>
</div>
{% if resources %}
<div id="resources" class="tab_content">
{% if resources %}
<div class="itfFormDisplay">
<p class="orange">Resources: </p>
<ul>
{% for elem in resources %}
<li>
<span class="orange">Title: </span>
{% if elem.get_link %}
<a href="{{ elem.get_link }}" target="_blank">
{% endif %}
{{ elem.title }}
{% if elem.get_link %}
</a>
{% endif %}
<br />
{% if elem.desc %}
<span class="orange">Description: </span> {{ elem.desc }} <br />
{% endif %}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% for r in resources %}
<div class="resourcesBlock">
<div class="resourcesEach">
<div><strong>{{ r.title }}</strong></div>
<div>{{ r.desc }}</div>
{% if r.url %}
<div><a href="{{ r.url }}" target="_blank">{{ r.url }}</a></div>
{% endif %}
{% if r.fil %}
<a href="{{ r.fil.url }}" target="_blank">Download</a>
{% endif %}
</div>
<div class="productionEachImg">
{% if r.thumbnail %}
{% thumbnail r.thumbnail "150x150" crop="center" as thumb %}
<img src="{{ thumb.url }}" alt="" />
{% endthumbnail %}
{% else %}
<img src="" alt="/static/images/150x150.jpg" />
{% endif %}
</div>
<div class="clear"></div>
</div> <!-- end resources block -->
{% endfor %}
</div>
<div id="notes" class="tab_content">
Anything about the group (annotations & anecdotes in a sense). Anybody can add. These are scripts owned by the group. i.e the group is the author.
</div>
{% endif %}
<script type="text/javascript" src="/static/js/innertabs.js"></script>

View File

@ -1,131 +1,173 @@
<p class="orange">Production name: </p> {{ name }}
<link rel="stylesheet" href="/static/css/modules/tabsinnerright.css" type="text/css" />
{% if anecdotes %}
<script>
$(function() {
$('.toggleLink').click(function(e) {
e.preventDefault();
$(this).next().slideToggle();
});
});
</script>
<div class="orange">Anecdotes</div>
<p>{{ anecdotes }}</p>
{% endif %}
<ul class="tabsInnerRight">
<li><a href="#calendar">Calendar</a></li>
<li><a href="#about">About</a></li>
<li><a href="#cast">Cast and Crew</a></li>
<li><a href="#gallery">Gallery</a></li>
<li><a href="#buzz">Buzz</a></li>
<li><a href="#notes">Notes</a></li>
</ul>
{% if group %}
<div id="calendar" class="tab_content">
<h3>{{ name }}</h3>
(to be implemented)
<table width="520" border="1" cellspacing="0" cellpadding="0" class="tableCalendar">
<tr>
<td>Date</td>
<td>Time</td>
<td>Venue, City</td>
<td class="orangeNoBold">Book Now/Full</td>
</tr>
<tr>
<td>Date</td>
<td>Time</td>
<td>Venue, City</td>
<td class="orangeNoBold">Book Now/Full</td>
</tr>
<tr>
<td>Date</td>
<td>Time</td>
<td>Venue, City</td>
<td class="orangeNoBold">Book Now/Full</td>
</tr>
<tr>
<td>Date</td>
<td>Time</td>
<td>Venue, City</td>
<td class="orangeNoBold">Book Now/Full</td>
</tr>
</table>
<p class="orange">Group: </p> <a href="{{ group.get_absolute_url }}">{{ group.name }}</a> <br /> {% endif %}
<a href="" class="toggleLink rightFloat">More&gt;&gt;</a>
{% if director %}
<p class="orange">Director: </p><a href="{{ director.get_absolute_url }}">{{ director.get_title }}</a><br />
{% endif %}
</div> <!-- end div calendar -->
<div id="about" class="tab_content">
<h3 class="borderYellow paddingBottom">{{ name }}</h3>
{% if group %} <div class="paddingTop"><strong>Group: </strong>{{ group.name }}</div> {% endif %}
<div><strong>Languages: </strong>Hindi, English, etc.</div>
<div>From 2011 to 2013</div>
<div><strong>No of Shows: </strong>range/number</div>
<div class="borderYellow"> <a href="" class="toggleLink rightFloat">Book Now>></a>
<br /><br />
</div>
<br />
<div><strong>Writers: </strong> Name (playwright), name (adaptation), name (translation)</div>
<div><strong>Director: </strong>Hindi, English, etc.</div>
<div><strong>Credits: name (research), name (music)</strong></div>
<div class="borderYellow"> <a href="" class="toggleLink rightFloat">See full credits>></a><br /><br /></div>
<br />
<div>
<p>Some copy here that is a synopsis in a paragraph. Some copy here that is a synopsis in a paragraph.
Some copy here that is a synopsis in a paragraph. Some copy here that is a synopsis in a paragraph.</p>
</div>
<div class="borderYellow">
<a href="">Contact</a>
<div>Group website</div>
<br />
</div>
<br />
<div class="borderYellow">
<h5 class="orangeInnerRight">Awards</h5>
<div>Name of award, name of awardee, year, link</div>
<div>Name of award, name of awardee, year, link</div>
<div>Name of award, name of awardee, year, link</div>
<div>Name of award, name of awardee, year, link</div>
<br />
</div>
<br />
<h5 class="orangeInnerRight">Links</h5>
<a href="">Link to article</a>
<div>One line desc</div>
<br />
<a href="">Link to article</a>
<div>One line desc</div>
<br />
<a href="">Link to article</a>
<div>One line desc</div>
<br />
</div> <!-- end about -->
<div id="cast" class="tab_content">
</div>
<div id="gallery" class="tab_content">
<h3 class="orange">Please refer to Gallery in Script Archive, with additional information below.</h3>
<h3 class="orange">Links</h3>
<div><a href="">Link</a></div>
<div><a href="">Link</a></div>
<div><a href="">Link</a></div>
<div><a href="">Link</a></div>
<a href="" class="rightFloat">More>></a>
</div> <!-- end gallery -->
<div id="buzz" class="tab_content">
<h3 class="orangeInnerRight">Reviews</h3>
<a href="">Link to article</a>
<div>One line desc</div>
<br />
<a href="">Link to article</a>
<div>One line desc</div>
<br />
<a href="">Link to article</a>
<div>One line desc</div>
<br />
<a href="" class="rightFloat">More>></a>
<br />
<h3 class="orange">Comments</h3>
<div class="borderYellow">
<div>Comments Comments Comments Comments Comments Comments</div>
<div class="rightFloat">-Posted by date, time</div>
<br /><br />
</div>
<div class="borderYellow">
<br />
<div>Comments Comments Comments Comments Comments Comments</div>
<div class="rightFloat">-Posted by date, time</div>
<br /><br />
</div>
<div class="borderYellow">
<br />
<div>Comments Comments Comments Comments Comments Comments</div>
<div class="rightFloat">-Posted by date, time</div>
<br /><br />
</div>
<br />
<a href="" class="rightFloat">More>></a>
</div> <!-- end buzz -->
<div id="notes" class="tab_content">
<h3 class="orange">Kindly refer to notes in script archive. But instead of Posted by Name, Date, Time, make it - date, time</h3>
</div> <!-- end notes -->
<script type="text/javascript" src="/static/js/innertabs.js"></script>
{% if playwright %}
<p class="orange">Playwright: </p><a href="{{ playwright.get_absolute_url }}">{{ playwright.get_title }}</a>
{% endif %}
<br />
{% if languages %}
<div id="" class="">
<span class="orange">Languages: </span>
<ul>
{% for elem in languages %}
<li>
{{ elem.name }}
</li>
{% endfor %}
</ul>
</div>
{% endif %} <br/>
{% if awards %}
<div id="" class="">
<span class="orange">Awards: </span>
<ul>
{% for elem in awards %}
<li>
{% if elem.link %}
<a href="{{ elem.link }}">
{% endif %}
{{ elem.title }}
{% if elem.link %}
</a>
{% endif %}
{% if elem.year %}
{{ elem.year }}
{% endif %}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if buzzitems %}
<div id="" class="">
<span class="orange">Buzz Items: </span>
<ul>
{% for elem in buzzitems %}
<li>
{% if elem.link %}
<a href={{ elem.link }}> {{ elem.title }}
{% endif %}
{% if elem.link %}
</a>
{% endif %}
<br/>
Desc: {{ elem.blurb }}
<br/>
Type:{{ elem.typ }}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
<br />
{% if sibling_productions %}
<div id="" class="">
<span class="orange">Productions based on the same script: </span>
<ul>
{% for elem in sibling_productions %}
<li>
{% if elem.get_absolute_url %}
<a href={{ elem.get_absolute_url }}> {{ elem.name }}
{% endif %}
{% if elem.get_absolute_url %}
</a>
{% endif %}
<br/>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
<br />
{% if related_productions %}
<div id="" class="">
<span class="orange">Productions based on adaptations of the script: </span>
<ul>
{% for elem in related_productions %}
<li>
{% if elem.get_absolute_url %}
<a href={{ elem.get_absolute_url }}> {{ elem.name }}
{% endif %}
{% if elem.get_absolute_url %}
</a>
{% endif %}
<br/>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
<br />
<a href="{{ edit_url }}">Edit</a>

View File

@ -1,276 +1,314 @@
{% load thumbnail %}
<link rel="stylesheet" href="/static/css/modules/tabsinnerright.css" type="text/css" />
<ul class="tabsInnerRight">
<li><a href="#about">About</a></li>
<li><a href="#people">People</a></li>
<li><a href="#productions">Productions</a></li>
<li><a href="#connections">Connections</a></li>
<li><a href="#plays">Plays &amp; more</a></li>
<li><a href="#gallery">Gallery</a></li>
<li><a href="#resources">Resources</a></li>
<li><a href="#notes">Notes</a></li>
{% if resources %}<li><a href="#resources">Resources</a></li>{% endif %}
<li><a href="#notes">Notes</a></li>
</ul>
<div id="about" class="tab_content">
<h3> {{ name }}</h3>
{% if email %}
<div id="" class="itfFormDisplay">
<span class="orange">Email: </span> {{ email }}
</div>
{% endif %}
{% if tel %}
<div id="" class="itfFormDisplay">
<span class="orange">Tel: </span> {{ tel }}
</div>
{% endif %}
{% if founded %}
<div id="" class="itfFormDisplay">
<span class="orange">Year founded: </span> {{ founded }}
</div>
{% endif %}
{% if website %}
<div id="" class="itfFormDisplay">
<span class="orange">Website: </span> {{ website }}
</div>
{% endif %}
{% if about %}
<div id="" class="itfFormDisplay">
<span class="orange">About: </span> {{ about }}
</div>
{% endif %}
{% if nature_of_work %}
<div id="" class="itfFormDisplay">
<span class="orange">Nature of Work: </span>
<ul>
{% for work in nature_of_work %}
<li>{{ work.name }} {% if work.is_main %} Primary occupation {% endif %} </li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if trainings %}
<div id="" class="itfFormDisplay">
<span class="orange">Trainings: </span>
<ul>
{% for training in trainings %}
<li>{{ training }} {{ training.title }} {{ training.desc }} {{ training.person }} {{ training.area }} {{ training.with_whom }} {{ training.where }} {{ training.from_when }} {{ training.until_when }}
</li>
{% for loc in training.locations.all %} {{ loc.city }} {% endfor %}
{% endfor %}
</ul>
</div>
{% endif %}
<h3 class="borderYellow paddingBottom">{{ name }}</h3>
{% if venues %}
<div id="" class="itfFormDisplay">
<span class="orange">Venues: </span>
<ul>
{% for elem in venues %}
<li> {{ elem.city }} </li>
{% endfor %}
</ul>
<div><strong>Based in: </strong>{% for v in venues %} {{ v.city.name }}{% if not forloop.last %}, {% endif %} {% endfor %}</div>
{% endif %}
{% if founded %}
<div><strong>Founded: </strong>{{ founded }}</div>
{% endif %}
{% if languages %}
<div class="borderYellow"><strong>Languages we work in: </strong>
{% for l in languages %}
{{ l.name }}{% if not forloop.last %}, {% endif %}
{% endfor %}
<br /><br />
</div>
{% endif %}
{% if buzzitems %}
<div id="" class="itfFormDisplay">
<span class="orange">Buzz Items: </span>
<ul>
{% for elem in buzzitems %}
<li>
{% if elem.link %}
<a href={{ elem.link }}> {{ elem.title }}
{% endif %}
{% if elem.link %}
</a>
{% endif %}
<br/>
Desc: {{ elem.blurb }}
<br/>
Type:{{ elem.typ }}
</li>
{% endfor %}
</ul>
<br />
<div>
<p>{{ about }}</p>
</div>
{% endif %}
{% if tel %} <p>{{ tel }}</p> {% endif %}
{% if website %}
<div><a href="{{ website.url }}" target="_blank">{{ website.url }}</a></div>
{% endif %}
<div class="borderYellow">
<a href="">Contact</a>
<br /><br />
</div>
<br />
{% if awards %}
<div class="borderYellow">
<h5 class="orangeInnerRight">Awards</h5>
{% for award in awards %}
<div>
{{ award.title }}
{% if award.year %},
{{ award.year }}
{% endif %}
{% if award.link %},
<a href="{{ award.link }}" target="_blank">link</a>
{% endif %}
</div>
{% endfor %}
<br />
</div>
<br />
{% endif %}
{% if buzzitems %}
<h5 class="orangeInnerRight">More about us</h5>
{% for item in buzzitems %}
<a href="{{ item.link }}" target="_blank">{{ item.title }}</a>
<div>{{ item.blurb }}</div>
{% endfor %}
{% endif %}
</div> <!-- end about -->
<div id="connections" class="tab_content">
<h5 class="orangeInnerRight">Members</h5>
<br />
{% for p in people %}
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<a href="{{ p.person.get_absolute_url }}">{{ p.person.first_name }} {{ p.person.last_name }}</a>
<div>{{ p.person.about|truncatewords:15 }}</div>
<div>{{ p.role }}</div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
{% endfor %}
<br />
<!-- <a href="" class="toggleLink rightFloat">More>></a> -->
<div class="clear"></div>
<h5 class="orangeInnerRight">Worked with (not implemented)</h5>
<br />
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<a href="">Name of Group</a>
<div>Location</div>
<div>Relationship to Group (e.g. admin)</div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<a href="">Name of Person</a>
<div>Occupation/one-line desc</div>
<div>Location</div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
</div>
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<a href="">Name of Person</a>
<div>Occupation/one-line desc</div>
<div>Location</div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<a href="">Name of Person</a>
<div>Location</div>
<div>Relationship to Group (e.g. admin)</div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
<a href="" class="toggleLink rightFloat">More>></a>
<div class="clear"></div>
<br />
</div> <!-- end connections -->
<div id="people" class="tab_content">
<div id="plays" class="tab_content">
<h3 class="orange">Plays &amp; more</h3>
{% for p in productions %}
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<div class="orangeInnerRight">{{ p.name }} {% if p.debut_date %} {{ debut_date|date:"Y" }} {% endif %}</div>
<!-- <div>Group: Group Name</div> -->
<div><em>Title Credits: (not implemented)</em></div>
<div>No. of shows: (not implemented)</div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
{% endfor %}
{% if people %}
<div id="" class="itfFormDisplay">
<span class="orange">People: </span>
<!-- <a href="" class="toggleLink rightFloat">More>></a>
<div class="clear"></div> -->
<ul>
{% for elem in people %}
<li>
{% if elem.get_absolute_url %}
<h3 class="orange">Workshops (not implemented)</h3>
<a href={{ elem.get_absolute_url }}>
{% endif %}
{{ elem.first_name }} {{ elem.last_name }}
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<div class="orangeInnerRight">Name of workshops</div>
<div><em>One line desc</em></div>
<div>Current</div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<div class="orangeInnerRight">Name of workshops</div>
<div><em>One line desc</em></div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
{% if elem.get_absolute_url %}
</a>
{% endif %}
</li>
<br />
<a href="" class="rightFloat">More>></a>
<div class="clear"></div>
{% endfor %}
</ul>
</div>
{% endif %}
<h3 class="orange">More</h3>
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<div class="orangeInnerRight">Name of activity (talk, whatever)</div>
<div><em>One line desc</em></div>
<div>Current</div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
</div>
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<div class="orangeInnerRight">Name of activity (talk, whatever)</div>
<div><em>One line desc</em></div>
<div>Current</div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
<div id="production" class="tab_content">
{% if productions %}
<div id="" class="itfFormDisplay">
<span class="orange">Productions: </span>
<ul>
{% for elem in productions %}
<li>
<a href={{ elem.get_absolute_url }}> {{ elem.name }} </a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
</div>
</div> <!-- end plays -->
<div id="gallery" class="tab_content">
Photos & Videos. There should be a clear demarcation between Photos and Videos
<h3 class="orange">Kindly refer to Gallery tab in Script Archive</h3>
</div> <!-- end gallery -->
</div>
{% if resources %}
<div id="resources" class="tab_content">
{% if resources %}
<div class="itfFormDisplay">
<span class="orange">Resources: </p>
<ul>
{% for elem in resources %}
<li>
<span class="orange">Title: </span>
{% if elem.get_link %}
<a href="{{ elem.get_link }}" target="_blank">
{% endif %}
{{ elem.title }}
{% if elem.get_link %}
</a>
{% endif %}
<br />
{% if elem.desc %}
<span class="orange">Description: </span> {{ elem.desc }} <br />
{% endif %}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% for r in resources %}
<div class="resourcesBlock">
<div class="resourcesEach">
<div><strong>{{ r.title }}</strong></div>
<div>{{ r.desc }}</div>
{% if r.url %}
<div><a href="{{ r.url }}" target="_blank">{{ r.url }}</a></div>
{% endif %}
{% if r.fil %}
<a href="{{ r.fil.url }}" target="_blank">Download</a>
{% endif %}
</div>
<div class="productionEachImg">
{% if r.thumbnail %}
{% thumbnail r.thumbnail "150x150" crop="center" as thumb %}
<img src="{{ thumb.url }}" alt="" />
{% endthumbnail %}
{% else %}
<img src="" alt="/static/images/150x150.jpg" />
{% endif %}
</div>
<div class="clear"></div>
</div> <!-- end resources block -->
{% endfor %}
</div>
{% endif %}
<div id="notes" class="tab_content">
{% load comments %}
<div id="comments">
{% get_comment_count for obj as comment_count %}
{% if comment_count %}
<H4 class="center">{{ comment_count }} comment{{ comment_count|pluralize }}</H4>
{% endif %}
<div id="comment-list">
{% render_comment_list for obj %}
</div>
{% if obj.allow_comments and user.is_authenticated %}
<H4 class="center">your comment</H4>
<div id="comment-form">
{% render_comment_form for obj %}
</div>
{% else %}
{% if user.is_authenticated %}
<h4 class="center"> Comments are disabled for this article</h4>
{% else %}
<h4 class="center"> </h4>
{% endif %}
{% endif %}
</div>
{% if awards %}
<div id="" class="itfFormDisplay">
<span class="orange">Awards: </span>
<ul>
{% for elem in awards %}
<li>
{% if elem.link %}
<a href="{{ elem.link }}">
{% endif %}
{{ elem.title }}
{% if elem.link %}
</a>
{% endif %}
{% if elem.year %}
{{ elem.year }}
{% endif %}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if scripts %}
<div id="" class="itfFormDisplay">
<span class="orange">Scripts: </p>
<ul>
{% for elem in scripts %}
<li>
<a href="{{ elem.get_absolute_url }}"> {{ elem.title }} </a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
</div>
<h3 class="orange">Kindly refer to notes tab in Script Archive</h3>
</div> <!-- end notes -->
<script type="text/javascript" src="/static/js/innertabs.js"></script>

View File

@ -1,105 +1,306 @@
{% load thumbnail %}
<link rel="stylesheet" href="/static/css/modules/tabsinnerright.css" type="text/css" />
<script>
$(function() {
$('.toggleLink').click(function(e) {
e.preventDefault();
$(this).next().slideToggle();
});
});
</script>
<ul class="tabsInnerRight">
<li><a href="#synopsis">Synopsis</a></li>
<li><a href="#production">Director</a></li>
<li><a href="#people">People</a></li>
<li><a href="#notes">Notes</a></li>
<li><a href="#about">About</a></li>
<li><a href="#productions">Productions</a></li>
<li><a href="#people">People</a></li>
<li><a href="#notes">Notes</a></li>
<li><a href="#gallery">Gallery</a></li>
<li><a href="#resources">Resources</a></li>
{% if resources %}<li><a href="#resources">Resources</a></li>{% endif %}
</ul>
<div id="synopsis" class="tab_content">
<h3> {{ title }} </h3>
<span class="orange">Author: </span> {{ author }} <br />
<div id="about" class="tab_content">
<div class="orange">Synopsis:</div>
<p>{{ synopsis }}</p>
<h3>{{ title }}</h3>
{% if author %}
<div><strong>Writer:</strong> {{ author.first_name }} {{ author.last_name }}</div>
{% endif %}
{% if language %}
<span class="orange">Language: </span> {{ language }} <br />
<div><strong>Language:</strong> {{ language }}</div>
{% endif %}
{% if approx_duration %}
<div><strong>Approximate duration:</strong> {{ approx_duration }} minutes</div>
{% endif %}
{% if no_characters %}
<span class="orange">No of characters: </span> {{ no_characters }} <br />
{% endif %}
{% if no_of_women %}
<span class="orange">No of women: </span> {{ no_of_women }} <br />
{% endif %}
{% if approx_duration %}
<span class="orange">Approximate duration: </span> {{ approx_duration }}
{% endif %}
{% if production_notes %}
<div class="orange">Production notes:</div>
<p> {{ production_notes }} </p>
{% endif %}
{% if script_file %}
<div class="orange">Download Script</div>
<p>
By downloading, you agree to the terms of the licenses: <br />
<span class="orange">Adaptation License: </span> <a href="{{ license_adapt.legal_file.url }}" target="_blank">{{ license_adapt.name }}</a> <br />
{{ license_adapt.short_description }} - <a href="{{ license_adapt.readable_file.url }}" target="_blank">Read Short Version</a> <br /><br />
<span class="orange">Performance License: </span> <a href="{{ license_perform.legal_file.url }}" target="_blank">{{ license_perform.name }}</a> <br />
{{ license_perform.short_description }} - <a href="{{ license_perform.readable_file.url }}" target="_blank">Read Short Version</a> <br />
<br />
<a target="_blank" href="{{ script_file }}">Download</a> <br />
</p>
{% endif %}
</div>
<div id="production" class="tab_content">
{% if productions %}
<div class="itfFormDisplay">
<span class="orange">Productions of this play:</span>
<ul>
{% for elem in productions %}
<li><a href="{{ elem.get_absolute_url }}">{{ elem.title }}</a></li>
{% endfor %}
</ul>
</div>
<div><strong>No of characters:</strong> {{ no_characters }} - Female: {{ no_of_women }}, Male: {{ no_of_men }}</div>
{% endif %}
<br />
To add: all related scripts' productions, how should this be organised?
<div>
{{ synopsis }}
</div>
<br />
<h5 class="orangeInnerRight">Licenses:</h5>
<p>This script may be accessed
under the following Creative Commons Licenses:</p>
</div>
<a href="" class="toggleLink">Adaptation License: {{ license_adapt.name }}</a>
<div class="toggleDiv">
<p>{{ license_adapt.short_description }} <span style="color:red;">Does this need to be an accordion?</span></p>
<a href="{{ license_adapt.legal_file.url }}" target="_blank" class="block">Read legal version</a>
</div>
<br>
<a href="" class="toggleLink">Performance License: {{ license_perform.name }}</a>
<div class="toggleDiv">
<p>{{ license_perform.short_description }} </p>
<a href="{{ license_perform.legal_file.url }}" target="_blank" class="block">Read legal version</a>
</div>
<br><br>
{% if script_file %}
<a href="{{ script_file }}" target="_blank">Download</a>
{% endif %}
</div> <!-- end synopsis -->
<div id="productions" class="tab_content">
<h3 class="orange">Productions</h3>
{% for p in sibling_productions %}
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<a href="{{ p.get_absolute_url }}" class="tooltipLink">{{ p.name }}
<!--
<span class="tooltip">
<div>
{{ p.synopsis|truncatewords:15 }}
<strong>Some Title</strong><br />
Some text goes here
</div>
</span>
-->
</a>
{% if p.group %} <div>Group: {{ p.group.name }}</div> {% endif %}
<div>{{ p.synopsis|truncatewords:20 }}</div>
<!-- <div>No. of shows: 50</div> -->
</div>
<div class="clear"></div>
</div> <!-- end production each -->
{% endfor %}
<h3 class="orange">Related Productions</h3>
{% for p in related_productions %}
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<a href="{{ p.get_absolute_url }}" class="tooltipLink">{{ p.name }}
<!--
<span class="tooltip">
<div>
{{ p.synopsis|truncatewords:15 }}
<strong>Some Title</strong><br />
Some text goes here
</div>
</span>
-->
</a>
{% if p.group %} <div>Group: {{ p.group.name }}</div> {% endif %}
<div>{{ p.synopsis|truncatewords:20 }}</div>
<!-- <div>No. of shows: 50</div> -->
</div>
<div class="clear"></div>
</div> <!-- end production each -->
{% endfor %}
</div> <!-- end productions -->
<div id="people" class="tab_content">
To add: all people associated with all related productions.
</div>
(to be implemented)
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<a href="">Name of Person</a>
<div>Writer: Some script</div>
<div>Translation of script by playwright</div>
<div>From language to language</div>
<!-- <a href="" class="toggleLink orange">Synopsis</a>-->
<div class="toggleDiv">Lorem ipsum</div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<a href="">Name of Person</a>
<div>Writer: Some script</div>
<div>Translation of script by playwright</div>
<div>From language to language</div>
<!-- <a href="" class="toggleLink orange">Synopsis</a>-->
<div class="toggleDiv">Lorem ipsum</div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
<div class="productionEach">
<div class="productionEachImg">
<img src="" alt="/static/images/150x150.jpg" />
</div>
<div class="productionEachTextA">
<a href="">Name of Person</a>
<div>Writer: Some script</div>
<div>Translation of script by playwright</div>
<div>From language to language</div>
<!-- <a href="" class="toggleLink orange">Synopsis</a>-->
<div class="toggleDiv">Lorem ipsum</div>
</div>
<div class="clear"></div>
</div> <!-- end production each -->
</div> <!-- end people -->
<div id="notes" class="tab_content">
Anything about the script (annotations & anecdotes in a sense). Anybody can add
</div>
<div id="gallery" class="tab_content">
(photos, video, audio) of all productions connected to this script. Public can upload as well and should know that.
</div>
<div class="noteEach">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam,
quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit
esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis
dolore te feugait nulla facilisi.</p>
<p class="noteMetaData">- posted by Name, Date, Time</p>
</div>
<div class="noteEach">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam,
quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit
esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis
dolore te feugait nulla facilisi.</p>
<p class="noteMetaData">- posted by Name, Date, Time</p>
</div>
<div class="noteEach">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam,
quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit
esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis
dolore te feugait nulla facilisi.</p>
<p class="noteMetaData">- posted by Name, Date, Time</p>
</div>
<div class="noteEach">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam,
quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit
esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis
dolore te feugait nulla facilisi.</p>
<p class="noteMetaData">- posted by Name, Date, Time</p>
</div>
</div> <!-- end notes -->
{% if resources %}
<div id="resources" class="tab_content">
any critical writing on the script pr the author or any productions (person uploading should be encouraged to have keywords/tags: author, title, language, name of group, original name of play, etc)
{% for r in resources %}
<div class="resourcesBlock">
<div class="resourcesEach">
<div><strong>{{ r.title }}</strong></div>
<div>{{ r.desc }}</div>
{% if r.url %}
<div><a href="{{ r.url }}" target="_blank">{{ r.url }}</a></div>
{% endif %}
{% if r.fil %}
<a href="{{ r.fil.url }}" target="_blank">Download</a>
{% endif %}
</div>
<div class="productionEachImg">
{% if r.thumbnail %}
{% thumbnail r.thumbnail "150x150" crop="center" as thumb %}
<img src="{{ thumb.url }}" alt="" />
{% endthumbnail %}
{% else %}
<img src="" alt="/static/images/150x150.jpg" />
{% endif %}
</div>
<div class="clear"></div>
</div> <!-- end resources block -->
{% endfor %}
</div>
<!--
<div class="orange">{{ title }}</div>
{% if synopsis %}
<span class="orange">Synopsis: </span> {{ synopsis }} <br />
{% endif %}
<div id="gallery" class="tab_content">
<a class="bpRelated" href="{{ script_file }}">Download</a> <br /><br />
<div class="imgVideoBlock">
<h3 class="orange">Photos</h3>
<img src="/static/images/150x150.jpg" width="160" height="120" alt="" />
<img src="/static/images/150x150.jpg" width="160" height="120" alt="" />
<img src="/static/images/150x150.jpg" width="160" height="120" alt="" />
<img src="/static/images/150x150.jpg" width="160" height="120" alt="" />
<img src="/static/images/150x150.jpg" width="160" height="120" alt="" />
<img src="/static/images/150x150.jpg" width="160" height="120" alt="" />
<br />
-->
<a href="" class="moreLink">More&raquo;</a>
</div>
<br>
<div class="imgVideoBlock">
<h3 class="orange">Videos</h3>
<img src="/static/images/150x150.jpg" width="160" height="120" alt="" />
<img src="/static/images/150x150.jpg" width="160" height="120" alt="" />
<img src="/static/images/150x150.jpg" width="160" height="120" alt="" />
<img src="/static/images/150x150.jpg" width="160" height="120" alt="" />
<img src="/static/images/150x150.jpg" width="160" height="120" alt="" />
<img src="/static/images/150x150.jpg" width="160" height="120" alt="" />
<a href="{{ edit_url }}">Edit</a>
<a href="" class="moreLink">More&raquo;</a>
</div>
</div> <!-- end gallery -->
<script type="text/javascript" src="/static/js/innertabs.js"></script>
<br />
<a href="{{ edit_url }}">Edit</a>