create includes for media gallery and buzzitems

This commit is contained in:
Sanjay B 2013-04-09 16:36:58 +05:30
parent a442185c02
commit 00869b876e
7 changed files with 49 additions and 69 deletions

View File

@ -0,0 +1,11 @@
{% if buzzitems %}
<div>
<!-- <h5 class="orangeInnerRight">More</h5> -->
{% for item in buzzitems %}
<a href="{{ item.link }}" target="_blank">{{ item.title }}</a>
<div>{{ item.blurb }}</div>
{% endfor %}
</div>
{% endif %}

View File

@ -0,0 +1,27 @@
<div class="imgVideoBlock">
<h3 class="orange">Albums</h3>
{% for g in obj.galleries.all %}
{% thumbnail g.thumbnail "160x120" crop="center" as thumb %}
<a href="{{ g.get_absolute_url }}" target="_blank">
<img src="{{ thumb.url }}" width="160" height="120" alt="{{ g.title }}" />
</a>
{% endthumbnail %}
{% endfor %}
<!-- <a href="" class="moreLink">More&raquo;</a> -->
</div>
<br>
{% if obj.get_videos %}
<div class="imgVideoBlock">
<h3 class="orange">Videos</h3>
{% for v in obj.get_videos %}
<img src="{{ v.thumbnail }}" class="youtubeLink thumbsDetails" data-iframe='{{ v.iframe }}' />
{% endfor %}
{% endif %}
<!-- <a href="" class="moreLink">More&raquo;</a> -->
</div>

View File

@ -41,37 +41,11 @@ $(function() {
</div>
<div id="gallery" class="tab_content">
<div class="imgVideoBlock">
<h3 class="orange">Albums</h3>
{% for g in obj.galleries.all %}
{% thumbnail g.thumbnail "160x120" crop="center" as thumb %}
<a href="{{ g.get_absolute_url }}" target="_blank">
<img src="{{ thumb.url }}" width="160" height="120" alt="{{ g.title }}" />
</a>
{% endthumbnail %}
{% endfor %}
<!-- <a href="" class="moreLink">More&raquo;</a> -->
</div>
<br>
{% if obj.get_videos %}
<div class="imgVideoBlock">
<h3 class="orange">Videos</h3>
{% for v in obj.get_videos %}
<img src="{{ v.thumbnail }}" class="youtubeLink thumbsDetails" data-iframe='{{ v.iframe }}' />
{% endfor %}
{% endif %}
<!-- <a href="" class="moreLink">More&raquo;</a> -->
{% include 'includes/media_gallery.html' %}
</div> <!-- end gallery -->
<div id="buzz" class="tab_content">
{% include 'includes/buzzitems.html' %}
</div> <!-- end buzz -->
<div id="notes" class="tab_content">

View File

@ -119,16 +119,7 @@ $(function() {
<br />
{% endif %}
{% if buzzitems %}
<div>
<h5 class="orangeInnerRight">More</h5>
{% for item in buzzitems %}
<a href="{{ item.link }}" target="_blank">{{ item.title }}</a>
<div>{{ item.blurb }}</div>
{% endfor %}
</div>
{% endif %}
{% include 'includes/buzzitems.html' %}
</div> <!-- end about -->
@ -245,7 +236,7 @@ $(function() {
<div id="gallery" class="tab_content">
<h3 class="orange">Kindly refer to Gallery tab in Script Archive</h3>
{% include 'includes/media_gallery.html' %}
</div>
{% if resources %}

View File

@ -114,7 +114,7 @@ $(function() {
</div>
<div id="gallery" class="tab_content">
<h3 class="orange">Please refer to Gallery in Script Archive, with additional information below.</h3>
{% include 'includes/media_gallery.html' %}
<h3 class="orange">Links</h3>
<div><a href="">Link</a></div>
@ -125,7 +125,9 @@ $(function() {
</div> <!-- end gallery -->
<div id="buzz" class="tab_content">
<h3 class="orangeInnerRight">Reviews</h3>
{% include 'includes/buzzitems.html' %}
<!-- <h3 class="orangeInnerRight">Reviews</h3>
<a href="">Link to article</a>
<div>One line desc</div>
<br />
@ -135,7 +137,7 @@ $(function() {
<a href="">Link to article</a>
<div>One line desc</div>
<br />
<a href="" class="rightFloat">More>></a>
<a href="" class="rightFloat">More>></a> -->
<br />
{% load comments %}

View File

@ -266,7 +266,7 @@
</div> <!-- end plays -->
<div id="gallery" class="tab_content">
<h3 class="orange">Kindly refer to Gallery tab in Script Archive</h3>
{% include 'includes/media_gallery.html' %}
</div> <!-- end gallery -->

View File

@ -250,32 +250,7 @@ $(function() {
<div id="gallery" class="tab_content">
<div class="imgVideoBlock">
<h3 class="orange">Albums</h3>
{% for g in obj.galleries.all %}
{% thumbnail g.thumbnail "160x120" crop="center" as thumb %}
<a href="{{ g.get_absolute_url }}" target="_blank">
<img src="{{ thumb.url }}" width="160" height="120" alt="{{ g.title }}" />
</a>
{% endthumbnail %}
{% endfor %}
<!-- <a href="" class="moreLink">More&raquo;</a> -->
</div>
<br>
{% if obj.get_videos %}
<div class="imgVideoBlock">
<h3 class="orange">Videos</h3>
{% for v in obj.get_videos %}
<img src="{{ v.thumbnail }}" class="youtubeLink thumbsDetails" data-iframe='{{ v.iframe }}' />
{% endfor %}
{% endif %}
<!-- <a href="" class="moreLink">More&raquo;</a> -->
</div>
{% include 'includes/media_gallery.html' %}
</div> <!-- end gallery -->