ouvrages_scaffold 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,7 @@
1
1
  - content_for :title, t('.title')
2
2
 
3
+ - @<%= plural_resource_name %> = @<%= plural_resource_name %>.paginate(page: params[:page], per_page: 50)
4
+
3
5
  .row
4
6
  .span12
5
7
  - if @<%= plural_resource_name %>.blank?
@@ -23,4 +25,6 @@
23
25
  = link_to t('.edit'), edit_<%= singular_controller_routing_path %>_path(<%= resource_name %>), :class => 'btn btn-mini' if can? :update, <%= resource_name %>
24
26
  = link_to t('.destroy'), <%= singular_controller_routing_path %>_path(<%= resource_name %>), :method => :delete, :confirm => t('.confirm'), :class => 'btn btn-mini btn-danger' if can? :destroy, <%= resource_name %>
25
27
 
28
+ = will_paginate @<%= plural_resource_name %>, renderer: BootstrapPagination::Rails
29
+
26
30
  = link_to t('.new'), new_<%= singular_controller_routing_path %>_path, :class => 'btn btn-primary' if can? :create, <%= model_name %>
@@ -1,3 +1,3 @@
1
1
  module OuvragesScaffold
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -1,4 +1,7 @@
1
1
  require "ouvrages_scaffold/version"
2
2
 
3
+ require 'will_paginate-bootstrap'
4
+ require 'will-paginate-i18n'
5
+
3
6
  module OuvragesScaffold
4
7
  end
@@ -19,6 +19,8 @@ Gem::Specification.new do |gem|
19
19
 
20
20
  gem.add_dependency 'bootstrap_forms'
21
21
  gem.add_dependency 'httparty'
22
+ gem.add_dependency 'will_paginate-bootstrap'
23
+ gem.add_dependency 'will-paginate-i18n'
22
24
  end
23
25
 
24
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ouvrages_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-18 00:00:00.000000000 Z
12
+ date: 2013-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bootstrap_forms
@@ -43,6 +43,38 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: will_paginate-bootstrap
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: will-paginate-i18n
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
46
78
  description: Rails scaffold in HAML, using cancan and bootstrap
47
79
  email:
48
80
  - contact@ouvrages-web.fr