changeset 985:7e99f05c21cd

reasoning index page to html Ignore-this: 8e97a456bdf4e035ecdfe426a38e2741 darcs-hash:20150514083219-312f9-704acb2a99e762da68bffe3ef0bc0d6e81c38259
author drewp <drewp@bigasterisk.com>
date Thu, 14 May 2015 01:32:19 -0700
parents 5da9200418db
children b279ca8d2894
files service/reasoning/index.html service/reasoning/reasoning.py
diffstat 2 files changed, 38 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/service/reasoning/index.html	Thu May 14 01:30:00 2015 -0700
+++ b/service/reasoning/index.html	Thu May 14 01:32:19 2015 -0700
@@ -1,9 +1,9 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
-"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
+<!DOCTYPE html>
+<html>
   <head>
     <title>reasoning</title>
+    <link rel="import" href="https://bigasterisk.com/lib/polymer/0.5.2/core-splitter/core-splitter.html">
+    <link rel="import" href="https://bigasterisk.com/supdebug/bang/service-rows/main.html">
     <style type="text/css" media="all">
       /* <![CDATA[ */
 body {
@@ -23,22 +23,47 @@
 .obj {
     background: #ccf
 }
+     .pane {
+position: relative;
+       display: flex;
+flex-direction: column;
+       }
+     .pane pre {
+       overflow: auto;
+       flex-grow: 1;
+       }
 /* ]]> */
     </style>
 
   </head>
-  <body>
+  <body layout vertical fit>
 
-    <h2>Input</h2>
-    <pre id="input"/>
+    <div style="flex: 0 0 auto">
+      <service-rows nameSubstrs="reasoning map"></service-rows>
+    </div>
+    
+    <div class="pane">
+      <h2>Input</h2>
+      <pre id="input"/>
+    </div>
+
+    <core-splitter direction="up"></core-splitter> 
 
-    <h2>Rules</h2>
-    <pre id="rules"/>
+    <div  class="pane">
+      <h2>Rules</h2>
+      <pre id="rules"/>
+    </div>
+
+    <core-splitter direction="up"></core-splitter>
 
-    <h2>Output</h2>
-    <pre id="output"/>
+    <div  class="pane">
+      <h2>Output</h2>
+      <pre id="output"/>
+    </div>
 
-    <input id="auto" type="checkbox"/> <label for="auto">auto refresh</label>
+    <div>
+      <input id="auto" type="checkbox"/> <label for="auto">auto refresh</label>
+    </div>
 
     <script src="//bigasterisk.com/lib/jquery-2.0.3.min.js"></script>
  <script type="text/javascript">
--- a/service/reasoning/reasoning.py	Thu May 14 01:30:00 2015 -0700
+++ b/service/reasoning/reasoning.py	Thu May 14 01:32:19 2015 -0700
@@ -417,7 +417,7 @@
             self.finish("last poll was %s sec ago. last error: %s" %
                         (ago, self.settings.reasoning.lastError))
             return
-        self.set_header("Content-Type", "application/xhtml+xml")
+        self.set_header("Content-Type", "text/html")
         self.write(open('index.html').read())
 
 class ImmediateUpdate(cyclone.web.RequestHandler):