mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
It's less pretty/cool...I may bring it back in future but this'll do for now.
51 lines
1.3 KiB
HTML
51 lines
1.3 KiB
HTML
{% load static %}
|
|
|
|
{% block js %}
|
|
<script src="{% static 'js/tooltip.js' %}"></script>
|
|
<script src="{% static 'js/popover.js' %}"></script>
|
|
<script>
|
|
$(function () {
|
|
$('[data-toggle="tooltip"]').tooltip();
|
|
})
|
|
</script>
|
|
<script>
|
|
$(function () {
|
|
$('[data-toggle="popover"]').popover().click(function(){
|
|
if($(this).attr('href')){
|
|
window.location.href = $(this).attr('href');
|
|
}
|
|
});
|
|
})
|
|
$(document).ready(function() {
|
|
$(function () {
|
|
$( "#activity" ).hide();
|
|
$( "#activity" ).load( "{% url 'activity_feed' %}", function() {
|
|
$('#activity_loading').slideUp('slow',function(){
|
|
$('#activity').slideDown('slow');
|
|
});
|
|
var whiteList = $.fn.tooltip.Constructor.Default.whiteList
|
|
whiteList.ins = []
|
|
whiteList.del = []
|
|
$('#activity [data-toggle="popover"]').popover({whiteList: whiteList});
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h4>Recent Changes</h4>
|
|
</div>
|
|
<div class="list-group list-group-flush">
|
|
<div id="activity_loading" class="list-group-item text-center">
|
|
<div class="spinner-border text-primary" role="status">
|
|
<span class="sr-only">Loading...</span>
|
|
</div>
|
|
</div>
|
|
<div id="activity">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|