-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd1966e
commit 798e1c9
Showing
2 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{% extends 'base.html' %} | ||
{% load static %} | ||
{% block title %}Apoiadores - Brasil.IO{% endblock %} | ||
{% block head %} | ||
{{ block.super }} | ||
<!-- Infinte scroll --> | ||
<script src="{% static 'js/noframework.waypoints.min.js' %}"></script> | ||
<script src="{% static 'js/infinite.js' %}"></script> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="section"> | ||
<h4>Doadores</h4> | ||
<div class="divider"></div> | ||
|
||
<div class="row m-t-5"> | ||
<p> | ||
A lista abaixo é de pessoas que <i>apoiam nossa campanha</i> pela plataforma <strong>Apoia.se</strong> de | ||
financiamento coletivo. | ||
<a href="https://apoia.se/brasilio" title="Apoie nossa campanha">Colabore você também clicando aqui.</a> | ||
</p> | ||
<div class="row"> | ||
<div class="infinite-container col s12"> | ||
{% for donor in donors %} | ||
<div class="col s12 m3 m-t-15 infinite-item center" style="min-height: 170px;"> | ||
<span class="fa-stack fa-3x text-center"> | ||
<img class="circle responsive-img" src="{{ donor.image }}" alt="Imagem de {{ donor.name }}"> | ||
</span> | ||
<h6> {{ donor.name }} </h6> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
<div class="loading col s12 center" style="display: none;"> | ||
<div class="preloader-wrapper big active"> | ||
<div class="spinner-layer spinner-blue-only"> | ||
<div class="circle-clipper left"> | ||
<div class="circle"></div> | ||
</div> | ||
<div class="gap-patch"> | ||
<div class="circle"></div> | ||
</div> | ||
<div class="circle-clipper right"> | ||
<div class="circle"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% if donors.has_next %} | ||
<a class="infinite-more-link" href="?page={{ donors.next_page_number }}"></a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
|
||
<script type="text/javascript"> | ||
const defaultImg = function () {$(this).attr('src', '{% static "img/defaultimgavatar.jpg" %}')}; | ||
var infinite = new Waypoint.Infinite({ | ||
element: $('.infinite-container')[0], | ||
offset: 'bottom-in-view', | ||
onBeforePageLoad: function (element) { | ||
$('.loading').show(); | ||
}, | ||
onAfterPageLoad: function () { | ||
$('.loading').hide(); | ||
$('img').on("error", defaultImg) | ||
} | ||
}) | ||
</script> | ||
{% endblock %} |