Permalink
Browse files

add framework for styling the pages

  • Loading branch information...
1 parent 166e6d4 commit 42697e6bf52b9c23160ee0d28d6ac216c9b3028e @phunt committed Oct 7, 2009
Showing with 12 additions and 0 deletions.
  1. +3 −0 README.textile
  2. +1 −0 css/zookeeper_dashboard.css
  3. +6 −0 urls.py
  4. +1 −0 zkadmin/templates/zkadmin/index.html
  5. +1 −0 zktree/templates/zktree/index.html
View
@@ -38,3 +38,6 @@ Finally open a link in your browser to the server: "http://127.0.0.1:8000/":http
ZooKeeper client output is written to "cli_log.txt".
+h2. Limitations
+
+ACLs are not yet fully supported. In particular the django server runs as an un-authenticated user. If nodes are protected by ACLs the server will not be able to access them.
@@ -0,0 +1 @@
+h1 {color:#00ff00}
View
@@ -1,4 +1,5 @@
from django.conf.urls.defaults import *
+from django.conf import settings
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
@@ -17,3 +18,8 @@
(r'^$', include('zookeeper_dashboard.zkadmin.urls')),
)
+
+if settings.DEBUG:
+ urlpatterns += patterns('',
+ (r'^css/(?P<path>.*)$', 'django.views.static.serve', {'document_root': './css'}),
+ )
@@ -2,6 +2,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
+<link type="text/css" rel="stylesheet" href="/css/zookeeper_dashboard.css" />
<title>ZooKeeper Home</title>
</head>
@@ -2,6 +2,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
+<link type="text/css" rel="stylesheet" href="/css/zookeeper_dashboard.css" />
<title>ZooKeeper ZNode {{znode.path}}</title>
</head>

0 comments on commit 42697e6

Please sign in to comment.