diff --git a/app/templates/appci_branch.html b/app/templates/appci_branch.html index 640c7bb..f7a50dc 100644 --- a/app/templates/appci_branch.html +++ b/app/templates/appci_branch.html @@ -6,6 +6,9 @@
+
+ +
@@ -21,7 +24,7 @@ {% for result in app_results %} - +
{% if result.app.list.name == "official" %} @@ -106,7 +109,21 @@ window.onload = function () { }] }); chart.render(); + update_filters(); } + +function toggle(e) { + $(e).toggleClass("btn-default"); + $(e).toggleClass("btn-primary"); + update_filters(); +} +function update_filters() { + var onlyOfficials = $("#filter_onlyOfficials").hasClass("btn-primary"); + $(".resultline").show(); + if (onlyOfficials) { $(".resultline:not(.official)").hide(); } +} + + {% endblock %}