summaryrefslogtreecommitdiff
path: root/tools/mmd
diff options
context:
space:
mode:
authorJogi Hofmüller <jogi@mur.at>2011-07-29 16:33:44 +0000
committerJogi Hofmüller <jogi@mur.at>2011-07-29 16:33:44 +0000
commita70acd98abf70fadf903c7ceda6ff61bc2bbe889 (patch)
treec53fb33f0328c9116de8c402a6c90e3523877623 /tools/mmd
parentinitial revision (diff)
- added stylesheet locally and adapted MmdWidgets.py
- added Link to self in status logo git-svn-id: https://svn.spreadspace.org/mur.sat@72 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'tools/mmd')
-rw-r--r--tools/mmd/MmdWidgets.py10
-rw-r--r--tools/mmd/mmd.css89
2 files changed, 94 insertions, 5 deletions
diff --git a/tools/mmd/MmdWidgets.py b/tools/mmd/MmdWidgets.py
index 737b554..a1a1f55 100644
--- a/tools/mmd/MmdWidgets.py
+++ b/tools/mmd/MmdWidgets.py
@@ -15,7 +15,7 @@ def loginFormWidget ():
</table>
<input type="hidden" name="cmd" value="login" />
</form>
- Don't have an account yet? <a href="?cmd=registerForm">Register</a> here!
+ Don't have an account yet? <a href="mmd?cmd=registerForm">Register</a> here!
'''
return html
@@ -119,7 +119,7 @@ def indexWidget (lcol, rcol, status = statusWidget (None)):
<head>
<title>MURSAT1 Dashboard</title>
<meta charset="utf-8" />
- <link rel="stylesheet" type="text/css" href="http://sat.mur.at/css/dashboard.css" />
+ <link rel="stylesheet" type="text/css" href="mmd.css" />
</head>
<body>
<div id="status">
@@ -149,9 +149,9 @@ def dataWidget (longitude = 15.44226, latitude = 47.06576):
<div>Longitude: {0}</div>
<div>Latitude: {1}</div>
<hr />
- <div><a href="?cmd=submitForm">Submit</a> a report</div>
- <div><a href="?cmd=loginForm">Login</a> to your personal account</div>
- <div>View <a href="?cmd=viewlog">Log</a> of reports</div>
+ <div><a href="mmd?cmd=submitForm">Submit</a> a report</div>
+ <div><a href="mmd?cmd=loginForm">Login</a> to your personal account</div>
+ <div>View <a href="mmd?cmd=viewlog">Log</a> of reports</div>
<hr />
<div>Checkout the <a href="http://sat.mur.at/">project page</a>!</div>
'''.format (longitude, latitude)
diff --git a/tools/mmd/mmd.css b/tools/mmd/mmd.css
new file mode 100644
index 0000000..e2847ba
--- /dev/null
+++ b/tools/mmd/mmd.css
@@ -0,0 +1,89 @@
+html, body
+{
+ margin: 5px;
+ background-color: #003366;
+}
+
+#status img
+{
+ border: 0;
+}
+
+#rcol
+{
+ font: 12px courier, monospace;
+ width: 640px;
+ margin: 1px;
+ padding: 2px;
+ border: 1px solid black;
+ float: left;
+ background-color: white;
+}
+
+#osm
+{
+ width: 640px;
+ height: 480px;
+ margin: 0;
+ padding: 0;
+ border: 0;
+ float: left;
+}
+
+#lcol
+{
+ font: 12px courier, monospace;
+ width: 280px;
+ height: auto;
+ margin: 1px;
+ padding: 2px;
+ border: 1px solid black;
+ float: left;
+ background-color: white;
+}
+
+#info
+{
+ font: 12px courier, monospace;
+ color: black;
+ background-color: white;
+}
+
+#datahead
+{
+ font: 16px courier, monospace;
+}
+
+#status
+{
+ font: 24px arial, sans-serif;
+ color: white;
+ width: 100%;
+ height: 64px;
+ margin 1px;
+ padding: 2px;
+ border: 0;
+ float: left;
+}
+
+#rightside
+{
+ float: left;
+ border: 1px solid black;
+ margin: 1px;
+}
+
+.formfield
+{
+ font: courier, monospace;
+ size: 14pt;
+ float: none;
+}
+
+#dev
+{
+ background-color: red;
+ font: 16pt courier, monospace;
+ width: 100%;
+ float: left;
+}