{% extends "base.html" %} {% set active_page = "plugins" %} {% block title %} Plugins {% endblock %} {% block styles %} {{ super() }} {% endblock %} {% block script %} $(function(){ $('input[type=checkbox]').change(function(e) { var checkbox = $(this); var form = checkbox.closest('form'); var url = form.attr('action'); $.ajax({ type: 'POST', url: url, data: form.serialize(), success: function(data) { if( data.indexOf('failed') != -1 ) { alert('Could not be toggled.'); } } }); }); $('input[type=submit]').change(function(e) { var button = $(this); var form = button.closest('form'); var url = form.attr('action'); $.ajax({ type: 'POST', url: url, data: form.serialize(), success: function(data) { if( data.indexOf('failed') != -1 ) { alert('Could not be upgraded.'); } } }); }); }); {% endblock %} {% block content %}
{% for name in database.keys() | sort %} {% set has_info = name in loaded and loaded[name].__description__ is defined %}

{{name}}

{% if has_info %} {{ loaded[name].__description__ }} {% else %} Description can't be loaded yet. {% endif %}
{% endfor %}
{% endblock %}