added digitalglarus gallery template
Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
parent
3d4fb0dd1b
commit
e4328f94d7
1 changed files with 19 additions and 0 deletions
19
digitalglarus/templates/digitalglarus/gallery.html
Normal file
19
digitalglarus/templates/digitalglarus/gallery.html
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{% load thumbnail %}
|
||||||
|
<div id="dg-gallery-{{gallery.name}}" class="carousel slide">
|
||||||
|
<!-- Indicators --><!-- Wrapper for slides -->
|
||||||
|
<div class="carousel-inner">
|
||||||
|
{% for image in gallery.dgpicture_set.all %}
|
||||||
|
<div class="item {% if forloop.first %} active {% endif %} ">
|
||||||
|
<img class="img-responsive img-full" src="{{ image.image.url }}" alt="{{ image.description }}">
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Controls -->
|
||||||
|
<a class="left carousel-control" href="#dg-gallery-{{gallery.name}}" data-slide="prev">
|
||||||
|
<span class="icon-prev"></span>
|
||||||
|
</a>
|
||||||
|
<a class="right carousel-control" href="#dg-gallery-{{gallery.name}}" data-slide="next">
|
||||||
|
<span class="icon-next"></span>
|
||||||
|
</a>
|
||||||
|
</div>
|
Loading…
Reference in a new issue