squeezer 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/{lib/app → app}/controllers/application_controller.rb +0 -0
- data/{lib/app → app}/controllers/blogs_controller.rb +0 -0
- data/{lib/app → app}/controllers/comments_controller.rb +0 -0
- data/{lib/app → app}/controllers/pages_controller.rb +0 -0
- data/{lib/app → app}/controllers/posts_controller.rb +0 -0
- data/{lib/app → app}/controllers/roles_controller.rb +0 -0
- data/{lib/app → app}/controllers/sites_controller.rb +0 -0
- data/{lib/app → app}/controllers/users_controller.rb +0 -0
- data/{lib/app → app}/helpers/squeezer_helper.rb +0 -0
- data/{lib/app → app}/models/ability.rb +0 -0
- data/{lib/app → app}/models/blog.rb +0 -0
- data/{lib/app → app}/models/comment.rb +0 -0
- data/{lib/app → app}/models/page.rb +0 -0
- data/{lib/app → app}/models/post.rb +0 -0
- data/{lib/app → app}/models/role.rb +0 -0
- data/{lib/app → app}/models/site.rb +0 -0
- data/{lib/app → app}/models/user.rb +0 -0
- data/{lib/app → app}/views/blogs/_entry.haml +0 -0
- data/{lib/app → app}/views/blogs/_form.html.haml +0 -0
- data/{lib/app → app}/views/blogs/edit.html.haml +0 -0
- data/{lib/app → app}/views/blogs/index.html.haml +0 -0
- data/{lib/app → app}/views/blogs/new.html.haml +0 -0
- data/{lib/app → app}/views/blogs/show.html.haml +0 -0
- data/{lib/app → app}/views/comments/_form.html.haml +0 -0
- data/{lib/app → app}/views/comments/_index.html.haml +0 -0
- data/{lib/app → app}/views/comments/_post.html.haml +0 -0
- data/{lib/app → app}/views/comments/show.js.erb +0 -0
- data/{lib/app → app}/views/layouts/_footer.html.haml +0 -0
- data/{lib/app → app}/views/layouts/_login.haml +0 -0
- data/{lib/app → app}/views/layouts/_menu.html.haml +0 -0
- data/{lib/app → app}/views/layouts/_msn.haml +0 -0
- data/{lib/app → app}/views/layouts/_sidebar.html.haml +0 -0
- data/{lib/app → app}/views/layouts/application.html.erb +0 -0
- data/{lib/app → app}/views/layouts/ice/squeezer/_ice.haml +0 -0
- data/{lib/app → app}/views/layouts/ice/squeezer/ice/_ice.haml +0 -0
- data/{lib/app → app}/views/layouts/ice/squeezer/ice/squeezer/_ice.haml +0 -0
- data/{lib/app → app}/views/layouts/ice/squeezer/ice/squeezer/ice/_ice.haml +0 -0
- data/{lib/app → app}/views/layouts/ice/squeezer/ice/squeezer/ice/squeezer/_ice.haml +0 -0
- data/{lib/app → app}/views/layouts/squeezer/ice/_ice.haml +0 -0
- data/{lib/app → app}/views/layouts/squeezer/ice/squeezer/_ice.haml +0 -0
- data/{lib/app → app}/views/layouts/squeezer/ice/squeezer/ice/_ice.haml +0 -0
- data/{lib/app → app}/views/layouts/squeezer/ice/squeezer/ice/squeezer/_ice.haml +0 -0
- data/{lib/app → app}/views/layouts/squeezer/squeezer.css +0 -0
- data/{lib/app → app}/views/pages/_form.html.haml +0 -0
- data/{lib/app → app}/views/pages/edit.html.haml +0 -0
- data/{lib/app → app}/views/pages/index.html.haml +0 -0
- data/{lib/app → app}/views/pages/new.html.haml +0 -0
- data/{lib/app → app}/views/pages/show.html.haml +0 -0
- data/{lib/app → app}/views/roles/_form.html.haml +0 -0
- data/{lib/app → app}/views/roles/edit.html.haml +0 -0
- data/{lib/app → app}/views/roles/index.html.haml +0 -0
- data/{lib/app → app}/views/roles/new.html.haml +0 -0
- data/{lib/app → app}/views/roles/show.html.haml +0 -0
- data/{lib/app → app}/views/sites/_form.html.haml +0 -0
- data/{lib/app → app}/views/sites/edit.html.haml +0 -0
- data/{lib/app → app}/views/sites/index.html.haml +0 -0
- data/{lib/app → app}/views/sites/new.html.haml +0 -0
- data/{lib/app → app}/views/sites/show.html.haml +0 -0
- data/{lib/app → app}/views/users/index.haml +0 -0
- data/{lib/app → app}/views/users/roles.haml +0 -0
- data/{lib/app → app}/views/users/show.haml +0 -0
- data/lib/generators/squeezer/Gemfile +37 -0
- data/lib/generators/squeezer/README +2 -0
- data/lib/generators/squeezer/USAGE +7 -0
- data/lib/generators/squeezer/squeezer_generator.rb +114 -0
- data/lib/generators/squeezer/templates/Gemfile +37 -0
- data/lib/generators/squeezer/templates/app/controllers/application_controller.rb +25 -0
- data/lib/{blogs_controller.rb → generators/squeezer/templates/app/controllers/blogs_controller.rb} +0 -0
- data/lib/generators/squeezer/templates/app/controllers/comments_controller.rb +37 -0
- data/lib/generators/squeezer/templates/app/controllers/forums_controller.rb +42 -0
- data/lib/generators/squeezer/templates/app/controllers/pages_controller.rb +3 -0
- data/lib/generators/squeezer/templates/app/controllers/posts_controller.rb +23 -0
- data/lib/generators/squeezer/templates/app/controllers/roles_controller.rb +3 -0
- data/lib/generators/squeezer/templates/app/controllers/sites_controller.rb +70 -0
- data/lib/generators/squeezer/templates/app/controllers/topics_controller.rb +46 -0
- data/lib/generators/squeezer/templates/app/controllers/users_controller.rb +22 -0
- data/lib/generators/squeezer/templates/app/helpers/application_helper.rb +66 -0
- data/lib/generators/squeezer/templates/app/helpers/blogs_helper.rb +2 -0
- data/lib/generators/squeezer/templates/app/helpers/layout_helper.rb +71 -0
- data/lib/generators/squeezer/templates/app/helpers/pages_helper.rb +2 -0
- data/lib/generators/squeezer/templates/app/models/ability.rb +17 -0
- data/lib/generators/squeezer/templates/app/models/blog.rb +6 -0
- data/lib/generators/squeezer/templates/app/models/comment.rb +4 -0
- data/lib/generators/squeezer/templates/app/models/forum.rb +5 -0
- data/lib/generators/squeezer/templates/app/models/isntall.rb +9 -0
- data/lib/generators/squeezer/templates/app/models/page.rb +3 -0
- data/lib/generators/squeezer/templates/app/models/post.rb +12 -0
- data/lib/generators/squeezer/templates/app/models/role.rb +3 -0
- data/lib/generators/squeezer/templates/app/models/site.rb +17 -0
- data/lib/generators/squeezer/templates/app/models/topic.rb +6 -0
- data/lib/generators/squeezer/templates/app/models/user.rb +35 -0
- data/lib/generators/squeezer/templates/app/views/blogs/_entry.haml +26 -0
- data/lib/generators/squeezer/templates/app/views/blogs/_form.html.haml +15 -0
- data/lib/generators/squeezer/templates/app/views/blogs/edit.html.haml +8 -0
- data/lib/generators/squeezer/templates/app/views/blogs/index.html.haml +8 -0
- data/lib/generators/squeezer/templates/app/views/blogs/new.html.haml +5 -0
- data/lib/generators/squeezer/templates/app/views/blogs/show.html.haml +4 -0
- data/lib/generators/squeezer/templates/app/views/comments/_form.html.erb +5 -0
- data/lib/generators/squeezer/templates/app/views/comments/_form.html.haml +19 -0
- data/lib/generators/squeezer/templates/app/views/comments/_index.html.haml +26 -0
- data/lib/generators/squeezer/templates/app/views/comments/_post.html.haml +19 -0
- data/lib/generators/squeezer/templates/app/views/comments/_post2.haml +14 -0
- data/lib/generators/squeezer/templates/app/views/comments/edit.haml +7 -0
- data/lib/generators/squeezer/templates/app/views/comments/show.js.erb +1 -0
- data/lib/generators/squeezer/templates/app/views/confirmations/new.html.erb +12 -0
- data/lib/generators/squeezer/templates/app/views/devise/confirmations/new.html.erb +12 -0
- data/lib/generators/squeezer/templates/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
- data/lib/generators/squeezer/templates/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/lib/generators/squeezer/templates/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
- data/lib/generators/squeezer/templates/app/views/devise/passwords/edit.html.erb +16 -0
- data/lib/generators/squeezer/templates/app/views/devise/passwords/new.html.erb +12 -0
- data/lib/generators/squeezer/templates/app/views/devise/registrations/edit.html.erb +28 -0
- data/lib/generators/squeezer/templates/app/views/devise/registrations/new.html.erb +21 -0
- data/lib/generators/squeezer/templates/app/views/devise/sessions/new.html.erb +17 -0
- data/lib/generators/squeezer/templates/app/views/devise/shared/_links.erb +19 -0
- data/lib/generators/squeezer/templates/app/views/devise/unlocks/new.html.erb +12 -0
- data/lib/generators/squeezer/templates/app/views/devise_mailer/confirmation_instructions.html.erb +5 -0
- data/lib/generators/squeezer/templates/app/views/devise_mailer/reset_password_instructions.html.erb +8 -0
- data/lib/generators/squeezer/templates/app/views/devise_mailer/unlock_instructions.html.erb +7 -0
- data/lib/generators/squeezer/templates/app/views/forums/_form.html.haml +14 -0
- data/lib/generators/squeezer/templates/app/views/forums/edit.html.haml +8 -0
- data/lib/generators/squeezer/templates/app/views/forums/index.html.haml +37 -0
- data/lib/generators/squeezer/templates/app/views/forums/new.html.haml +5 -0
- data/lib/generators/squeezer/templates/app/views/forums/show.html.haml +43 -0
- data/lib/generators/squeezer/templates/app/views/layouts/_footer.html.haml +5 -0
- data/lib/generators/squeezer/templates/app/views/layouts/_header.html.haml +10 -0
- data/lib/generators/squeezer/templates/app/views/layouts/_ice.haml +27 -0
- data/lib/generators/squeezer/templates/app/views/layouts/_latest.haml +15 -0
- data/lib/generators/squeezer/templates/app/views/layouts/_login.html.erb +9 -0
- data/lib/generators/squeezer/templates/app/views/layouts/_login.html.haml +12 -0
- data/lib/generators/squeezer/templates/app/views/layouts/_menu.html.haml +6 -0
- data/lib/generators/squeezer/templates/app/views/layouts/_msn.haml +12 -0
- data/lib/generators/squeezer/templates/app/views/layouts/_sidebar.html.haml +1 -0
- data/lib/generators/squeezer/templates/app/views/layouts/application.html.erb +14 -0
- data/lib/generators/squeezer/templates/app/views/layouts/application.html.haml +14 -0
- data/lib/generators/squeezer/templates/app/views/layouts/ice/squeezer/_ice.haml +27 -0
- data/lib/generators/squeezer/templates/app/views/pages/_form.html.haml +17 -0
- data/lib/generators/squeezer/templates/app/views/pages/edit.html.haml +8 -0
- data/lib/generators/squeezer/templates/app/views/pages/index.html.haml +22 -0
- data/lib/generators/squeezer/templates/app/views/pages/new.html.haml +5 -0
- data/lib/generators/squeezer/templates/app/views/pages/show.html.haml +12 -0
- data/lib/generators/squeezer/templates/app/views/passwords/edit.html.erb +16 -0
- data/lib/generators/squeezer/templates/app/views/passwords/new.html.erb +12 -0
- data/lib/generators/squeezer/templates/app/views/registrations/edit.html.erb +25 -0
- data/lib/generators/squeezer/templates/app/views/registrations/new.html.erb +17 -0
- data/lib/generators/squeezer/templates/app/views/roles/_form.html.haml +9 -0
- data/lib/generators/squeezer/templates/app/views/roles/edit.html.haml +7 -0
- data/lib/generators/squeezer/templates/app/views/roles/index.html.haml +19 -0
- data/lib/generators/squeezer/templates/app/views/roles/new.html.haml +5 -0
- data/lib/generators/squeezer/templates/app/views/roles/show.html.haml +13 -0
- data/lib/generators/squeezer/templates/app/views/roles/user.html.erb +14 -0
- data/lib/generators/squeezer/templates/app/views/sessions/new.html.erb +17 -0
- data/lib/generators/squeezer/templates/app/views/shared/_devise_links.erb +19 -0
- data/lib/generators/squeezer/templates/app/views/sites/_form.html.haml +42 -0
- data/lib/generators/squeezer/templates/app/views/sites/edit.html.haml +1 -0
- data/lib/generators/squeezer/templates/app/views/sites/index.html.haml +165 -0
- data/lib/generators/squeezer/templates/app/views/sites/new.html.haml +1 -0
- data/lib/generators/squeezer/templates/app/views/sites/show.html.haml +18 -0
- data/lib/generators/squeezer/templates/app/views/topics/_form.html.haml +16 -0
- data/lib/generators/squeezer/templates/app/views/topics/edit.html.erb +8 -0
- data/lib/generators/squeezer/templates/app/views/topics/index.html.haml +23 -0
- data/lib/generators/squeezer/templates/app/views/topics/new.html.erb +5 -0
- data/lib/generators/squeezer/templates/app/views/topics/show.html.haml +16 -0
- data/lib/generators/squeezer/templates/app/views/unlocks/new.html.erb +12 -0
- data/lib/generators/squeezer/templates/app/views/users/index.haml +5 -0
- data/lib/generators/squeezer/templates/app/views/users/roles.haml +14 -0
- data/lib/generators/squeezer/templates/config/devise.rb +142 -0
- data/lib/generators/squeezer/templates/db/migrate/add_username_user.rb +11 -0
- data/lib/generators/squeezer/templates/db/migrate/blogs.rb +15 -0
- data/lib/generators/squeezer/templates/db/migrate/comments.rb +15 -0
- data/lib/generators/squeezer/templates/db/migrate/create_blogs.rb +15 -0
- data/lib/generators/squeezer/templates/db/migrate/create_comments.rb +15 -0
- data/lib/generators/squeezer/templates/db/migrate/create_pages.rb +16 -0
- data/lib/generators/squeezer/templates/db/migrate/create_posts.rb +16 -0
- data/lib/generators/squeezer/templates/db/migrate/create_roles.rb +13 -0
- data/lib/generators/squeezer/templates/db/migrate/create_roles_users.rb +15 -0
- data/lib/generators/squeezer/templates/db/migrate/create_sites.rb +26 -0
- data/lib/generators/squeezer/templates/db/migrate/data.rb +7 -0
- data/lib/generators/squeezer/templates/db/migrate/page_data.rb +10 -0
- data/lib/generators/squeezer/templates/db/migrate/pages.rb +16 -0
- data/lib/generators/squeezer/templates/db/migrate/posts.rb +16 -0
- data/lib/generators/squeezer/templates/db/migrate/roles.rb +13 -0
- data/lib/generators/squeezer/templates/db/migrate/roles_users.rb +15 -0
- data/lib/generators/squeezer/templates/db/migrate/sites.rb +26 -0
- data/lib/generators/squeezer/templates/db/migrate/squeez_data.rb +7 -0
- data/lib/generators/squeezer/templates/doc/clases.png +0 -0
- data/lib/generators/squeezer/templates/ice/squeezer/ice/_ice.haml +6 -0
- data/lib/generators/squeezer/templates/ice/squeezer/ice/squeezer/_ice.haml +28 -0
- data/lib/generators/squeezer/templates/ice/squeezer/ice/squeezer/ice/_ice.haml +6 -0
- data/lib/generators/squeezer/templates/ice/squeezer/ice/squeezer/ice/squeezer/_ice.haml +7 -0
- data/lib/generators/squeezer/templates/ice/squeezer/squeezer.css +252 -0
- data/lib/generators/squeezer/templates/public/javascripts/application.js +53 -0
- data/lib/generators/squeezer/templates/public/javascripts/jquery-ui.js +11437 -0
- data/lib/generators/squeezer/templates/public/javascripts/jquery-ui.min.js +401 -0
- data/lib/generators/squeezer/templates/public/javascripts/jquery.cleditor.min.js +31 -0
- data/lib/generators/squeezer/templates/public/javascripts/jquery.js +6883 -0
- data/lib/generators/squeezer/templates/public/javascripts/jquery.layout.min-1.2.0.js +80 -0
- data/lib/generators/squeezer/templates/public/javascripts/jquery.min.js +166 -0
- data/lib/generators/squeezer/templates/public/javascripts/rails.js +146 -0
- data/lib/generators/squeezer/templates/public/stylesheets/CLEditor1_3_0/images/buttons.gif +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/CLEditor1_3_0/images/toolbar.gif +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/CLEditor1_3_0/jquery.cleditor.css +24 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ice/lagota/ice/_ice.haml +6 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ice/lagota/lagota.css +284 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ice/squeezer/ice/_ice.haml +6 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ice/squeezer/ice/squeezer/_ice.haml +27 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ice/squeezer/ice/squeezer/ice/_ice.haml +6 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ice/squeezer/ice/squeezer/ice/squeezer/_ice.haml +7 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ice/squeezer/squeezer.css +249 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/lib/generators/squeezer/templates/public/stylesheets/ui-lightness/jquery-ui-1.8.5.custom.css +572 -0
- data/lib/squeezer.rb +1 -1
- data/pkg/squeezer-0.1.3.gem +0 -0
- data/pkg/squeezer-0.1.4.gem +0 -0
- data/squeezer.gemspec +227 -65
- metadata +229 -67
- data/lib/squeezer/engine.rb +0 -0
data/lib/generators/squeezer/templates/app/views/devise_mailer/reset_password_instructions.html.erb
ADDED
@@ -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,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,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,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,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 @@
|
|
1
|
+
= yield :sidebar
|
@@ -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,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,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,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,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,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'
|