Personal wiki notebook (not under development)

Download_page.py 8.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. from Product_page import Product_page
  2. from Tags import Div, H1, Img, A, P, Table, Th, Tr, Td, Li, Span, I, Br, Ul, Li, Script, H4, B
  3. from config.Version import VERSION
  4. class Download_page( Product_page ):
  5. def __init__( self, user, notebooks, first_notebook, login_url, logout_url, rate_plan, groups, download_products, upgrade = False ):
  6. MEGABYTE = 1024 * 1024
  7. # for now, just assume there's a single download package
  8. news_url = u"http://luminotes.com/hg/luminotes/file/%s/NEWS" % VERSION
  9. Product_page.__init__(
  10. self,
  11. user,
  12. first_notebook,
  13. login_url,
  14. logout_url,
  15. u"download", # note title
  16. Script( type = u"text/javascript", src = u"/static/js/MochiKit.js?%s" % VERSION ),
  17. Div(
  18. Div(
  19. H1(
  20. Img(
  21. src = u"/static/images/download.png",
  22. width = u"181", height = u"41",
  23. alt = u"download",
  24. ),
  25. ),
  26. P(
  27. u"Install Luminotes on your computer.",
  28. class_ = u"upgrade_subtitle",
  29. ),
  30. Div(
  31. upgrade and Div(
  32. P(
  33. B( "Upgrading:" ),
  34. u"""
  35. If you already have Luminotes Desktop and would like to upgrade to a newer
  36. version, simply download and install it. All of your notes will be preserved.
  37. """,
  38. A( "Check out what's new in version %s" % VERSION, href = news_url ),
  39. ),
  40. P(
  41. u"Need help? Please",
  42. A( u"contact support", href = u"/contact_info" ),
  43. u"for assistance.",
  44. ),
  45. class_ = u"upgrade_text",
  46. ) or None,
  47. Div(
  48. Img( src = u"/static/images/installer_screenshot.png", width = u"350", height = u"273" ),
  49. class_ = u"desktop_screenshot",
  50. ),
  51. P(
  52. Table(
  53. Tr(
  54. Th(
  55. Span( u"Luminotes Desktop", class_ = u"plan_name" ),
  56. Div(
  57. A( "version", VERSION, href = news_url ),
  58. class_ = u"version_text",
  59. ),
  60. class_ = u"plan_name_area download_plan_width",
  61. colspan = "2",
  62. ),
  63. ),
  64. Tr( Td( colspan = "2" ), class_ = u"spacer_row" ),
  65. Tr(
  66. Td(
  67. Span( u"Solo", class_ = u"highlight" ), u"note taking",
  68. title = u"Luminotes Desktop is designed for individuals.",
  69. class_ = u"feature_value",
  70. colspan = "2",
  71. ),
  72. ),
  73. Tr(
  74. Td(
  75. u"Runs on your", Span( u"own computer", class_ = u"highlight" ),
  76. title = u"All of your notes are stored privately on your own computer or on a USB drive.",
  77. class_ = u"feature_value",
  78. colspan = "2",
  79. ),
  80. ),
  81. Tr(
  82. Td(
  83. Span( u"Unlimited", class_ = u"highlight" ), u"storage",
  84. title = u"Add as many notes, documents, and files as you want.",
  85. class_ = u"feature_value",
  86. colspan = "2",
  87. ),
  88. ),
  89. Tr(
  90. Td(
  91. u"Works", Span( "offline", class_ = u"highlight" ),
  92. title = u"Take notes in meetings, in class, or while on the go. Runs in a web browser, but doesn't need an internet connection.",
  93. class_ = u"feature_value",
  94. colspan = "2",
  95. ),
  96. ),
  97. Tr( Td( colspan = "2" ), class_ = u"spacer_row" ),
  98. Tr(
  99. Td(
  100. u"Windows XP/Vista,", A( u"Linux source", href = u"/source_code" ),
  101. class_ = u"small_text",
  102. colspan = "2",
  103. ),
  104. ),
  105. Tr(
  106. Td(
  107. u"Firefox 2+, Internet Explorer 7+, Chrome 1+, Safari 3+",
  108. class_ = u"small_text",
  109. colspan = "2",
  110. ),
  111. ),
  112. Tr( Td( colspan = "2" ), class_ = u"spacer_row" ),
  113. Tr(
  114. Td(
  115. Div(
  116. A(
  117. Img(
  118. src = u"/static/images/trial_button.png",
  119. width = u"107", height = u"26",
  120. alt = u"download trial",
  121. ),
  122. href = "/static/luminotes.exe",
  123. ),
  124. class_ = u"trial_button_area",
  125. ),
  126. colspan = "1",
  127. ) or None,
  128. ),
  129. Tr( Td( colspan = "2" ), class_ = u"spacer_row" ),
  130. border = u"1",
  131. id = u"upgrade_table",
  132. ),
  133. class_ = u"upgrade_table_area",
  134. ),
  135. class_ = u"wide_center_area",
  136. ),
  137. Div(
  138. u"Don't want to install anything? Need collaboration features? ",
  139. A( u"Use Luminotes online", href = u"/pricing" ),
  140. u".",
  141. class_ = u"small_text luminotes_online_link_area",
  142. separator = u"",
  143. ),
  144. class_ = u"upgrade_area",
  145. ),
  146. Div(
  147. Div(
  148. H4( u"Is my wiki private?", class_ = u"upgrade_question" ),
  149. P(
  150. u"""
  151. Absolutely. With Luminotes Desktop, your notes are stored locally on your own
  152. computer, not on the web. There is also a complete
  153. """,
  154. A( u"Luminotes privacy policy", href = "/privacy" ),
  155. u"""
  156. so please check that out if you're interested in how Luminotes
  157. protects your privacy.
  158. """,
  159. class_ = u"upgrade_text",
  160. ),
  161. H4( u"Can I run Luminotes Desktop from a USB flash drive?", class_ = u"upgrade_question" ),
  162. P(
  163. """
  164. Yes! You can keep your wiki in your pocket by running Luminotes Desktop directly from
  165. a USB flash drive. Full instructions are included with the download.
  166. """,
  167. class_ = u"upgrade_text",
  168. ),
  169. H4( u"What happens to my wiki if I stop using Luminotes?", class_ = u"upgrade_question" ),
  170. P(
  171. """
  172. There is no lock-in with Luminotes. You can export your entire wiki to a stand-alone web page or a CSV spreadsheet — anytime you like.
  173. """,
  174. class_ = u"upgrade_text",
  175. ),
  176. class_= u"wide_center_area",
  177. ),
  178. P(
  179. Table(
  180. Tr(
  181. Th(
  182. Span( u"Luminotes Desktop", class_ = u"plan_name" ),
  183. class_ = u"plan_name_area",
  184. colspan = "2",
  185. )
  186. ),
  187. Tr(
  188. Td(
  189. Div(
  190. A(
  191. Img(
  192. src = u"/static/images/trial_button.png",
  193. width = u"107", height = u"26",
  194. alt = u"download trial",
  195. ),
  196. href = "/static/luminotes.exe",
  197. ),
  198. class_ = u"trial_button_area",
  199. ),
  200. colspan = "1",
  201. ),
  202. ),
  203. id = u"upgrade_table_small",
  204. ),
  205. class_= u"upgrade_table_area",
  206. ),
  207. Div(
  208. P(
  209. Span( u"Have a question?", class_ = u"hook_action_question" ), Br(),
  210. A( u"Contact support", href = u"/contact_info", class_ = u"hook_action" ),
  211. class_ = u"hook_action_area",
  212. separator = u"",
  213. ),
  214. class_ = u"center_area",
  215. ),
  216. class_ = u"wide_center_area",
  217. ),
  218. ),
  219. )