<commit_before>{% extends "defcdb/base_detail.html" %}
{% block scriptHeader %}
<style>
#info-panel { 
    padding: 7px;
    background-color: #dbedec; 
}

.img {
    margin: 5px;
    border: 1px solid #ccc;
    float: left;
    width: 180px;
    background-color: white;
}
.img img {
    width: 100%;
    height: auto;
}

.img {
    -webkit-transition: all 1s ease; /* Safari and Chrome */
    -moz-transition: all 1s ease; /* Firefox */
    -ms-transition: all 1s ease; /* IE 9 */
    -o-transition: all 1s ease; /* Opera */
    transition: all 1s ease;
}

.img:hover {
    -webkit-transform:scale(1.75); /* Safari and Chrome */
    -moz-transform:scale(1.75); /* Firefox */
    -ms-transform:scale(1.75); /* IE 9 */
    -o-transform:scale(1.75); /* Opera */
     transform:scale(1.75);
   }

.desc {
    padding: 15px;
    text-align: center;
    height: auto;
}
/*http://jsbin.com/ifequp/2/edit?html,css,console*/

</style>
<!--Mansory JS-->
<script type="text/javascript" src="https://npmcdn.com/masonry-layout@4.0.0/dist/masonry.pkgd.min.js"></script>
{% endblock %}
{% block content %}

<div class="container">
<h1>Image</h1>
<ol class="breadcrumb">
  <li><a href="/">DEFC</a></li>
  <li class="active">Image gallery</li>
</ol>
<p></p>
<div class="panel panel-info">
  <div class="panel-header" id="info-panel"><span class="glyphicon glyphicon-camera"></span>
    Image
  </div>
</div>
<h2>Pottery form</h2>
<div class="grid">
{% for object in object_list %}
{% if object.pottery_form %}
<div class="img">
  <a target="_blank" href="/image_gallery/detail/{{ object.id }}">
    <img id="smallimage" src="http://{{ request.get_host }}/media/{{ object.image}}" >
  </a>
  <div class="desc">
    {{ object.pottery_form.name }}
  </div>
</div><br/>
{% endif %}
{% endfor %}
</div>
<h2>Pottery decoration</h2>
<div class="grid">
{% for object in object_list %}
{% if object.pottery_decoration %}
<div class="img">
  <a target="_blank" href="/image_gallery/detail/{{ object.id }}">
    <img id="smallimage" src="http://{{ request.get_host }}/media/{{ object.image}}" >
  </a>
  <div class="desc">
    {{ object.pottery_decoration.name }}
  </div>
</div><br/>
{% endif %}
{% endfor %}
</div>
<h2>Pottery detail</h2>
<div class="grid">
{% for object in object_list %}
{% if object.pottery_detail %}
<div class="img">
  <a target="_blank" href="/image_gallery/detail/{{ object.id }}">
    <img id="smallimage" src="http://{{ request.get_host }}/media/{{ object.image}}" >
  </a>
  <div class="desc">
    {{ object.pottery_detail.name }}
  </div>
</div><br/>
{% endif %}
{% endfor %}
</div>

{% endblock content %}

{% block scripts %}
<script type="text/javascript">
$('.grid').masonry({
  // options
  itemSelector: '.img',
  // columnWidth: 200
});
</script>
{% endblock %}<commit_msg>fixed image gallery (resize event)<commit_after>{% extends "defcdb/base_detail.html" %}
{% block scriptHeader %}
<style>
#info-panel { 
    padding: 7px;
    background-color: #dbedec; 
}

.img {
    margin: 5px;
    border: 1px solid #ccc;
    float: left;
    width: 180px;
    background-color: white;
}
.img img {
    width: 100%;
    height: auto;
}

.img {
    -webkit-transition: all 1s ease; /* Safari and Chrome */
    -moz-transition: all 1s ease; /* Firefox */
    -ms-transition: all 1s ease; /* IE 9 */
    -o-transition: all 1s ease; /* Opera */
    transition: all 1s ease;
}

.img:hover {
    -webkit-transform:scale(1.75); /* Safari and Chrome */
    -moz-transform:scale(1.75); /* Firefox */
    -ms-transform:scale(1.75); /* IE 9 */
    -o-transform:scale(1.75); /* Opera */
     transform:scale(1.75);
   }

.desc {
    padding: 15px;
    text-align: center;
    height: auto;
}
/*http://jsbin.com/ifequp/2/edit?html,css,console*/

</style>
<!--Mansory JS-->
<script type="text/javascript" src="https://npmcdn.com/masonry-layout@4.0.0/dist/masonry.pkgd.min.js"></script>
{% endblock %}
{% block content %}

<div class="container">
<h1>Image</h1>
<ol class="breadcrumb">
  <li><a href="/">DEFC</a></li>
  <li class="active">Image gallery</li>
</ol>
<p></p>
<div class="panel panel-info">
  <div class="panel-header" id="info-panel"><span class="glyphicon glyphicon-camera"></span>
    Image
  </div>
</div>
<h2>Pottery form</h2>
<div class="grid">
{% for object in object_list %}
{% if object.pottery_form %}
<div class="img">
  <a target="_blank" href="/image_gallery/detail/{{ object.id }}">
    <img id="smallimage" src="http://{{ request.get_host }}/media/{{ object.image}}" >
  </a>
  <div class="desc">
    {{ object.pottery_form.name }}
  </div>
</div><br/>
{% endif %}
{% endfor %}
</div>
<h2>Pottery decoration</h2>
<div class="grid">
{% for object in object_list %}
{% if object.pottery_decoration %}
<div class="img">
  <a target="_blank" href="/image_gallery/detail/{{ object.id }}">
    <img id="smallimage" src="http://{{ request.get_host }}/media/{{ object.image}}" >
  </a>
  <div class="desc">
    {{ object.pottery_decoration.name }}
  </div>
</div><br/>
{% endif %}
{% endfor %}
</div>
<h2>Pottery detail</h2>
<div class="grid">
{% for object in object_list %}
{% if object.pottery_detail %}
<div class="img">
  <a target="_blank" href="/image_gallery/detail/{{ object.id }}">
    <img id="smallimage" src="http://{{ request.get_host }}/media/{{ object.image}}" >
  </a>
  <div class="desc">
    {{ object.pottery_detail.name }}
  </div>
</div><br/>
{% endif %}
{% endfor %}
</div>
</div>
{% endblock content %}

{% block scripts %}
<script type="text/javascript">

$(window).on('load resize', function (){
// $('.content .right').width( $(this).width() - 480 );
$('.grid').masonry({
  // options
  itemSelector: '.img',
  // columnWidth: 200
});
});
</script>
{% endblock %}
{'fraction_non_alphanumeric': 0.2238020010531859, 'fraction_numerical': 0.017377567140600316, 'mean_word_length': 3.4972375690607733, 'pattern_counts': {'":': 0, '<': 128, '<?xml version=': 0, '>': 128, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3751022', 'n_tokens_mistral': 2265, 'n_tokens_neox': 2084, 'n_words': 448}