Skip to content

Commit

Permalink
add framework for styling the pages
Browse files Browse the repository at this point in the history
  • Loading branch information
phunt committed Oct 7, 2009
1 parent 166e6d4 commit 42697e6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.textile
Expand Up @@ -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". 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.
1 change: 1 addition & 0 deletions css/zookeeper_dashboard.css
@@ -0,0 +1 @@
h1 {color:#00ff00}
6 changes: 6 additions & 0 deletions urls.py
@@ -1,4 +1,5 @@
from django.conf.urls.defaults import * from django.conf.urls.defaults import *
from django.conf import settings


# Uncomment the next two lines to enable the admin: # Uncomment the next two lines to enable the admin:
# from django.contrib import admin # from django.contrib import admin
Expand All @@ -17,3 +18,8 @@


(r'^$', include('zookeeper_dashboard.zkadmin.urls')), (r'^$', include('zookeeper_dashboard.zkadmin.urls')),
) )

if settings.DEBUG:
urlpatterns += patterns('',
(r'^css/(?P<path>.*)$', 'django.views.static.serve', {'document_root': './css'}),
)
1 change: 1 addition & 0 deletions zkadmin/templates/zkadmin/index.html
Expand Up @@ -2,6 +2,7 @@
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15"> <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> <title>ZooKeeper Home</title>
</head> </head>


Expand Down
1 change: 1 addition & 0 deletions zktree/templates/zktree/index.html
Expand Up @@ -2,6 +2,7 @@
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15"> <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> <title>ZooKeeper ZNode {{znode.path}}</title>
</head> </head>


Expand Down

0 comments on commit 42697e6

Please sign in to comment.