diff --git a/puppetboard/forms.py b/puppetboard/forms.py index adb6106..87e378e 100644 --- a/puppetboard/forms.py +++ b/puppetboard/forms.py @@ -30,4 +30,4 @@ class QueryForm(Form): class CatalogForm(Form): """The form used to compare the catalogs of different nodes.""" compare = HiddenField('compare') - against = SelectField(u'against') + against = SelectField('against') diff --git a/puppetboard/static/js/environments.js b/puppetboard/static/js/environments.js deleted file mode 100644 index bc3cca0..0000000 --- a/puppetboard/static/js/environments.js +++ /dev/null @@ -1,11 +0,0 @@ -(function () { - var $; - - $ = jQuery; - - $('#switch_env').change(function() { - path = location.pathname.split('/'); - path[1] = $(this).find(':selected').text(); - location.assign(path.join('/')) - }); -}).call(this) diff --git a/puppetboard/templates/catalog.html b/puppetboard/templates/catalog.html index 11c1e16..2a71894 100644 --- a/puppetboard/templates/catalog.html +++ b/puppetboard/templates/catalog.html @@ -48,7 +48,7 @@ Target - + {% for edge in catalog.get_edges() %} {{edge.source}} diff --git a/puppetboard/templates/catalog_compare.html b/puppetboard/templates/catalog_compare.html index 705210a..a70d8c2 100644 --- a/puppetboard/templates/catalog_compare.html +++ b/puppetboard/templates/catalog_compare.html @@ -1,5 +1,8 @@ {% extends 'layout.html' %} {% block content %} +
+ +
@@ -16,7 +19,7 @@ - + {% for resource in compare.get_resources() %} @@ -30,7 +33,7 @@ - + {% for resource in against.get_resources() %} @@ -50,7 +53,7 @@ - + {% for edge in compare.get_edges() %} @@ -70,7 +73,7 @@ - + {% for edge in against.get_edges() %} diff --git a/puppetboard/templates/layout.html b/puppetboard/templates/layout.html index eced57a..39f4f81 100644 --- a/puppetboard/templates/layout.html +++ b/puppetboard/templates/layout.html @@ -23,7 +23,7 @@ - +
v0.1.0
+
@@ -90,7 +92,9 @@ - + {% block script %} {% endblock script %}
Resources
{{resource.type_}}[{{resource.name}}]
Resources
{{resource.type_}}[{{resource.name}}]Target
{{edge.source}}Target
{{edge.source}}