create includes for media gallery and buzzitems
This commit is contained in:
parent
a442185c02
commit
00869b876e
11
itf/templates/includes/buzzitems.html
Normal file
11
itf/templates/includes/buzzitems.html
Normal 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 %}
|
27
itf/templates/includes/media_gallery.html
Normal file
27
itf/templates/includes/media_gallery.html
Normal 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»</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»</a> -->
|
||||
</div>
|
|
@ -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»</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»</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">
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 -->
|
||||
|
||||
|
||||
|
|
|
@ -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»</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»</a> -->
|
||||
</div>
|
||||
{% include 'includes/media_gallery.html' %}
|
||||
|
||||
</div> <!-- end gallery -->
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user