Skip to content

Commit

Permalink
Removes a couple of references to the missing /overview.html page.
Browse files Browse the repository at this point in the history
  • Loading branch information
alobbs committed Oct 17, 2011
1 parent 7d54c33 commit 43ff468
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
1 change: 0 additions & 1 deletion Page.py
Expand Up @@ -18,7 +18,6 @@ def __init__ (self):
nav = CTK.Box ({'id': 'nav'})

l = CTK.List()
l += CTK.Link ("/overview.html", CTK.RawHTML("Overview"))
l += CTK.Link ("/downloads.html", CTK.RawHTML("Download"))
l += CTK.Link ("/doc/", CTK.RawHTML("Documentation"))
l += CTK.Link ("/community.html", CTK.RawHTML("Community"))
Expand Down
20 changes: 17 additions & 3 deletions PageIndex.py
Expand Up @@ -30,6 +30,15 @@
import Downloads
import MailingList

URL_LEARN_MORE = '/learn_more.html'


class Learn_More:
def __call__ (self):
cont = CTK.Container()
cont += CTK.RawHTML ("This is still WIP")
return cont.Render().toStr()


class Top_Banner (CTK.Box):
H1 = "Evolved Web Infrastructure Software"
Expand All @@ -38,17 +47,21 @@ class Top_Banner (CTK.Box):
def __init__ (self):
CTK.Box.__init__ (self, {'id': 'sprint'})

dialog = CTK.DialogProxyLazy (URL_LEARN_MORE)

# Banner body
box = CTK.Box ({'id': 'mainmsg'})
box += CTK.RawHTML ('<h1>%s</h1>'%(self.H1))
box += CTK.RawHTML ('<p>%s</p>'%(self.P1))

# Download
link = CTK.Link ("/overview.html", props={'id': "overview"})
link = CTK.Link (None, props={'id': "overview"})
link += CTK.RawHTML ("Learn More")
box += link
link.bind ('click', dialog.JS_to_show())

box += link
self += box
self += dialog


class Highlights (CTK.Container):
Expand Down Expand Up @@ -154,4 +167,5 @@ def __call__ (self):
return CTK.HTTP_Cacheable (10, body=page.Render())


CTK.publish ('^/(index)?$', Home)
CTK.publish ('^/(index)?$', Home)
CTK.publish ('^%s$'%(URL_LEARN_MORE), Learn_More)

0 comments on commit 43ff468

Please sign in to comment.