Permalink
Browse files

boilerplate with adapt.js

  • Loading branch information...
1 parent 99cbb37 commit 0b9997905f930385424a2c1f495b427439e40cd1 @danieleguido committed Feb 25, 2013
Showing with 10,198 additions and 14 deletions.
  1. +2 −0 .gitignore
  2. +7 −1 README.md
  3. +5 −0 glue/admin.py
  4. +4 −0 glue/api.py
  5. +29 −0 glue/forms.py
  6. +357 −0 static/css/1200.css
  7. +1 −0 static/css/1200.min.css
  8. +357 −0 static/css/1560.css
  9. +1 −0 static/css/1560.min.css
  10. +358 −0 static/css/1920.css
  11. +1 −0 static/css/1920.min.css
  12. +359 −0 static/css/2520.css
  13. +1 −0 static/css/2520.min.css
  14. +357 −0 static/css/720.css
  15. +1 −0 static/css/720.min.css
  16. +357 −0 static/css/960.css
  17. +1 −0 static/css/960.min.css
  18. +159 −0 static/css/fonts.css
  19. +300 −0 static/css/main.css
  20. +1 −0 static/css/mobile.min.css
  21. +527 −0 static/css/normalize.css
  22. +29 −0 static/fonts/latin-modern/GUST e-foundry License.txt
  23. BIN static/fonts/latin-modern/lmmono10-italic-webfont.eot
  24. +182 −0 static/fonts/latin-modern/lmmono10-italic-webfont.svg
  25. BIN static/fonts/latin-modern/lmmono10-italic-webfont.ttf
  26. BIN static/fonts/latin-modern/lmmono10-italic-webfont.woff
  27. BIN static/fonts/latin-modern/lmmono10-regular-webfont.eot
  28. +182 −0 static/fonts/latin-modern/lmmono10-regular-webfont.svg
  29. BIN static/fonts/latin-modern/lmmono10-regular-webfont.ttf
  30. BIN static/fonts/latin-modern/lmmono10-regular-webfont.woff
  31. BIN static/fonts/latin-modern/lmmonocaps10-oblique-webfont.eot
  32. +182 −0 static/fonts/latin-modern/lmmonocaps10-oblique-webfont.svg
  33. BIN static/fonts/latin-modern/lmmonocaps10-oblique-webfont.ttf
  34. BIN static/fonts/latin-modern/lmmonocaps10-oblique-webfont.woff
  35. BIN static/fonts/latin-modern/lmmonocaps10-regular-webfont.eot
  36. +182 −0 static/fonts/latin-modern/lmmonocaps10-regular-webfont.svg
  37. BIN static/fonts/latin-modern/lmmonocaps10-regular-webfont.ttf
  38. BIN static/fonts/latin-modern/lmmonocaps10-regular-webfont.woff
  39. BIN static/fonts/latin-modern/lmmonolt10-bold-webfont.eot
  40. +182 −0 static/fonts/latin-modern/lmmonolt10-bold-webfont.svg
  41. BIN static/fonts/latin-modern/lmmonolt10-bold-webfont.ttf
  42. BIN static/fonts/latin-modern/lmmonolt10-bold-webfont.woff
  43. BIN static/fonts/latin-modern/lmmonolt10-boldoblique-webfont.eot
  44. +182 −0 static/fonts/latin-modern/lmmonolt10-boldoblique-webfont.svg
  45. BIN static/fonts/latin-modern/lmmonolt10-boldoblique-webfont.ttf
  46. BIN static/fonts/latin-modern/lmmonolt10-boldoblique-webfont.woff
  47. BIN static/fonts/latin-modern/lmmonolt10-oblique-webfont.eot
  48. +182 −0 static/fonts/latin-modern/lmmonolt10-oblique-webfont.svg
  49. BIN static/fonts/latin-modern/lmmonolt10-oblique-webfont.ttf
  50. BIN static/fonts/latin-modern/lmmonolt10-oblique-webfont.woff
  51. BIN static/fonts/latin-modern/lmmonolt10-regular-webfont.eot
  52. +182 −0 static/fonts/latin-modern/lmmonolt10-regular-webfont.svg
  53. BIN static/fonts/latin-modern/lmmonolt10-regular-webfont.ttf
  54. BIN static/fonts/latin-modern/lmmonolt10-regular-webfont.woff
  55. BIN static/fonts/latin-modern/lmmonoltcond10-oblique-webfont.eot
  56. +182 −0 static/fonts/latin-modern/lmmonoltcond10-oblique-webfont.svg
  57. BIN static/fonts/latin-modern/lmmonoltcond10-oblique-webfont.ttf
  58. BIN static/fonts/latin-modern/lmmonoltcond10-oblique-webfont.woff
  59. BIN static/fonts/latin-modern/lmmonoltcond10-regular-webfont.eot
  60. +182 −0 static/fonts/latin-modern/lmmonoltcond10-regular-webfont.svg
  61. BIN static/fonts/latin-modern/lmmonoltcond10-regular-webfont.ttf
  62. BIN static/fonts/latin-modern/lmmonoltcond10-regular-webfont.woff
  63. BIN static/fonts/latin-modern/lmmonoprop10-oblique-webfont.eot
  64. +190 −0 static/fonts/latin-modern/lmmonoprop10-oblique-webfont.svg
  65. BIN static/fonts/latin-modern/lmmonoprop10-oblique-webfont.ttf
  66. BIN static/fonts/latin-modern/lmmonoprop10-oblique-webfont.woff
  67. BIN static/fonts/latin-modern/lmmonoprop10-regular-webfont.eot
  68. +190 −0 static/fonts/latin-modern/lmmonoprop10-regular-webfont.svg
  69. BIN static/fonts/latin-modern/lmmonoprop10-regular-webfont.ttf
  70. BIN static/fonts/latin-modern/lmmonoprop10-regular-webfont.woff
  71. BIN static/fonts/latin-modern/lmmonoproplt10-bold-webfont.eot
  72. +190 −0 static/fonts/latin-modern/lmmonoproplt10-bold-webfont.svg
  73. BIN static/fonts/latin-modern/lmmonoproplt10-bold-webfont.ttf
  74. BIN static/fonts/latin-modern/lmmonoproplt10-bold-webfont.woff
  75. BIN static/fonts/latin-modern/lmmonoproplt10-boldoblique-webfont.eot
  76. +190 −0 static/fonts/latin-modern/lmmonoproplt10-boldoblique-webfont.svg
  77. BIN static/fonts/latin-modern/lmmonoproplt10-boldoblique-webfont.ttf
  78. BIN static/fonts/latin-modern/lmmonoproplt10-boldoblique-webfont.woff
  79. BIN static/fonts/latin-modern/lmmonoproplt10-oblique-webfont.eot
  80. +190 −0 static/fonts/latin-modern/lmmonoproplt10-oblique-webfont.svg
  81. BIN static/fonts/latin-modern/lmmonoproplt10-oblique-webfont.ttf
  82. BIN static/fonts/latin-modern/lmmonoproplt10-oblique-webfont.woff
  83. BIN static/fonts/latin-modern/lmmonoproplt10-regular-webfont.eot
  84. +190 −0 static/fonts/latin-modern/lmmonoproplt10-regular-webfont.svg
  85. BIN static/fonts/latin-modern/lmmonoproplt10-regular-webfont.ttf
  86. BIN static/fonts/latin-modern/lmmonoproplt10-regular-webfont.woff
  87. BIN static/fonts/latin-modern/lmmonoslant10-regular-webfont.eot
  88. +182 −0 static/fonts/latin-modern/lmmonoslant10-regular-webfont.svg
  89. BIN static/fonts/latin-modern/lmmonoslant10-regular-webfont.ttf
  90. BIN static/fonts/latin-modern/lmmonoslant10-regular-webfont.woff
  91. BIN static/fonts/latin-modern/lmroman10-bold-webfont.eot
  92. +190 −0 static/fonts/latin-modern/lmroman10-bold-webfont.svg
  93. BIN static/fonts/latin-modern/lmroman10-bold-webfont.ttf
  94. BIN static/fonts/latin-modern/lmroman10-bold-webfont.woff
  95. BIN static/fonts/latin-modern/lmroman10-bolditalic-webfont.eot
  96. +190 −0 static/fonts/latin-modern/lmroman10-bolditalic-webfont.svg
  97. BIN static/fonts/latin-modern/lmroman10-bolditalic-webfont.ttf
  98. BIN static/fonts/latin-modern/lmroman10-bolditalic-webfont.woff
  99. BIN static/fonts/latin-modern/lmroman10-italic-webfont.eot
  100. +190 −0 static/fonts/latin-modern/lmroman10-italic-webfont.svg
  101. BIN static/fonts/latin-modern/lmroman10-italic-webfont.ttf
  102. BIN static/fonts/latin-modern/lmroman10-italic-webfont.woff
  103. BIN static/fonts/latin-modern/lmroman10-regular-webfont.eot
  104. +190 −0 static/fonts/latin-modern/lmroman10-regular-webfont.svg
  105. BIN static/fonts/latin-modern/lmroman10-regular-webfont.ttf
  106. BIN static/fonts/latin-modern/lmroman10-regular-webfont.woff
  107. BIN static/fonts/latin-modern/lmromancaps10-oblique-webfont.eot
  108. +183 −0 static/fonts/latin-modern/lmromancaps10-oblique-webfont.svg
  109. BIN static/fonts/latin-modern/lmromancaps10-oblique-webfont.ttf
  110. BIN static/fonts/latin-modern/lmromancaps10-oblique-webfont.woff
  111. BIN static/fonts/latin-modern/lmromancaps10-regular-webfont.eot
  112. +183 −0 static/fonts/latin-modern/lmromancaps10-regular-webfont.svg
  113. BIN static/fonts/latin-modern/lmromancaps10-regular-webfont.ttf
  114. BIN static/fonts/latin-modern/lmromancaps10-regular-webfont.woff
  115. BIN static/fonts/latin-modern/lmromandemi10-oblique-webfont.eot
  116. +190 −0 static/fonts/latin-modern/lmromandemi10-oblique-webfont.svg
  117. BIN static/fonts/latin-modern/lmromandemi10-oblique-webfont.ttf
  118. BIN static/fonts/latin-modern/lmromandemi10-oblique-webfont.woff
  119. BIN static/fonts/latin-modern/lmromandemi10-regular-webfont.eot
  120. +190 −0 static/fonts/latin-modern/lmromandemi10-regular-webfont.svg
  121. BIN static/fonts/latin-modern/lmromandemi10-regular-webfont.ttf
  122. BIN static/fonts/latin-modern/lmromandemi10-regular-webfont.woff
  123. BIN static/fonts/latin-modern/lmromandunh10-oblique-webfont.eot
  124. +190 −0 static/fonts/latin-modern/lmromandunh10-oblique-webfont.svg
  125. BIN static/fonts/latin-modern/lmromandunh10-oblique-webfont.ttf
  126. BIN static/fonts/latin-modern/lmromandunh10-oblique-webfont.woff
  127. BIN static/fonts/latin-modern/lmromandunh10-regular-webfont.eot
  128. +190 −0 static/fonts/latin-modern/lmromandunh10-regular-webfont.svg
  129. BIN static/fonts/latin-modern/lmromandunh10-regular-webfont.ttf
  130. BIN static/fonts/latin-modern/lmromandunh10-regular-webfont.woff
  131. BIN static/fonts/latin-modern/lmromanslant10-bold-webfont.eot
  132. +190 −0 static/fonts/latin-modern/lmromanslant10-bold-webfont.svg
  133. BIN static/fonts/latin-modern/lmromanslant10-bold-webfont.ttf
  134. BIN static/fonts/latin-modern/lmromanslant10-bold-webfont.woff
  135. BIN static/fonts/latin-modern/lmromanslant10-regular-webfont.eot
  136. +190 −0 static/fonts/latin-modern/lmromanslant10-regular-webfont.svg
  137. BIN static/fonts/latin-modern/lmromanslant10-regular-webfont.ttf
  138. BIN static/fonts/latin-modern/lmromanslant10-regular-webfont.woff
  139. BIN static/fonts/latin-modern/lmsans10-bold-webfont.eot
  140. +190 −0 static/fonts/latin-modern/lmsans10-bold-webfont.svg
  141. BIN static/fonts/latin-modern/lmsans10-bold-webfont.ttf
  142. BIN static/fonts/latin-modern/lmsans10-bold-webfont.woff
  143. BIN static/fonts/latin-modern/lmsans10-boldoblique-webfont.eot
  144. +190 −0 static/fonts/latin-modern/lmsans10-boldoblique-webfont.svg
  145. BIN static/fonts/latin-modern/lmsans10-boldoblique-webfont.ttf
  146. BIN static/fonts/latin-modern/lmsans10-boldoblique-webfont.woff
  147. BIN static/fonts/latin-modern/lmsans10-oblique-webfont.eot
  148. +190 −0 static/fonts/latin-modern/lmsans10-oblique-webfont.svg
  149. BIN static/fonts/latin-modern/lmsans10-oblique-webfont.ttf
  150. BIN static/fonts/latin-modern/lmsans10-oblique-webfont.woff
  151. BIN static/fonts/latin-modern/lmsans10-regular-webfont.eot
  152. +190 −0 static/fonts/latin-modern/lmsans10-regular-webfont.svg
  153. BIN static/fonts/latin-modern/lmsans10-regular-webfont.ttf
  154. BIN static/fonts/latin-modern/lmsans10-regular-webfont.woff
  155. BIN static/fonts/latin-modern/lmsansdemicond10-oblique-webfont.eot
  156. +190 −0 static/fonts/latin-modern/lmsansdemicond10-oblique-webfont.svg
  157. BIN static/fonts/latin-modern/lmsansdemicond10-oblique-webfont.ttf
  158. BIN static/fonts/latin-modern/lmsansdemicond10-oblique-webfont.woff
  159. BIN static/fonts/latin-modern/lmsansdemicond10-regular-webfont.eot
  160. +190 −0 static/fonts/latin-modern/lmsansdemicond10-regular-webfont.svg
  161. BIN static/fonts/latin-modern/lmsansdemicond10-regular-webfont.ttf
  162. BIN static/fonts/latin-modern/lmsansdemicond10-regular-webfont.woff
  163. +1 −0 static/js/adapt.min.js
  164. +24 −0 static/js/plugins.js
  165. +4 −0 static/js/vendor/jquery-1.9.0.min.js
  166. +9 −0 static/js/vendor/less-1.3.0.min.js
  167. +4 −0 static/js/vendor/modernizr-2.6.2.min.js
  168. +1 −0 static/js/walt.js
  169. +49 −0 static/less/fonts.less
  170. +82 −0 static/less/mixins.less
  171. +15 −0 static/less/style.less
  172. +71 −0 templates/walt/boilerplate.html
  173. +15 −0 templates/walt/crossdomain.xml
  174. +15 −0 templates/walt/humans.txt
  175. +18 −0 templates/walt/index.html
  176. +13 −0 templates/walt/middle.html
  177. +3 −0 templates/walt/robots.txt
  178. +14 −0 walt.conf.sample
  179. +23 −0 walt.wsgi.sample
  180. +23 −0 walt/local_settings.py.sample
  181. +8 −12 walt/settings.py
  182. +5 −1 walt/urls.py
  183. +39 −0 walt/views.py
View
@@ -2,3 +2,5 @@
*.pot
*.pyc
local_settings.py
+*.wsgi
+*.db
View
@@ -1,4 +1,10 @@
walt
====
-a pythonical django approach for adaptation (Wander, Ask, Learn, Tell)
+a pythonical django approach for adaptation (Wander, Ask, Learn, Tell)
+
+
+
+[install virtualenv, virtualenvwrapper](http://virtualenvwrapper.readthedocs.org/en/latest/)
+ cd walt
+ pip install -r requirements.txt
View
@@ -0,0 +1,5 @@
+from django.contrib import admin
+from glue.models import Page, Pin
+
+admin.site.register( Page )
+admin.site.register( Pin )
View
@@ -14,6 +14,10 @@
logger = logging.getLogger(__name__)
+def home(request):
+ # logger.info("Welcome to GLUEBOX api")
+ return Epoxy( request ).json()
+
def index(request):
# logger.info("Welcome to GLUEBOX api")
return Epoxy( request ).json()
View
@@ -0,0 +1,29 @@
+from django import forms
+from django.forms import ModelForm
+from django.utils.translation import ugettext as _
+
+class LoginForm(forms.Form):
+ username = forms.CharField( label=_('login'), max_length=64 )
+ password = forms.CharField( label=_('password'), max_length=64, widget=forms.PasswordInput(render_value=False ) )
+
+
+class AddPageForm(forms.Form):
+ title_fr = forms.CharField( label=_("french title"),required=True )
+ title_en = forms.CharField( label=_("english title"), required=True )
+ slug = forms.SlugField( required=True )
+
+class AddPinForm(forms.Form):
+ title_fr = forms.CharField( label=_("french title"),required=True )
+ title_en = forms.CharField( label=_("english title"), required=True )
+ slug = forms.SlugField( required=True )
+ page_slug = forms.SlugField( required=False, widget=forms.HiddenInput )
+ parent_pin_slug = forms.SlugField( required=False, widget=forms.HiddenInput )
+
+class EditPinForm(forms.Form):
+ title = forms.CharField( label=_("title"),required=True )
+ abstract = forms.CharField( label=_("abstract"), required=True, widget=forms.Textarea )
+ content = forms.CharField( label=_("content"), required=True, widget=forms.Textarea )
+
+class UploadPinForm(forms.Form): # an upload form without file :D (upload via ajax)
+ page_slug = forms.SlugField( required=False, widget=forms.HiddenInput )
+ parent_pin_slug = forms.SlugField( required=False, widget=forms.HiddenInput )
Oops, something went wrong.

0 comments on commit 0b99979

Please sign in to comment.