Add scripts to create myops-getqueryview:
[myops.git] / web / query / templates / rpms.html
diff --git a/web/query/templates/rpms.html b/web/query/templates/rpms.html
new file mode 100644 (file)
index 0000000..2a71b03
--- /dev/null
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>{{ title }}</title>
+    <link rel="stylesheet" href="../../style/screen.css" type="text/css"/>
+    <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="{{ feedPath }}"/>
+  </head>
+  <body>
+    {{>header}}
+       <a href="http://myops.planet-lab.org:5984/_list/rpms/rpm-to-host?group=true&startkey=[%22rpm%22]&endkey=[%22rpm%22,{}]">All rpms</a>
+       <br/>
+       <a href="http://myops.planet-lab.org:5984/_list/rpms/rpm-to-host?group=true&startkey=[%22hostname%22]&endkey=[%22hostname%22,{}]">All hosts</a>
+       <h3>{{ rpmversion }}</h3>
+    <div id="content">
+      <ul id="nodes">
+      <table id="nodes">
+        {{#nodes}}
+
+          <tr>
+            <td align='right'>{{ val }}</td><td><a href="{{ link }}">{{ name }}</a></td>
+
+          </tr>
+        {{/nodes}}
+      </table>
+    </div>
+</body>
+</html>