Personal wiki notebook (not under development)

Product_page.py 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. from Page import Page
  2. from Header import Header
  3. from Tags import Link, Meta, Div, A, Span, Ul, Li, Br
  4. from config.Version import VERSION
  5. class Product_page( Page ):
  6. def __init__( self, user, first_notebook, login_url, logout_url, note_title, *nodes ):
  7. Page.__init__(
  8. self,
  9. ( note_title != "home" ) and note_title or None, # use the default title for the "home" page
  10. Link( rel = u"stylesheet", type = u"text/css", href = u"/static/css/header.css?%s" % VERSION ),
  11. Link( rel = u"stylesheet", type = u"text/css", href = u"/static/css/product.css?%s" % VERSION ),
  12. Meta( name = u"description", content = u"Luminotes is a WYSIWYG personal wiki notebook for organizing your notes and ideas." ),
  13. Meta( name = u"keywords", content = u"note taking, personal wiki, wysiwyg wiki, easy wiki, simple wiki, wiki notebook" ),
  14. Header( user, first_notebook, login_url, logout_url, note_title ),
  15. Span(
  16. *nodes
  17. ),
  18. Div(
  19. Div(
  20. Div(
  21. Div(
  22. Ul(
  23. Li( u"About", class_ = u"footer_category" ),
  24. Li( A( u"tour", href = u"/tour" ) ),
  25. Li( A( u"demo", href = u"/users/demo" ) ),
  26. Li( A( u"faq", href = u"/faq" ) ),
  27. Li( A( u"team", href = u"/meet_the_team" ) ),
  28. Li( A( u"user guide", href = u"/guide" ) ),
  29. Li( A( u"privacy", href = u"/privacy" ) ),
  30. class_ = u"footer_list",
  31. ),
  32. Ul(
  33. Li( u"Get Started", class_ = u"footer_category" ),
  34. Li( A( u"download", href = u"/download" ) ),
  35. Li( A( u"sign up", href = u"/pricing" ) ),
  36. Li( A( u"source code", href = u"/source_code" ) ),
  37. class_ = u"footer_list",
  38. ),
  39. Ul(
  40. Li( u"Community", class_ = u"footer_category" ),
  41. Li( A( u"contact support", href = u"/contact_info" ) ),
  42. Li( A( u"discussion forums", href = u"/forums/" ) ),
  43. Li( A( u"blog", href = u"/blog/" ) ),
  44. Li( A( u"Facebook group", href = u"http://www.facebook.com/pages/Luminotes-personal-wiki-notebook/17143857741" ) ),
  45. Li( A( u"Twitter stream", href = u"http://twitter.com/Luminotes" ) ),
  46. class_ = u"footer_list",
  47. ),
  48. Ul(
  49. Li( u"Copyright ©2008 Luminotes" ),
  50. class_ = u"footer_list wide_footer_list",
  51. ),
  52. Br(),
  53. class_ = u"footer_column",
  54. ),
  55. class_ = u"footer_links",
  56. ),
  57. class_ = u"wide_center_area",
  58. ),
  59. class_ = u"footer",
  60. ),
  61. )