From e07aa2e29b9d3f9569616ef353f62b8a54572727 Mon Sep 17 00:00:00 2001 From: alobbs Date: Thu, 19 May 2011 16:30:56 +0000 Subject: [PATCH] WIP: A few minor fixes git-svn-id: svn://cherokee-project.com/web/branches/beta-ctk@6645 5dc97367-97f1-0310-9951-d761b3857238 --- Commits.py | 2 +- PageIndex.py | 19 +++---------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/Commits.py b/Commits.py index 6b032ce..4683afe 100644 --- a/Commits.py +++ b/Commits.py @@ -94,7 +94,7 @@ def __init__ (self, num=6): self += content_box - self += CTK.Box({'class': 'bar3-bottom-link'}, CTK.RawHTML('View Commits Log »')) + self += CTK.Box({'class': 'bar3-bottom-link'}, CTK.RawHTML('View Commits Log »')) # diff --git a/PageIndex.py b/PageIndex.py index 857e522..ad95406 100644 --- a/PageIndex.py +++ b/PageIndex.py @@ -50,19 +50,6 @@ def __init__ (self): self += box -class Download_Box (CTK.Box): - def __init__ (self): - CTK.Box.__init__ (self, {'id': 'download-box'}) - - latest_version = Downloads.get_latest_version() - # Download - box = CTK.Box ({'id': 'download-msg'}) - link = CTK.Link ("/downloads.html", props={'id': "download"}) - link += CTK.RawHTML ("Get Cherokee
Download Cherokee %(latest_version)s"%(locals())) - box += link - - self += box - class Highlights (CTK.Container): H2 = "Features Highlights" @@ -96,8 +83,8 @@ class Sidebox (CTK.Container): 'download': { 'icon': '/static/images/download.png', 'url': '/downloads.html', - 'title': 'Download Cherokee Web Server', - 'hint': 'LATEST' + 'title': 'Download Cherokee %s'%(Downloads.get_latest_version()), + 'hint': 'Fetch the latest version of Cherokee' }, 'documentation': { 'icon': '/static/images/documentation.png', @@ -109,7 +96,7 @@ class Sidebox (CTK.Container): 'icon': '/static/images/contribute.png', 'url': '/contribute.html', 'title': 'Contribute to the project', - 'hint': 'Help us to develop the greatest Web Server' + 'hint': 'Help us to develop a better server!' } }