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,5 @@
1
+ <p>Welcome <%= @resource.email %>!</p>
2
+
3
+ <p>You can confirm your account through the link below:</p>
4
+
5
+ <p><%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %></p>
@@ -0,0 +1,8 @@
1
+ <p>Hello <%= @resource.email %>!</p>
2
+
3
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
4
+
5
+ <p><%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %></p>
6
+
7
+ <p>If you didn't request this, please ignore this email.</p>
8
+ <p>Your password won't change until you access the link above and create a new one.</p>
@@ -0,0 +1,7 @@
1
+ <p>Hello <%= @resource.email %>!</p>
2
+
3
+ <p>Your account has been locked due to an excessive amount of unsuccessful sign in attempts.</p>
4
+
5
+ <p>Click the link below to unlock your account:</p>
6
+
7
+ <p><%= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token) %></p>
@@ -0,0 +1,14 @@
1
+ - form_for @forum do |f|
2
+ = f.error_messages
3
+ %p
4
+ = f.label :name
5
+ %br
6
+ = f.text_field :name
7
+
8
+ %p
9
+ = f.label :desc
10
+ %br
11
+ = f.text_field :desc
12
+
13
+ %p
14
+ = f.submit "Submit"
@@ -0,0 +1,8 @@
1
+ - title "Editar Foro"
2
+
3
+ = render :partial => 'form'
4
+
5
+ %p
6
+ = link_to "Show", @forum
7
+ |
8
+ = link_to "View All", forums_path
@@ -0,0 +1,37 @@
1
+ - title "Foros Squeezer"
2
+
3
+ = link_permitted "Nuevo Foro",:new,:forums,new_forum_path
4
+
5
+ %table{:class=>'wide mytable'}
6
+ %tr
7
+ %th
8
+ Foro
9
+ %th
10
+ Ultimo
11
+ %th
12
+ Temas
13
+ - for forum in @forums
14
+ %tr
15
+ %td
16
+ %strong
17
+ =link_to forum.name, forum
18
+ = link_permitted "Editar",:edit,forum,edit_forum_path(forum)
19
+ = link_permitted "Borrar",:destroy,forum,forum
20
+
21
+ %br
22
+ =h forum.desc
23
+ %td{:class=>'greycolumn'}
24
+ -if forum.topics.last
25
+ -if forum.topics.last.comment.posts.last
26
+ =h time_ago_in_words(forum.topics.last.comment.posts.last.created_at)
27
+ por
28
+ = link_to forum.topics.last.comment.posts.last.user.username, forum.topics.last.comment.posts.last.user
29
+ -else
30
+ sin comentarios
31
+ -else
32
+ sin comentarios
33
+
34
+ %td
35
+ = forum.topics.count
36
+
37
+
@@ -0,0 +1,5 @@
1
+ - title "Nuevo Foro"
2
+
3
+ = render :partial => 'form'
4
+
5
+ = link_to "Back to List", forums_path
@@ -0,0 +1,43 @@
1
+ %h3
2
+ =h @forum.name
3
+ =h @forum.desc
4
+ %br
5
+ = link_to "Foro", forums_path
6
+ %br
7
+ = link_permitted "Tema Nuevo",:edit,@forum,{:action=>'new', :controller=>'topics',:id=>@forum.id}
8
+ = javascript_include_tag 'pagination'
9
+ %br
10
+ = will_paginate @topics
11
+ %br
12
+
13
+ %br
14
+ - if @topics.size>0
15
+ %table{:class=>'wide mytable'}
16
+ %tr
17
+ %th
18
+ Titulo
19
+ %th
20
+ Ultimo Post
21
+ %th
22
+ Respuestas
23
+ - for topic in @topics
24
+ %tr
25
+ %td
26
+ %strong
27
+ = link_to topic.title, topic
28
+ = link_permitted "Editar",:edit,topic,edit_forum_path(topic)
29
+ = link_permitted "Editar",:destroy,topic,topic
30
+
31
+
32
+ %td{:class=>'greycolumn'}
33
+ -if topic.comment.posts.last
34
+ = time_ago_in_words(topic.comment.posts.last.created_at)
35
+ por
36
+ = link_to topic.comment.posts.last.user.username, topic.comment.posts.last.user
37
+ -else
38
+ sin comentarios
39
+ %td
40
+ = topic.comment.posts.count - 1
41
+ %p
42
+ = link_permitted "Editar",:edit,@forum,{:action=>'edit', :controller=>'forums'}
43
+ = link_permitted("Borrar",:destroy,@forum,@forum)
@@ -0,0 +1,5 @@
1
+ = site.footer
2
+ %br
3
+ Powered by
4
+ =link_to 'Olvap','http://www.guthub.com/olvap'
5
+
@@ -0,0 +1,10 @@
1
+ %table
2
+ %th
3
+ %td
4
+ %div
5
+ = image_tag site.logo.url
6
+ %td
7
+ %h1
8
+ = link_to_unless_current site.name, root_url+site.home
9
+ %h3
10
+ = site.slogan
@@ -0,0 +1,27 @@
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/login'
10
+ = render :partial => 'layouts/msn'
11
+
12
+ #container
13
+ #flash_notice{:style=>"display:none"}
14
+ = content_tag :h1, yield(:title) if show_title?
15
+
16
+ = yield :north
17
+
18
+ .ui-layout-south
19
+ = yield :south
20
+
21
+ .ui-layout-east
22
+ = render :partial => 'layouts/sidebar'
23
+ = yield :east
24
+
25
+ .ui-layout-west
26
+ = yield :west
27
+
@@ -0,0 +1,15 @@
1
+ %h3 Últimas noticias
2
+ =link_to 'Ver todo',blogs_path
3
+ -latests.each do |blog|
4
+ %div{:class=>'post'}
5
+ %h4
6
+ =blog.title
7
+ %div{:class=>'meta'}
8
+ = blog.user.username
9
+ by
10
+ = blog.created_at
11
+ %p
12
+ =blog.body[0,50]
13
+ %p
14
+ =link_to 'leer mas', blog
15
+
@@ -0,0 +1,9 @@
1
+ <div id="user_nav">
2
+ <% if user_signed_in? %>
3
+ Signed in as <%= current_user.email %>. Not you?
4
+ <%= link_to "Sign out", destroy_user_session_path %>
5
+ <% else %>
6
+ <%= link_to "Sign up", new_user_registration_path %> or
7
+ <%= link_to "Sign in", new_user_session_path %>
8
+ <% end %>
9
+ </div>
@@ -0,0 +1,12 @@
1
+ #user_nav
2
+ - if user_signed_in?
3
+ Usuario:
4
+ = current_user.username
5
+ %br
6
+ No sos vos?
7
+ %br
8
+ = link_to "Salir", destroy_user_session_path
9
+ = link_to "Perfil", edit_user_registration_path
10
+ - else
11
+ = link_to "Registrarte", new_user_registration_path
12
+ = link_to "Conectarte", new_user_session_path
@@ -0,0 +1,6 @@
1
+ #menu
2
+ =link_to 'Administracion',sites_path
3
+
4
+ =link_to 'Blog',blogs_path
5
+ -Page.all.each do |page|
6
+ =link_to page.menu,page
@@ -0,0 +1,12 @@
1
+ -if flash[:notice]
2
+ .ui-widget
3
+ .ui-state-highlight.ui-corner-all{:style=>"margin-top: 20px; padding: 0pt 0.7em;"}
4
+ %p
5
+ .ui-icon.ui-icon-info{:style=>"float: left; margin-right: 0.3em;"}
6
+ =flash[:notice]
7
+ -if flash[:error]
8
+ .ui-widget
9
+ .ui-state-error.ui-corner-all{:style=>"margin-top: 20px; padding: 0pt 0.7em;"}
10
+ %p
11
+ .ui-icon.ui-icon-alert{:style=>"float: left; margin-right: 0.3em;"}
12
+ =flash[:error]
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title><%= yield(:title) || "Untitled" %></title>
5
+ <%= javascript_include_tag :defaults %>
6
+ <%= stylesheet_link_tag "ice/squeezer" %>
7
+ <%= stylesheet_link_tag "ui-lightness/jquery-ui-1.8.5.custom" %>
8
+ <%= csrf_meta_tag %>
9
+ <%= yield(:head) %>
10
+ </head>
11
+ <body>
12
+ <%= render :partial=>"layouts/ice" %>
13
+ </body>
14
+ </html>
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Templates</title>
5
+ <%= stylesheet_link_tag :all %>
6
+ <%= javascript_include_tag :defaults %>
7
+ <%= csrf_meta_tag %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= render :partial=>'layouts/ice' %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,27 @@
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/login'
10
+ = render :partial => 'layouts/msn'
11
+
12
+ #container
13
+ #flash_notice{:style=>"display:none"}
14
+ = content_tag :h1, yield(:title) if show_title?
15
+
16
+ = yield :north
17
+
18
+ .ui-layout-south
19
+ = yield :south
20
+
21
+ .ui-layout-east
22
+ = render :partial => 'layouts/sidebar'
23
+ = yield :east
24
+
25
+ .ui-layout-west
26
+ = yield :west
27
+
@@ -0,0 +1,17 @@
1
+ - form_for @page do |f|
2
+ = f.error_messages
3
+ %p
4
+ = f.label :title
5
+ %br
6
+ = f.text_field :title
7
+ %p
8
+ = f.label :menu
9
+ %br
10
+ = f.text_field :menu
11
+ %p
12
+ = f.label :body
13
+ %br
14
+ = f.text_area(:body,:class=>'wysiwyg')
15
+ = wysiwug
16
+ %p
17
+ = f.submit
@@ -0,0 +1,8 @@
1
+ - title "Edit Page"
2
+
3
+ = render 'form'
4
+
5
+ %p
6
+ = link_to "Show", page_path(@page)
7
+ |
8
+ = link_to "View All", pages_path
@@ -0,0 +1,22 @@
1
+ - title "Pages"
2
+
3
+ %table
4
+ %tr
5
+ %th Title
6
+ %th Menu
7
+ %th Body
8
+ %th User
9
+ - for page in @pages
10
+ %tr
11
+ %td= page.title
12
+ %td= page.menu
13
+ %td= page.body[0,200]
14
+ %td= page.user_id
15
+ %td= link_to 'Show', page
16
+ -if can? :edit, page
17
+ %td= link_to 'Edit', edit_page_path(page)
18
+ %td= link_to 'Destroy', page, :confirm => 'Are you sure?', :method => :delete
19
+
20
+ %p
21
+ -if can? :new, Page
22
+ = link_to "New Page", new_page_path
@@ -0,0 +1,5 @@
1
+ - title "New Page"
2
+
3
+ = render 'form'
4
+
5
+ %p= link_to "Back to List", pages_path
@@ -0,0 +1,12 @@
1
+ - title "Page"
2
+ %p
3
+ = link_to "Edit", edit_page_path(@page)
4
+ |
5
+ = link_to "Destroy", @page, :confirm => 'Are you sure?', :method => :delete
6
+ |
7
+ = link_to "View All", pages_path
8
+
9
+ %h2
10
+ = @page.title
11
+ %p
12
+ = raw @page.body
@@ -0,0 +1,16 @@
1
+ <h2>Change your password</h2>
2
+
3
+ <% form_for resource_name, resource, :url => password_path(resource_name), :html => { :method => :put } do |f| %>
4
+ <%= f.error_messages %>
5
+ <%= f.hidden_field :reset_password_token %>
6
+
7
+ <p><%= f.label :password %></p>
8
+ <p><%= f.password_field :password %></p>
9
+
10
+ <p><%= f.label :password_confirmation %></p>
11
+ <p><%= f.password_field :password_confirmation %></p>
12
+
13
+ <p><%= f.submit "Change my password" %></p>
14
+ <% end %>
15
+
16
+ <%= render :partial => "shared/devise_links" %>
@@ -0,0 +1,12 @@
1
+ <h2>Forgot your password?</h2>
2
+
3
+ <% form_for resource_name, resource, :url => password_path(resource_name) do |f| %>
4
+ <%= f.error_messages %>
5
+
6
+ <p><%= f.label :email %></p>
7
+ <p><%= f.text_field :email %></p>
8
+
9
+ <p><%= f.submit "Send me reset password instructions" %></p>
10
+ <% end %>
11
+
12
+ <%= render :partial => "shared/devise_links" %>
@@ -0,0 +1,25 @@
1
+ <h2>Edit <%= resource_name.to_s.humanize %></h2>
2
+
3
+ <% form_for resource_name, resource, :url => registration_path(resource_name), :html => { :method => :put } do |f| -%>
4
+ <%= f.error_messages %>
5
+
6
+ <p><%= f.label :email %></p>
7
+ <p><%= f.text_field :email %></p>
8
+
9
+ <p><%= f.label :password %> <i>(leave blank if you don't want to change it)</i></p>
10
+ <p><%= f.password_field :password %></p>
11
+
12
+ <p><%= f.label :password_confirmation %></p>
13
+ <p><%= f.password_field :password_confirmation %></p>
14
+
15
+ <p><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i></p>
16
+ <p><%= f.password_field :current_password %></p>
17
+
18
+ <p><%= f.submit "Update" %></p>
19
+ <% end -%>
20
+
21
+ <h3>Cancel my account</h3>
22
+
23
+ <p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.</p>
24
+
25
+ <%= render :partial => "shared/devise_links" %>
@@ -0,0 +1,17 @@
1
+ <h2>Sign up</h2>
2
+
3
+ <% form_for resource_name, resource, :url => registration_path(resource_name) do |f| -%>
4
+ <%= f.error_messages %>
5
+ <p><%= f.label :email %></p>
6
+ <p><%= f.text_field :email %></p>
7
+
8
+ <p><%= f.label :password %></p>
9
+ <p><%= f.password_field :password %></p>
10
+
11
+ <p><%= f.label :password_confirmation %></p>
12
+ <p><%= f.password_field :password_confirmation %></p>
13
+
14
+ <p><%= f.submit "Sign up" %></p>
15
+ <% end -%>
16
+
17
+ <%= render :partial => "shared/devise_links" %>
@@ -0,0 +1,9 @@
1
+ - form_for(@role) do |f|
2
+ = f.error_messages
3
+
4
+ %p
5
+ = f.label :name
6
+ %br
7
+ = f.text_field :name
8
+ %p
9
+ = f.submit 'Create'
@@ -0,0 +1,7 @@
1
+ %h1 Editing role
2
+
3
+ = render :partial => 'form'
4
+
5
+ = link_to 'Show', @role
6
+ |
7
+ = link_to 'Back', roles_path
@@ -0,0 +1,19 @@
1
+ %h2 Listing roles
2
+
3
+ %table{:class=>'mytable'}
4
+ %tr
5
+ %th Name
6
+ %th Descripcion
7
+
8
+ - @roles.each do |role|
9
+ %tr
10
+ %td
11
+ = link_to role.name, role
12
+ %td
13
+ = role.desc
14
+ %td
15
+ = link_to 'Edit', edit_role_path(role)
16
+ %td
17
+ = link_to 'Destroy', role, :confirm => 'Are you sure?', :method => :delete
18
+ %br
19
+ = link_to 'New role', new_role_path
@@ -0,0 +1,5 @@
1
+ %h2 New role
2
+
3
+ = render :partial => 'form'
4
+
5
+ = link_to 'Back', roles_path
@@ -0,0 +1,13 @@
1
+ %p
2
+ %b Name:
3
+ = @role.name
4
+
5
+ %p
6
+ %b Desc:
7
+ = @role.desc
8
+
9
+
10
+
11
+ = link_to 'Edit', edit_role_path(@role)
12
+ |
13
+ = link_to 'Back', roles_path
@@ -0,0 +1,14 @@
1
+ <%#= @user.email%>
2
+
3
+ <% form_for @user, {:url => {:id=>@user.id,:action => "s_roles" }} do |f|%>
4
+ <p>
5
+ <% for role in Role.find(:all) %>
6
+ <div>
7
+ <%= check_box_tag "user[role_ids][]",role.id, @user.roles.include?(role) %>
8
+ <%= role.name %>
9
+ </div>
10
+ <% end %>
11
+ </p>
12
+
13
+ <p><%= f.submit "Update" %></p>
14
+ <% end -%>
@@ -0,0 +1,17 @@
1
+ <h2>Sign in</h2>
2
+
3
+ <% form_for resource_name, resource, :url => session_path(resource_name) do |f| -%>
4
+ <p><%= f.label :email %></p>
5
+ <p><%= f.text_field :email %></p>
6
+
7
+ <p><%= f.label :password %></p>
8
+ <p><%= f.password_field :password %></p>
9
+
10
+ <% if devise_mapping.rememberable? -%>
11
+ <p><%= f.check_box :remember_me %> <%= f.label :remember_me %></p>
12
+ <% end -%>
13
+
14
+ <p><%= f.submit "Sign in" %></p>
15
+ <% end -%>
16
+
17
+ <%= render :partial => "shared/devise_links" %>
@@ -0,0 +1,19 @@
1
+ <%- if controller_name != 'sessions' %>
2
+ <%= link_to t('devise.sessions.link'), new_session_path(resource_name) %><br />
3
+ <% end -%>
4
+
5
+ <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
6
+ <%= link_to t('devise.registrations.link'), new_registration_path(resource_name) %><br />
7
+ <% end -%>
8
+
9
+ <%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
10
+ <%= link_to t('devise.passwords.link'), new_password_path(resource_name) %><br />
11
+ <% end -%>
12
+
13
+ <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
14
+ <%= link_to t('devise.confirmations.link'), new_confirmation_path(resource_name) %><br />
15
+ <% end -%>
16
+
17
+ <%- if devise_mapping.lockable? && controller_name != 'unlocks' %>
18
+ <%= link_to t('devise.unlocks.link'), new_unlock_path(resource_name) %><br />
19
+ <% end -%>
@@ -0,0 +1,42 @@
1
+ %div
2
+ %h2 Informacion del sitio
3
+
4
+ - form_for (@site), :html => { :multipart => true } do |f|
5
+ = f.error_messages
6
+
7
+ %p
8
+ = f.label :'Nombre*'
9
+ %p
10
+ = f.text_field :name
11
+ %p
12
+ = f.label :slogan
13
+ %p
14
+ = f.text_field :slogan
15
+ %p
16
+ = f.label :email
17
+ %p
18
+ = f.text_field :email
19
+ %p
20
+ = f.label :Logo
21
+ %p
22
+ = f.file_field :logo
23
+ %p
24
+ = f.label :Icono
25
+ %p
26
+ = f.file_field :icon
27
+ %p
28
+ = f.label :Mision
29
+ %p
30
+ = f.text_area :mision, :rows => 5
31
+ %p
32
+ = f.label :Footer
33
+ %p
34
+ = f.text_area :footer, :rows => 5
35
+
36
+ %p
37
+ = f.label :'Estilo'
38
+ %p
39
+ = f.select :style, @files
40
+
41
+ %p
42
+ = f.submit 'Update'
@@ -0,0 +1 @@
1
+ = render :partial => 'form'