Move activity loading into the feed file to be more semantic

This commit is contained in:
Tom Price
2015-05-26 00:00:40 +01:00
parent 3d44633554
commit 16ccf9c116
2 changed files with 8 additions and 12 deletions

View File

@@ -33,9 +33,16 @@
})
$(document).ready(function() {
$(function () {
$( "#activity" ).load( "{% url 'activity_feed' %}", function() {
$('#activity [data-toggle="popover"]').popover()
});
});
});
</script>
{% endblock %}
</script>
<div class="list-group">
<div class="list-group-item" style="background-color: #eee;">
<h4 class="list-group-item-heading" style="margin:0;">Recent Changes</h4>

View File

@@ -1,17 +1,6 @@
{% extends 'base.html' %}
{% block title %}RIGS{% endblock %}
{% block js %}
<script>
$(function () {
$( "#activity" ).load( "{% url 'activity_feed' %}", function() {
// Loaded
});
});
</script>
{% endblock %}
{% block content %}
<div class="col-sm-12">
<h1>R<small>ig</small> I<small>nformation</small> G<small>athering</small> S<small>ystem</small></h1>