]> git.openstreetmap.org Git - osqa.git/blob - forum_modules/updates/templates/index.html
Merge pull request #26 from udacity/remove_dj_version
[osqa.git] / forum_modules / updates / templates / index.html
1 {% extends basetemplate %}
2
3 {% load i18n extra_tags %}
4
5 {% block adminjs %}
6 {{ block.super }}
7
8 <style type="text/css">
9 #update_check_status {
10     margin-top: 5px;
11     padding: 5px 0;
12     display: none;
13 }
14 </style>
15
16 <script type="text/javascript">
17 $(function() {
18
19     $('#check_for_updates').live('click', function() {
20         var update_check_url = $(this).attr('href')
21         var update_check_status = $('#update_check_status')
22         update_check_status.html('{% trans "Checking for updates" %}')
23         update_check_status.show('slow')
24
25         $.get(update_check_url, function(data) {
26             update_check_status.hide('slow', function() {
27                 update_check_status.html(data)
28                 update_check_status.show('slow');
29             })
30         })
31         return false;
32     })
33 });
34 </script>
35 {% endblock %}
36
37 {% block subtitle %}
38     {% trans "Update Checker" %}
39 {% endblock %}
40 {% block description %}
41     {% trans "Use the OSQA update server to check for updates" %}
42 {% endblock %}
43
44 {% block admincontent %}
45
46 <a href="{% url "updater_check" %}" id="check_for_updates" class="button">{% trans "Check for Updates" %}</a>
47 <div id="update_check_status"></div>
48
49 {% endblock %}