squeezer 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) hide show
  1. data/VERSION +1 -1
  2. data/{lib/app → app}/controllers/application_controller.rb +0 -0
  3. data/{lib/app → app}/controllers/blogs_controller.rb +0 -0
  4. data/{lib/app → app}/controllers/comments_controller.rb +0 -0
  5. data/{lib/app → app}/controllers/pages_controller.rb +0 -0
  6. data/{lib/app → app}/controllers/posts_controller.rb +0 -0
  7. data/{lib/app → app}/controllers/roles_controller.rb +0 -0
  8. data/{lib/app → app}/controllers/sites_controller.rb +0 -0
  9. data/{lib/app → app}/controllers/users_controller.rb +0 -0
  10. data/{lib/app → app}/helpers/squeezer_helper.rb +0 -0
  11. data/{lib/app → app}/models/ability.rb +0 -0
  12. data/{lib/app → app}/models/blog.rb +0 -0
  13. data/{lib/app → app}/models/comment.rb +0 -0
  14. data/{lib/app → app}/models/page.rb +0 -0
  15. data/{lib/app → app}/models/post.rb +0 -0
  16. data/{lib/app → app}/models/role.rb +0 -0
  17. data/{lib/app → app}/models/site.rb +0 -0
  18. data/{lib/app → app}/models/user.rb +0 -0
  19. data/{lib/app → app}/views/blogs/_entry.haml +0 -0
  20. data/{lib/app → app}/views/blogs/_form.html.haml +0 -0
  21. data/{lib/app → app}/views/blogs/edit.html.haml +0 -0
  22. data/{lib/app → app}/views/blogs/index.html.haml +0 -0
  23. data/{lib/app → app}/views/blogs/new.html.haml +0 -0
  24. data/{lib/app → app}/views/blogs/show.html.haml +0 -0
  25. data/{lib/app → app}/views/comments/_form.html.haml +0 -0
  26. data/{lib/app → app}/views/comments/_index.html.haml +0 -0
  27. data/{lib/app → app}/views/comments/_post.html.haml +0 -0
  28. data/{lib/app → app}/views/comments/show.js.erb +0 -0
  29. data/{lib/app → app}/views/layouts/_footer.html.haml +0 -0
  30. data/{lib/app → app}/views/layouts/_login.haml +0 -0
  31. data/{lib/app → app}/views/layouts/_menu.html.haml +0 -0
  32. data/{lib/app → app}/views/layouts/_msn.haml +0 -0
  33. data/{lib/app → app}/views/layouts/_sidebar.html.haml +0 -0
  34. data/{lib/app → app}/views/layouts/application.html.erb +0 -0
  35. data/{lib/app → app}/views/layouts/ice/squeezer/_ice.haml +0 -0
  36. data/{lib/app → app}/views/layouts/ice/squeezer/ice/_ice.haml +0 -0
  37. data/{lib/app → app}/views/layouts/ice/squeezer/ice/squeezer/_ice.haml +0 -0
  38. data/{lib/app → app}/views/layouts/ice/squeezer/ice/squeezer/ice/_ice.haml +0 -0
  39. data/{lib/app → app}/views/layouts/ice/squeezer/ice/squeezer/ice/squeezer/_ice.haml +0 -0
  40. data/{lib/app → app}/views/layouts/squeezer/ice/_ice.haml +0 -0
  41. data/{lib/app → app}/views/layouts/squeezer/ice/squeezer/_ice.haml +0 -0
  42. data/{lib/app → app}/views/layouts/squeezer/ice/squeezer/ice/_ice.haml +0 -0
  43. data/{lib/app → app}/views/layouts/squeezer/ice/squeezer/ice/squeezer/_ice.haml +0 -0
  44. data/{lib/app → app}/views/layouts/squeezer/squeezer.css +0 -0
  45. data/{lib/app → app}/views/pages/_form.html.haml +0 -0
  46. data/{lib/app → app}/views/pages/edit.html.haml +0 -0
  47. data/{lib/app → app}/views/pages/index.html.haml +0 -0
  48. data/{lib/app → app}/views/pages/new.html.haml +0 -0
  49. data/{lib/app → app}/views/pages/show.html.haml +0 -0
  50. data/{lib/app → app}/views/roles/_form.html.haml +0 -0
  51. data/{lib/app → app}/views/roles/edit.html.haml +0 -0
  52. data/{lib/app → app}/views/roles/index.html.haml +0 -0
  53. data/{lib/app → app}/views/roles/new.html.haml +0 -0
  54. data/{lib/app → app}/views/roles/show.html.haml +0 -0
  55. data/{lib/app → app}/views/sites/_form.html.haml +0 -0
  56. data/{lib/app → app}/views/sites/edit.html.haml +0 -0
  57. data/{lib/app → app}/views/sites/index.html.haml +0 -0
  58. data/{lib/app → app}/views/sites/new.html.haml +0 -0
  59. data/{lib/app → app}/views/sites/show.html.haml +0 -0
  60. data/{lib/app → app}/views/users/index.haml +0 -0
  61. data/{lib/app → app}/views/users/roles.haml +0 -0
  62. data/{lib/app → app}/views/users/show.haml +0 -0
  63. data/lib/generators/squeezer/Gemfile +37 -0
  64. data/lib/generators/squeezer/README +2 -0
  65. data/lib/generators/squeezer/USAGE +7 -0
  66. data/lib/generators/squeezer/squeezer_generator.rb +114 -0
  67. data/lib/generators/squeezer/templates/Gemfile +37 -0
  68. data/lib/generators/squeezer/templates/app/controllers/application_controller.rb +25 -0
  69. data/lib/{blogs_controller.rb → generators/squeezer/templates/app/controllers/blogs_controller.rb} +0 -0
  70. data/lib/generators/squeezer/templates/app/controllers/comments_controller.rb +37 -0
  71. data/lib/generators/squeezer/templates/app/controllers/forums_controller.rb +42 -0
  72. data/lib/generators/squeezer/templates/app/controllers/pages_controller.rb +3 -0
  73. data/lib/generators/squeezer/templates/app/controllers/posts_controller.rb +23 -0
  74. data/lib/generators/squeezer/templates/app/controllers/roles_controller.rb +3 -0
  75. data/lib/generators/squeezer/templates/app/controllers/sites_controller.rb +70 -0
  76. data/lib/generators/squeezer/templates/app/controllers/topics_controller.rb +46 -0
  77. data/lib/generators/squeezer/templates/app/controllers/users_controller.rb +22 -0
  78. data/lib/generators/squeezer/templates/app/helpers/application_helper.rb +66 -0
  79. data/lib/generators/squeezer/templates/app/helpers/blogs_helper.rb +2 -0
  80. data/lib/generators/squeezer/templates/app/helpers/layout_helper.rb +71 -0
  81. data/lib/generators/squeezer/templates/app/helpers/pages_helper.rb +2 -0
  82. data/lib/generators/squeezer/templates/app/models/ability.rb +17 -0
  83. data/lib/generators/squeezer/templates/app/models/blog.rb +6 -0
  84. data/lib/generators/squeezer/templates/app/models/comment.rb +4 -0
  85. data/lib/generators/squeezer/templates/app/models/forum.rb +5 -0
  86. data/lib/generators/squeezer/templates/app/models/isntall.rb +9 -0
  87. data/lib/generators/squeezer/templates/app/models/page.rb +3 -0
  88. data/lib/generators/squeezer/templates/app/models/post.rb +12 -0
  89. data/lib/generators/squeezer/templates/app/models/role.rb +3 -0
  90. data/lib/generators/squeezer/templates/app/models/site.rb +17 -0
  91. data/lib/generators/squeezer/templates/app/models/topic.rb +6 -0
  92. data/lib/generators/squeezer/templates/app/models/user.rb +35 -0
  93. data/lib/generators/squeezer/templates/app/views/blogs/_entry.haml +26 -0
  94. data/lib/generators/squeezer/templates/app/views/blogs/_form.html.haml +15 -0
  95. data/lib/generators/squeezer/templates/app/views/blogs/edit.html.haml +8 -0
  96. data/lib/generators/squeezer/templates/app/views/blogs/index.html.haml +8 -0
  97. data/lib/generators/squeezer/templates/app/views/blogs/new.html.haml +5 -0
  98. data/lib/generators/squeezer/templates/app/views/blogs/show.html.haml +4 -0
  99. data/lib/generators/squeezer/templates/app/views/comments/_form.html.erb +5 -0
  100. data/lib/generators/squeezer/templates/app/views/comments/_form.html.haml +19 -0
  101. data/lib/generators/squeezer/templates/app/views/comments/_index.html.haml +26 -0
  102. data/lib/generators/squeezer/templates/app/views/comments/_post.html.haml +19 -0
  103. data/lib/generators/squeezer/templates/app/views/comments/_post2.haml +14 -0
  104. data/lib/generators/squeezer/templates/app/views/comments/edit.haml +7 -0
  105. data/lib/generators/squeezer/templates/app/views/comments/show.js.erb +1 -0
  106. data/lib/generators/squeezer/templates/app/views/confirmations/new.html.erb +12 -0
  107. data/lib/generators/squeezer/templates/app/views/devise/confirmations/new.html.erb +12 -0
  108. data/lib/generators/squeezer/templates/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  109. data/lib/generators/squeezer/templates/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  110. data/lib/generators/squeezer/templates/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  111. data/lib/generators/squeezer/templates/app/views/devise/passwords/edit.html.erb +16 -0
  112. data/lib/generators/squeezer/templates/app/views/devise/passwords/new.html.erb +12 -0
  113. data/lib/generators/squeezer/templates/app/views/devise/registrations/edit.html.erb +28 -0
  114. data/lib/generators/squeezer/templates/app/views/devise/registrations/new.html.erb +21 -0
  115. data/lib/generators/squeezer/templates/app/views/devise/sessions/new.html.erb +17 -0
  116. data/lib/generators/squeezer/templates/app/views/devise/shared/_links.erb +19 -0
  117. data/lib/generators/squeezer/templates/app/views/devise/unlocks/new.html.erb +12 -0
  118. data/lib/generators/squeezer/templates/app/views/devise_mailer/confirmation_instructions.html.erb +5 -0
  119. data/lib/generators/squeezer/templates/app/views/devise_mailer/reset_password_instructions.html.erb +8 -0
  120. data/lib/generators/squeezer/templates/app/views/devise_mailer/unlock_instructions.html.erb +7 -0
  121. data/lib/generators/squeezer/templates/app/views/forums/_form.html.haml +14 -0
  122. data/lib/generators/squeezer/templates/app/views/forums/edit.html.haml +8 -0
  123. data/lib/generators/squeezer/templates/app/views/forums/index.html.haml +37 -0
  124. data/lib/generators/squeezer/templates/app/views/forums/new.html.haml +5 -0
  125. data/lib/generators/squeezer/templates/app/views/forums/show.html.haml +43 -0
  126. data/lib/generators/squeezer/templates/app/views/layouts/_footer.html.haml +5 -0
  127. data/lib/generators/squeezer/templates/app/views/layouts/_header.html.haml +10 -0
  128. data/lib/generators/squeezer/templates/app/views/layouts/_ice.haml +27 -0
  129. data/lib/generators/squeezer/templates/app/views/layouts/_latest.haml +15 -0
  130. data/lib/generators/squeezer/templates/app/views/layouts/_login.html.erb +9 -0
  131. data/lib/generators/squeezer/templates/app/views/layouts/_login.html.haml +12 -0
  132. data/lib/generators/squeezer/templates/app/views/layouts/_menu.html.haml +6 -0
  133. data/lib/generators/squeezer/templates/app/views/layouts/_msn.haml +12 -0
  134. data/lib/generators/squeezer/templates/app/views/layouts/_sidebar.html.haml +1 -0
  135. data/lib/generators/squeezer/templates/app/views/layouts/application.html.erb +14 -0
  136. data/lib/generators/squeezer/templates/app/views/layouts/application.html.haml +14 -0
  137. data/lib/generators/squeezer/templates/app/views/layouts/ice/squeezer/_ice.haml +27 -0
  138. data/lib/generators/squeezer/templates/app/views/pages/_form.html.haml +17 -0
  139. data/lib/generators/squeezer/templates/app/views/pages/edit.html.haml +8 -0
  140. data/lib/generators/squeezer/templates/app/views/pages/index.html.haml +22 -0
  141. data/lib/generators/squeezer/templates/app/views/pages/new.html.haml +5 -0
  142. data/lib/generators/squeezer/templates/app/views/pages/show.html.haml +12 -0
  143. data/lib/generators/squeezer/templates/app/views/passwords/edit.html.erb +16 -0
  144. data/lib/generators/squeezer/templates/app/views/passwords/new.html.erb +12 -0
  145. data/lib/generators/squeezer/templates/app/views/registrations/edit.html.erb +25 -0
  146. data/lib/generators/squeezer/templates/app/views/registrations/new.html.erb +17 -0
  147. data/lib/generators/squeezer/templates/app/views/roles/_form.html.haml +9 -0
  148. data/lib/generators/squeezer/templates/app/views/roles/edit.html.haml +7 -0
  149. data/lib/generators/squeezer/templates/app/views/roles/index.html.haml +19 -0
  150. data/lib/generators/squeezer/templates/app/views/roles/new.html.haml +5 -0
  151. data/lib/generators/squeezer/templates/app/views/roles/show.html.haml +13 -0
  152. data/lib/generators/squeezer/templates/app/views/roles/user.html.erb +14 -0
  153. data/lib/generators/squeezer/templates/app/views/sessions/new.html.erb +17 -0
  154. data/lib/generators/squeezer/templates/app/views/shared/_devise_links.erb +19 -0
  155. data/lib/generators/squeezer/templates/app/views/sites/_form.html.haml +42 -0
  156. data/lib/generators/squeezer/templates/app/views/sites/edit.html.haml +1 -0
  157. data/lib/generators/squeezer/templates/app/views/sites/index.html.haml +165 -0
  158. data/lib/generators/squeezer/templates/app/views/sites/new.html.haml +1 -0
  159. data/lib/generators/squeezer/templates/app/views/sites/show.html.haml +18 -0
  160. data/lib/generators/squeezer/templates/app/views/topics/_form.html.haml +16 -0
  161. data/lib/generators/squeezer/templates/app/views/topics/edit.html.erb +8 -0
  162. data/lib/generators/squeezer/templates/app/views/topics/index.html.haml +23 -0
  163. data/lib/generators/squeezer/templates/app/views/topics/new.html.erb +5 -0
  164. data/lib/generators/squeezer/templates/app/views/topics/show.html.haml +16 -0
  165. data/lib/generators/squeezer/templates/app/views/unlocks/new.html.erb +12 -0
  166. data/lib/generators/squeezer/templates/app/views/users/index.haml +5 -0
  167. data/lib/generators/squeezer/templates/app/views/users/roles.haml +14 -0
  168. data/lib/generators/squeezer/templates/config/devise.rb +142 -0
  169. data/lib/generators/squeezer/templates/db/migrate/add_username_user.rb +11 -0
  170. data/lib/generators/squeezer/templates/db/migrate/blogs.rb +15 -0
  171. data/lib/generators/squeezer/templates/db/migrate/comments.rb +15 -0
  172. data/lib/generators/squeezer/templates/db/migrate/create_blogs.rb +15 -0
  173. data/lib/generators/squeezer/templates/db/migrate/create_comments.rb +15 -0
  174. data/lib/generators/squeezer/templates/db/migrate/create_pages.rb +16 -0
  175. data/lib/generators/squeezer/templates/db/migrate/create_posts.rb +16 -0
  176. data/lib/generators/squeezer/templates/db/migrate/create_roles.rb +13 -0
  177. data/lib/generators/squeezer/templates/db/migrate/create_roles_users.rb +15 -0
  178. data/lib/generators/squeezer/templates/db/migrate/create_sites.rb +26 -0
  179. data/lib/generators/squeezer/templates/db/migrate/data.rb +7 -0
  180. data/lib/generators/squeezer/templates/db/migrate/page_data.rb +10 -0
  181. data/lib/generators/squeezer/templates/db/migrate/pages.rb +16 -0
  182. data/lib/generators/squeezer/templates/db/migrate/posts.rb +16 -0
  183. data/lib/generators/squeezer/templates/db/migrate/roles.rb +13 -0
  184. data/lib/generators/squeezer/templates/db/migrate/roles_users.rb +15 -0
  185. data/lib/generators/squeezer/templates/db/migrate/sites.rb +26 -0
  186. data/lib/generators/squeezer/templates/db/migrate/squeez_data.rb +7 -0
  187. data/lib/generators/squeezer/templates/doc/clases.png +0 -0
  188. data/lib/generators/squeezer/templates/ice/squeezer/ice/_ice.haml +6 -0
  189. data/lib/generators/squeezer/templates/ice/squeezer/ice/squeezer/_ice.haml +28 -0
  190. data/lib/generators/squeezer/templates/ice/squeezer/ice/squeezer/ice/_ice.haml +6 -0
  191. data/lib/generators/squeezer/templates/ice/squeezer/ice/squeezer/ice/squeezer/_ice.haml +7 -0
  192. data/lib/generators/squeezer/templates/ice/squeezer/squeezer.css +252 -0
  193. data/lib/generators/squeezer/templates/public/javascripts/application.js +53 -0
  194. data/lib/generators/squeezer/templates/public/javascripts/jquery-ui.js +11437 -0
  195. data/lib/generators/squeezer/templates/public/javascripts/jquery-ui.min.js +401 -0
  196. data/lib/generators/squeezer/templates/public/javascripts/jquery.cleditor.min.js +31 -0
  197. data/lib/generators/squeezer/templates/public/javascripts/jquery.js +6883 -0
  198. data/lib/generators/squeezer/templates/public/javascripts/jquery.layout.min-1.2.0.js +80 -0
  199. data/lib/generators/squeezer/templates/public/javascripts/jquery.min.js +166 -0
  200. data/lib/generators/squeezer/templates/public/javascripts/rails.js +146 -0
  201. data/lib/generators/squeezer/templates/public/stylesheets/CLEditor1_3_0/images/buttons.gif +0 -0
  202. data/lib/generators/squeezer/templates/public/stylesheets/CLEditor1_3_0/images/toolbar.gif +0 -0
  203. data/lib/generators/squeezer/templates/public/stylesheets/CLEditor1_3_0/jquery.cleditor.css +24 -0
  204. data/lib/generators/squeezer/templates/public/stylesheets/ice/lagota/ice/_ice.haml +6 -0
  205. data/lib/generators/squeezer/templates/public/stylesheets/ice/lagota/lagota.css +284 -0
  206. data/lib/generators/squeezer/templates/public/stylesheets/ice/squeezer/ice/_ice.haml +6 -0
  207. data/lib/generators/squeezer/templates/public/stylesheets/ice/squeezer/ice/squeezer/_ice.haml +27 -0
  208. data/lib/generators/squeezer/templates/public/stylesheets/ice/squeezer/ice/squeezer/ice/_ice.haml +6 -0
  209. data/lib/generators/squeezer/templates/public/stylesheets/ice/squeezer/ice/squeezer/ice/squeezer/_ice.haml +7 -0
  210. data/lib/generators/squeezer/templates/public/stylesheets/ice/squeezer/squeezer.css +249 -0
  211. data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  212. data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  213. data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  214. data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  215. data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  216. data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  217. data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  218. data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  219. data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  220. data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  221. data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  222. data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  223. data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  224. data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  225. data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/jquery-ui-1.8.5.custom.css +572 -0
  226. data/lib/squeezer.rb +1 -1
  227. data/pkg/squeezer-0.1.3.gem +0 -0
  228. data/pkg/squeezer-0.1.4.gem +0 -0
  229. data/squeezer.gemspec +227 -65
  230. metadata +229 -67
  231. data/lib/squeezer/engine.rb +0 -0
@@ -0,0 +1,13 @@
1
+ class CreateRoles < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :roles do |t|
4
+ t.string :name
5
+ t.text :desc
6
+ t.timestamps
7
+ end
8
+ end
9
+
10
+ def self.down
11
+ drop_table :roles
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ class CreateRolesUsers < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :roles_users,:id=>false do |t|
4
+ t.integer :role_id
5
+ t.integer :user_id
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+
11
+ def self.down
12
+ drop_table :roles_users
13
+ end
14
+ end
15
+
@@ -0,0 +1,26 @@
1
+ class CreateSites < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :sites do |t|
4
+ t.string :name
5
+ t.string :slogan
6
+ t.string :email
7
+ t.text :mision
8
+ t.text :footer
9
+ t.string :style
10
+ t.string :logo_file_name
11
+ t.string :logo_content_type
12
+ t.integer :logo_file_size
13
+ t.datetime :logo_updated_at
14
+ t.string :icon_file_name
15
+ t.string :icon_content_type
16
+ t.integer :icon_file_size
17
+ t.datetime :icon_updated_at
18
+
19
+ t.timestamps
20
+ end
21
+ end
22
+
23
+ def self.down
24
+ drop_table :sites
25
+ end
26
+ end
@@ -0,0 +1,7 @@
1
+ class SqueezData < ActiveRecord::Migration
2
+ def self.up
3
+ Role.create :name=>'Admin',:desc=>'Es el Rol de administrador'
4
+ User.create :username=>'olvap',:email=>'youre-mail@mail.com',:password_confirmation=>'admin6',:password=>'admin6', :role_ids=>[1]
5
+ Site.create :name =>'Squeezer',:slogan=>'Porque a nadie le gusta exprimir pero a todos les gusta la limonada',:style=>'squeezer'
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ #page
2
+ #header
3
+ = render :partial => 'layouts/login'
4
+ = render :partial => 'layouts/msn'
5
+ #content
6
+ = yield
@@ -0,0 +1,28 @@
1
+ = javascript_include_tag 'jquery.layout.min-1.2.0'
2
+ .ui-layout-center
3
+ #tabs
4
+ %ul
5
+ #content
6
+ = yield
7
+
8
+ .ui-layout-north
9
+ = render :partial => 'layouts/menu'
10
+ = render :partial => 'layouts/login'
11
+ = render :partial => 'layouts/msn'
12
+
13
+ #container
14
+ #flash_notice{:style=>"display:none"}
15
+ = content_tag :h1, yield(:title) if show_title?
16
+
17
+ = yield :north
18
+
19
+ .ui-layout-south
20
+ = yield :south
21
+
22
+ .ui-layout-east
23
+ = render :partial => 'layouts/sidebar'
24
+ = yield :east
25
+
26
+ .ui-layout-west
27
+ = yield :west
28
+
@@ -0,0 +1,6 @@
1
+ #page
2
+ #header
3
+ = render :partial => 'layouts/login'
4
+ = render :partial => 'layouts/msn'
5
+ #content
6
+ = yield
@@ -0,0 +1,7 @@
1
+ #page
2
+ #header
3
+ = render :partial => 'layouts/login'
4
+ = render :partial => 'layouts/msn'
5
+ #content
6
+ = yield
7
+ = render :partial => 'layouts/sidebar'
@@ -0,0 +1,252 @@
1
+ /* código */
2
+ h3{
3
+ border-top:4px solid #E0E0E0 !important;
4
+ }
5
+ .text{
6
+ background-color:#F8F8FF !important;
7
+ border:1px solid #DEDEDE !important;
8
+ color:#444444 !important;
9
+ font-size:90% !important;
10
+ line-height:1.5em !important;
11
+ margin:1em 0 !important;
12
+ overflow:auto !important;
13
+ padding:0.5em !important;
14
+
15
+ }
16
+ .codigo{
17
+ background-color:#E3E9ED !important;
18
+ border:1px solid #DEDEDE !important;
19
+ color:black !important;
20
+ font-size:90% !important;
21
+ line-height:1.5em !important;
22
+ margin:1em 0 !important;
23
+ overflow:auto !important;
24
+ padding:0.5em !important;
25
+ }
26
+ /* datos */
27
+ #datos{
28
+ padding:10px;
29
+ margin:3px;
30
+ color:#000;
31
+ border:2px solid #000;
32
+ }
33
+ /* action bar */
34
+ #action_bar a{
35
+ color:white;
36
+ padding:15px;
37
+ text-decoration:none;
38
+ }
39
+ #action_bar a:hover{
40
+ background-color:#CECAFF;
41
+ padding-left:15px;
42
+ padding-right:15px;
43
+ padding-top:20px;
44
+ padding-bottom:20px;
45
+ color:black;
46
+ text-decoration:none;
47
+ }
48
+ #action_bar{
49
+ color:#FFFFFF;
50
+ padding:15px;
51
+ background-color:#292936;
52
+ height:20px;
53
+ margin-top:10px;
54
+ margin-bottom:10px;
55
+ }
56
+ /* modify */
57
+ #modify{
58
+ border-top:2px solid #000;
59
+ padding:5px;
60
+ background-color:#CAC8FF;
61
+ }
62
+ /* forum */
63
+ strong{
64
+ font-weight: bold;
65
+ }
66
+ .posts{
67
+ width:100px;
68
+ font-size: 0.8em;
69
+ border-top:2px;
70
+ vertical-align: top;
71
+ }
72
+ .comment{
73
+ border-top:2px solid #ddd;
74
+ width:500px;
75
+ }
76
+ .greycolumn{
77
+ background:#E8E8E8;
78
+ padding: 5px;
79
+ }
80
+ .user{
81
+ width: 100px;
82
+ }
83
+ /* tables */
84
+ table.noborder td{ border:0;}
85
+ table.nopad td{ padding-left:0;}
86
+ table.wide { width:100%; }
87
+ table.mytable
88
+ {
89
+ border-collapse:collapse;
90
+ font-family: 'Lucida Grande', Tahoma, Arial, Helvetica, sans-serif;
91
+ }
92
+ table.mytable tr th
93
+ {
94
+ background:#323336;
95
+ color:white;
96
+ font-size:0.8em;
97
+ padding:3px 10px;
98
+ border:1px solid #222;
99
+ }
100
+ table.mytable tr td
101
+ {
102
+ vertical-align:top;
103
+ padding:7px;
104
+ border:1px solid #ddd;
105
+ }
106
+
107
+ /* topics */
108
+
109
+ #forum_description
110
+ {
111
+ width:99%;
112
+ }
113
+
114
+ table.forums
115
+ { font-size:0.8em; }
116
+ table.forums tr th { font-size:0.8em; }
117
+ table.forums tr td .title {
118
+ font-size:1.4em;
119
+ }
120
+
121
+ table.forums tr td .desc {
122
+ margin:0.5em 0;
123
+ }
124
+ table.forums tr td
125
+ {
126
+ padding:4px 15px;
127
+ }
128
+ table.forums a.tiny
129
+ {
130
+ font-size:0.8em;
131
+ color:#666;
132
+ }
133
+ table.forums .posts
134
+ {
135
+ font-family: 'Lucida Grande', Tahoma, Arial, Helvetica, sans-serif;
136
+ color:#666;
137
+ font-size:0.8em;
138
+ }
139
+
140
+ /* page in general*/
141
+ body {
142
+ margin: 0;
143
+ margin-bottom: 25px;
144
+ padding: 0;
145
+ background-color: #508698;
146
+ font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
147
+ font-size: 13px;
148
+ color: #333;
149
+ }
150
+
151
+ #photo {
152
+ background-repeat: no-repeat;
153
+ background-position: top left;
154
+ height: 100px;
155
+ }
156
+
157
+ body, p, ol, ul, td {
158
+ font-family: verdana, arial, helvetica, sans-serif;
159
+ font-size: 13px;
160
+ }
161
+
162
+ #page {
163
+ float:left;
164
+ width: 650px;
165
+ padding:10px;
166
+ margin: 0px;
167
+ margin-left: auto;
168
+ margin-right: auto;
169
+ }
170
+ #header {
171
+ background-color: white;
172
+ border: 3px solid #aaa;
173
+ border-top: none;
174
+
175
+ }
176
+ #content {
177
+
178
+ background-color: white;
179
+ border: 3px solid #aaa;
180
+ border-top: none;
181
+ padding: 25px;
182
+
183
+ }
184
+
185
+ #sidebar {
186
+ padding :10px;
187
+ float: right;
188
+ width: 250px;
189
+ }
190
+
191
+ #footer {
192
+ clear: both;
193
+ }
194
+ #flash_notice, #flash_error {
195
+ padding: 5px 8px;
196
+ margin: 10px 0;
197
+ }
198
+
199
+ #flash_notice {
200
+ background-color: #CFC;
201
+ border: solid 1px #6C6;
202
+ }
203
+
204
+ #flash_error {
205
+ background-color: #FCC;
206
+ border: solid 1px #C66;
207
+ }
208
+ pre {
209
+ background-color: #eee;
210
+ padding: 10px;
211
+ font-size: 11px;
212
+ }
213
+
214
+ a { color: #000; }
215
+ a:visited { color: #666; }
216
+ a:hover { color: #fff; background-color:#000; }
217
+
218
+ .fieldWithErrors {
219
+ padding: 2px;
220
+ background-color: red;
221
+ display: table;
222
+ }
223
+
224
+ #errorExplanation {
225
+ width: 400px;
226
+ border: 2px solid red;
227
+ padding: 7px;
228
+ padding-bottom: 12px;
229
+ margin-bottom: 20px;
230
+ background-color: #f0f0f0;
231
+ }
232
+
233
+ #errorExplanation h2 {
234
+ text-align: left;
235
+ font-weight: bold;
236
+ padding: 5px 5px 5px 15px;
237
+ font-size: 12px;
238
+ margin: -7px;
239
+ background-color: #c00;
240
+ color: #fff;
241
+ }
242
+
243
+ #errorExplanation p {
244
+ color: #333;
245
+ margin-bottom: 0;
246
+ padding: 5px;
247
+ }
248
+
249
+ #errorExplanation ul li {
250
+ font-size: 12px;
251
+ list-style: square;
252
+ }
@@ -0,0 +1,53 @@
1
+ // Place your application-specific JavaScript functions and classes here
2
+ // This file is automatically included by javascript_include_tag :defaults
3
+ // esto es lo que mueve el fondo
4
+
5
+ $(function(){
6
+ $(".sq-edit").button({icons: {primary: "ui-icon-pencil"},text: true});
7
+ $(".sq-show").button({icons: {primary: "ui-icon-search"},text: true});
8
+ $(".sq-index").button({icons: {primary: "ui-icon-search"},text: true});
9
+ $(".sq-new").button({icons: {primary: "ui-icon-plus"},text: true});
10
+ $(".sq-destroy").button({icons: {primary: "ui-icon-trash"},text: true});
11
+
12
+ //$( "*" ).draggable();
13
+ //$("h2").addClass("ui-widget-header ui-corner-all");
14
+ /*$("*").click(function(){
15
+ $(this).addClass( "border", 100, removeborder );
16
+ });*/
17
+ $("#menu a").button();
18
+ $("#user_nav a").button();
19
+ $( "a", ".demo" ).click(function() { return false; });
20
+
21
+ /* funcion para que los comentarios se actualizen cada tanto */
22
+ if ($('#comments').length > 0) {
23
+ setTimeout(updateComments, 10000);
24
+ }
25
+ /* configuracion del layout */
26
+ var id=0;
27
+ $(document).ready(function () { //arma el layout
28
+ Layout = $('body').layout({
29
+ applyDefaultStyles: true,
30
+ resizable:true,
31
+ north__size:0,
32
+ west__size:0,
33
+ east__size:0
34
+ });
35
+ });
36
+
37
+ });
38
+
39
+ function removeborder(){
40
+ setTimeout(function() {
41
+ $( "*" ).removeClass( "border" );
42
+ }, 3500 );
43
+
44
+ };
45
+ function updateComments() {
46
+ var comment_id = $('#comments').attr('comment_id');
47
+ var after =0 ;
48
+ if($('.post:last').attr('data_time')){
49
+ after =$('.post:last').attr('data_time');
50
+ }
51
+ $.getScript('/comments/'+comment_id+'.js?after='+after);
52
+ setTimeout(updateComments, 10000);
53
+ }