squeezer 0.1.7 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/views/blogs/_form.html.haml +9 -2
- data/app/views/blogs/index.html.haml +0 -2
- data/app/views/pages/_form.html.haml +8 -1
- data/app/views/roles/_form.html.haml +14 -8
- data/app/views/roles/edit.html.haml +2 -2
- data/app/views/roles/index.html.haml +18 -18
- data/app/views/roles/new.html.haml +2 -2
- data/app/views/sites/_form.html.haml +9 -2
- data/app/views/users/index.haml +13 -5
- data/app/views/users/roles.haml +15 -14
- data/lib/squeezer.rb +3 -2
- data/squeezer.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.11
|
@@ -1,5 +1,12 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
= form_for @blog do |f|
|
2
|
+
.ui-widget.ui-widget-content
|
3
|
+
- if @blog.errors.any?
|
4
|
+
#error_explanation
|
5
|
+
%h2="#{pluralize(@blog.errors.count, 'error')} prohibited this entry from being saved:"
|
6
|
+
|
7
|
+
%ul
|
8
|
+
- @blog.errors.full_messages.each do |msg|
|
9
|
+
%li= msg
|
3
10
|
%p
|
4
11
|
= f.label :title
|
5
12
|
%br
|
@@ -1,5 +1,12 @@
|
|
1
1
|
- form_for @page do |f|
|
2
|
-
|
2
|
+
.ui-widget.ui-widget-content
|
3
|
+
- if @page.errors.any?
|
4
|
+
#error_explanation
|
5
|
+
%h2="#{pluralize(@page.errors.count, 'error')} prohibited this entry from being saved:"
|
6
|
+
|
7
|
+
%ul
|
8
|
+
- @page.errors.full_messages.each do |msg|
|
9
|
+
%li= msg
|
3
10
|
%p
|
4
11
|
= f.label :title
|
5
12
|
%br
|
@@ -1,9 +1,15 @@
|
|
1
1
|
- form_for(@role) do |f|
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
2
|
+
.ui-widget-content
|
3
|
+
- if @role.errors.any?
|
4
|
+
#error_explanation
|
5
|
+
%h2="#{pluralize(@role.errors.count, 'error')} prohibited this entry from being saved:"
|
6
|
+
|
7
|
+
%ul
|
8
|
+
- @role.errors.full_messages.each do |msg|
|
9
|
+
%li= msg
|
10
|
+
%p
|
11
|
+
= f.label :name
|
12
|
+
%br
|
13
|
+
= f.text_field :name
|
14
|
+
%p
|
15
|
+
= f.submit 'Create'
|
@@ -1,19 +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|
|
1
|
+
%h2.ui-widget-header Listing roles
|
2
|
+
.ui-widget-content
|
3
|
+
%table{:class=>'mytable'}
|
9
4
|
%tr
|
10
|
-
%
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
%
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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
|
@@ -2,7 +2,14 @@
|
|
2
2
|
%h2 Informacion del sitio
|
3
3
|
|
4
4
|
- form_for (@site), :html => { :multipart => true } do |f|
|
5
|
-
|
5
|
+
.ui-widget.ui-widget-content
|
6
|
+
- if @site.errors.any?
|
7
|
+
#error_explanation
|
8
|
+
%h2="#{pluralize(@site.errors.count, 'error')} prohibited this entry from being saved:"
|
9
|
+
|
10
|
+
%ul
|
11
|
+
- @site.errors.full_messages.each do |msg|
|
12
|
+
%li= msg
|
6
13
|
|
7
14
|
%p
|
8
15
|
= f.label :'Nombre*'
|
@@ -39,4 +46,4 @@
|
|
39
46
|
= f.select :style, @files
|
40
47
|
|
41
48
|
%p
|
42
|
-
= f.submit 'Update'
|
49
|
+
= f.submit 'Update'
|
data/app/views/users/index.haml
CHANGED
@@ -1,5 +1,13 @@
|
|
1
|
-
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
%h2.ui-widget-header Users
|
2
|
+
.ui-widget-content
|
3
|
+
%table
|
4
|
+
%tr
|
5
|
+
%th Nombre
|
6
|
+
%th Permisos
|
7
|
+
- for user in @users
|
8
|
+
%tr
|
9
|
+
%td
|
10
|
+
%b=user.username
|
11
|
+
%td
|
12
|
+
-if can? :roles, user
|
13
|
+
=link_to "Permisos", {:action=>:roles,:id=>user.id}
|
data/app/views/users/roles.haml
CHANGED
@@ -1,14 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
%
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
.ui-widget-content
|
2
|
+
%b
|
3
|
+
usuario:
|
4
|
+
=@user.username
|
5
|
+
%br
|
6
|
+
|
7
|
+
%h3 Permisos
|
8
|
+
- form_for @user, do |f|
|
9
|
+
%p
|
10
|
+
- for role in Role.find(:all)
|
11
|
+
%div
|
12
|
+
= check_box_tag "user[role_ids][]",role.id, @user.roles.include?(role)
|
13
|
+
= role.name
|
14
|
+
|
15
|
+
%p= f.submit "Update"
|
data/lib/squeezer.rb
CHANGED
data/squeezer.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{squeezer}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.11"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Oldani Pablo"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-02-07}
|
13
13
|
s.description = %q{an appliaction ready to run}
|
14
14
|
s.email = %q{magicche@hotmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 11
|
9
|
+
version: 0.1.11
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Oldani Pablo
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-02-07 00:00:00 -03:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -483,7 +483,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
483
483
|
requirements:
|
484
484
|
- - ">="
|
485
485
|
- !ruby/object:Gem::Version
|
486
|
-
hash:
|
486
|
+
hash: 494515437
|
487
487
|
segments:
|
488
488
|
- 0
|
489
489
|
version: "0"
|