diff --git a/controller/Root.py b/controller/Root.py index a85591a..e222d54 100644 --- a/controller/Root.py +++ b/controller/Root.py @@ -368,6 +368,12 @@ class Root( object ): redirect = u"/pricing", ) + @expose() + def support( self ): + return dict( + redirect = u"/community", + ) + @expose( view = Download_page ) @strongly_expire @end_transaction diff --git a/static/css/header.css b/static/css/header.css index f383c0c..9b511cc 100644 --- a/static/css/header.css +++ b/static/css/header.css @@ -34,3 +34,7 @@ height: 100%; margin: 0 auto; } + +.nav_image { + vertical-align: middle; +} diff --git a/static/css/product.css b/static/css/product.css index c28299c..1b7a93c 100644 --- a/static/css/product.css +++ b/static/css/product.css @@ -195,16 +195,42 @@ .footer { clear: both; background-color: #b0d0ff; - height: 2em; + background-image: url(/static/images/footer.png); + background-repeat: repeat-x; margin-left: 0; margin-right: 0; - margin-top: 1em; border-top: 1px solid #999999; } .footer_links { - font-size: 85%; - padding-top: 0.5em; + font-size: 72%; +} + +.footer_links br { + clear: both; +} + +.footer_category { + font-weight: bold; +} + +.footer_column { + text-align: left; +} + +.footer_list { + float: left; + list-style: none; + margin-left: 0; + margin-right: 0; + padding-left: 1em; + padding-right: 1em; + padding-bottom: 0.5em; + width: 125px; +} + +.wide_footer_list { + width: 200px; } .tour_area { diff --git a/static/html/support.html b/static/html/community.html similarity index 98% rename from static/html/support.html rename to static/html/community.html index e489170..d8fd298 100644 --- a/static/html/support.html +++ b/static/html/community.html @@ -1,4 +1,4 @@ -

support

+

community

contact support

@@ -6,13 +6,6 @@ Have a question? I'll be happy to answer it.

-

frequently asked questions

- -

-The Luminotes faq covers some of the most common questions about the software, -so it's a good place to start. -

-

discussion forums

@@ -20,13 +13,6 @@ In the Luminotes discussion forums, you can ask about Luminotes features and chat with your fellow Luminoters.

-

user guide

- -

-The Luminotes user guide explains every feature of Luminotes in full detail, -and it even includes tips for organizing your wiki. -

-

blog

@@ -34,6 +20,20 @@ With the Luminotes blog, you can stay up to date on all the latest features and announcements.

+

frequently asked questions

+ +

+The Luminotes faq covers some of the most common questions about the software, +so it's a good place to start. +

+ +

user guide

+ +

+The Luminotes user guide explains every feature of Luminotes in full detail, +and it even includes tips for organizing your wiki. +

+

Facebook group

diff --git a/static/images/footer.png b/static/images/footer.png new file mode 100644 index 0000000..bb7813a Binary files /dev/null and b/static/images/footer.png differ diff --git a/tools/initdb.py b/tools/initdb.py index f57e9f1..9a9772a 100644 --- a/tools/initdb.py +++ b/tools/initdb.py @@ -23,7 +23,7 @@ class Initializer( object ): ( u"password reset.html", False ), ( u"advanced browser features.html", False ), ( u"supported browsers.html", False ), - ( u"support.html", False ), + ( u"community.html", False ), ( u"enable JavaScript.html", False ), ] diff --git a/tools/updatedb.py b/tools/updatedb.py index 6291862..6ed126c 100755 --- a/tools/updatedb.py +++ b/tools/updatedb.py @@ -22,7 +22,7 @@ class Updater( object ): ( u"password reset.html", False ), ( u"advanced browser features.html", False ), ( u"supported browsers.html", False ), - ( u"support.html", False ), + ( u"community.html", False ), ( u"enable JavaScript.html", False ), ] diff --git a/view/Front_page.py b/view/Front_page.py index 8e1541e..c3c29e2 100644 --- a/view/Front_page.py +++ b/view/Front_page.py @@ -47,17 +47,12 @@ class Front_page( Product_page ): ), P( A( u"Take a tour", href = u"/tour", class_ = u"hook_action" ), u", ", - A( u"Try the demo", href = u"/users/demo", class_ = u"hook_action" ), u", ", Br(), A( u"Download", href = u"/download", class_ = u"hook_action" ), u", ", Span( u" or ", class_ = u"hook_action_or" ), A( u"Sign up", href = u"/pricing", class_ = u"hook_action" ), class_ = u"hook_action_area", separator = u"", ), - Div( - A( u"New discussion forums!", href = u"/forums/" ), - class_ = u"small_text", - ), class_ = u"explanation", ), class_ = u"wide_center_area", @@ -352,7 +347,6 @@ class Front_page( Product_page ): P( Span( u"Sound interesting?", class_ = u"hook_action_question" ), Br(), A( u"Take a tour", href = u"/tour", class_ = u"hook_action" ), u", ", - A( u"Try the demo", href = u"/users/demo", class_ = u"hook_action" ), u", ", Br(), A( u"Download", href = u"/download", class_ = u"hook_action" ), u", ", Span( u" or ", class_ = u"hook_action_or" ), A( u"Sign up", href = u"/pricing", class_ = u"hook_action" ), diff --git a/view/Header.py b/view/Header.py index 4429275..2944326 100644 --- a/view/Header.py +++ b/view/Header.py @@ -34,10 +34,6 @@ class Header( Div ): Div( ( note_title == u"home" ) and title_image or A( title_image, href = u"/" ), ( login_url and user.username == u"anonymous" ) and Div( - ( note_title == u"download" ) and Span( u"download", class_ = u"bold_link" ) or \ - A( u"download", href = u"/download", class_ = u"bold_link" ), u" | ", - ( note_title == u"pricing" ) and Span( u"sign up", class_ = u"bold_link" ) or \ - A( u"sign up", href = u"/pricing", class_ = u"bold_link" ), u" | ", A( u"login", href = login_url, @@ -64,32 +60,6 @@ class Header( Div ): ), " | ", ) or None, - ( note_title == u"download" ) and Span( u"download", class_ = u"bold_link" ) or \ - A( - u"download", - href = u"/download", - title = u"Download Luminotes to run on your own computer.", - class_ = u"bold_link", - ), - " | ", - user.username and Span( - A( - u"upgrade", - href = u"/pricing", - title = u"Upgrade your Luminotes account.", - class_ = u"bold_link", - ), - " | ", - ) or Span( - ( note_title == u"pricing" ) and Span( u"sign up", class_ = u"bold_link" ) or \ - A( - u"sign up", - href = u"/pricing", - title = u"Sign up for an online Luminotes account.", - class_ = u"bold_link", - ), - " | ", - ) or None, A( u"logout", href = logout_url, @@ -102,10 +72,36 @@ class Header( Div ): ( note_title == u"home" ) and Span( u"home", class_ = u"bold_link" ) or A( u"home", href = u"/" ), u" | ", ( note_title == u"tour" ) and Span( u"tour", class_ = u"bold_link" ) or A( u"tour", href = u"/tour" ), u" | ", ( user.username in ( None, u"anonymous" ) ) and Span( ( note_title == u"wiki" ) and Span( u"demo", class_ = u"bold_link" ) or A( u"demo", href = u"/users/demo" ), u" | " ) or None, - ( note_title == u"support" ) and Span( u"support", class_ = u"bold_link" ) or A( u"support", href = u"/support" ), u" | ", - ( note_title == u"team" ) and Span( u"team", class_ = u"bold_link" ) or A( u"team", href = u"/meet_the_team" ), u" | ", - ( note_title == u"blog" ) and Span( u"blog", class_ = u"bold_link" ) or A( u"blog", href = u"/blog" ), u" | ", - ( note_title == u"privacy" ) and Span( u"privacy", class_ = u"bold_link" ) or A( u"privacy", href = u"/privacy" ), + ( note_title == u"community" ) and Span( u"community", class_ = u"bold_link" ) or A( u"community", href = u"/community" ), u" | ", + ( note_title == u"download" ) and Span( u"download", class_ = u"bold_link" ) or \ + A( + u"download", + href = u"/download", + title = u"Download Luminotes to run on your own computer.", + class_ = u"bold_link", + ), + " | ", + ( user.username and user.username != u"anonymous" ) and Span( + A( + u"upgrade", + href = u"/pricing", + title = u"Upgrade your Luminotes account.", + class_ = u"bold_link", + ), + ) or Span( + ( note_title == u"pricing" ) and Span( u"sign up", class_ = u"bold_link" ) or \ + A( + u"sign up", + href = u"/pricing", + title = u"Sign up for an online Luminotes account.", + class_ = u"bold_link", + ), + ) or None, + + #( note_title == u"support" ) and Span( u"support", class_ = u"bold_link" ) or A( u"support", href = u"/support" ), u" | ", + #( note_title == u"team" ) and Span( u"team", class_ = u"bold_link" ) or A( u"team", href = u"/meet_the_team" ), u" | ", + #( note_title == u"blog" ) and Span( u"blog", class_ = u"bold_link" ) or A( u"blog", href = u"/blog" ), u" | ", + #( note_title == u"privacy" ) and Span( u"privacy", class_ = u"bold_link" ) or A( u"privacy", href = u"/privacy" ), class_ = u"header_links", ), class_ = u"wide_center_area", diff --git a/view/Product_page.py b/view/Product_page.py index b6082fc..67f87a8 100644 --- a/view/Product_page.py +++ b/view/Product_page.py @@ -1,6 +1,6 @@ from Page import Page from Header import Header -from Tags import Link, Meta, Div, A, Span +from Tags import Link, Meta, Div, A, Span, Ul, Li, Br class Product_page( Page ): @@ -21,14 +21,42 @@ class Product_page( Page ): Div( Div( + # TODO make into a table kinda like on the footer of change.gov? Div( - u"Copyright ©2008 Luminotes", u" | ", - A( u"contact", href = u"/contact_info" ), u" | ", - A( u"support", href = u"/support" ), u" | ", - A( u"source code", href = u"/source_code" ), u" | ", - A( u"team", href = u"/meet_the_team" ), u" | ", - A( u"blog", href = u"/blog" ), u" | ", - A( u"privacy", href = u"/privacy" ), + Div( + Ul( + Li( u"About", class_ = u"footer_category" ), + Li( A( u"tour", href = u"/tour" ) ), + Li( A( u"demo", href = u"/demo" ) ), + Li( A( u"faq", href = u"/faq" ) ), + Li( A( u"team", href = u"/meet_the_team" ) ), + Li( A( u"user guide", href = u"/guide" ) ), + Li( A( u"privacy", href = u"/privacy" ) ), + class_ = u"footer_list", + ), + Ul( + Li( u"Get Started", class_ = u"footer_category" ), + Li( A( u"download", href = u"/download" ) ), + Li( A( u"sign up", href = u"/pricing" ) ), + Li( A( u"source code", href = u"/source_code" ) ), + class_ = u"footer_list", + ), + Ul( + Li( u"Community", class_ = u"footer_category" ), + Li( A( u"contact support", href = u"/contact_info" ) ), + Li( A( u"discussion forums", href = u"/forums/" ) ), + Li( A( u"blog", href = u"/blog" ) ), + Li( A( u"Facebook group", href = u"http://www.facebook.com/pages/Luminotes-personal-wiki-notebook/17143857741" ) ), + Li( A( u"Twitter stream", href = u"http://twitter.com/Luminotes" ) ), + class_ = u"footer_list", + ), + Ul( + Li( u"Copyright ©2008 Luminotes" ), + class_ = u"footer_list wide_footer_list", + ), + Br(), + class_ = u"footer_column", + ), class_ = u"footer_links", ), class_ = u"wide_center_area",