summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-12-05 22:12:09 -0600
committerDan McGee <dan@archlinux.org>2011-12-05 22:12:09 -0600
commit1c23308299f33e5b429899463eb207f07ad51403 (patch)
tree005eae8221d3bc6dd97847fdf583c67e61be252b /templates
parentab9162ac1413b5f59833f7f710863643766ee2f5 (diff)
downloadarchweb-1c23308299f33e5b429899463eb207f07ad51403.tar.gz
archweb-1c23308299f33e5b429899463eb207f07ad51403.zip
Add developer keys visualization
Well, almost add it- it is currently commented out as I have a few more things I'd like to take care of, namely correcting static files versioning and caching, to ensure this doesn't break things. This is a force-directed graph drawn using D3 as the package treemap already does. We color the dots by "group", e.g. "dev", "tu", or "master", and then outline developer keys in green if they have at least 3 master key signatures, red if they have fewer. Hovering over a circle will show you who's key you are seeing in the visualization. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/visualize/index.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/templates/visualize/index.html b/templates/visualize/index.html
index 99525e69..b9459318 100644
--- a/templates/visualize/index.html
+++ b/templates/visualize/index.html
@@ -4,10 +4,7 @@
{% block content %}
<div class="box">
-
- <h2>Visualizations of Packaging Data</h2>
-
- <h3>Package Treemap</h3>
+ <h2>Visualization of Package Data</h2>
<div class="visualize-buttons">
<div>
@@ -25,9 +22,16 @@
</div>
<div id="visualize-archrepo" class="visualize-chart"></div>
</div>
+{% comment %}
+<div class="box">
+ <h2>Visualization of PGP Master and Signing Keys</h2>
+ <div id="visualize-keys" class="visualize-chart"></div>
+</div>
+{% endcomment %}
{% load cdn %}{% jquery %}
<script type="text/javascript" src="/media/d3.min.js"></script>
+<script type="text/javascript" src="/media/d3.geom.min.js"></script>
<script type="text/javascript" src="/media/d3.layout.min.js"></script>
<script type="text/javascript" src="/media/archweb.js"></script>
<script type="text/javascript" src="/media/visualize.js"></script>
@@ -38,6 +42,7 @@ $(document).ready(function() {
"arch": { url: "{% url visualize-byarch %}", color_attr: "arch" },
};
packages_treemap("#visualize-archrepo", orderings, "repo");
+ /*developer_keys("#visualize-keys", "{% url visualize-pgp_keys %}");*/
});
</script>
{% endblock %}