wice_grid 3.2.0.pre3 → 3.2.0.pre4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = WiceGrid
2
2
 
3
- Version:: 3.2.0.pre1
3
+ Version:: 3.2.0.pre4
4
4
  Author:: Yuri Leikind
5
5
  Sources:: https://github.com/leikind/wice_grid/
6
6
  Examples online:: http://grid.leikind.org
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.0.pre3
1
+ 3.2.0.pre4
@@ -0,0 +1 @@
1
+ <li class="disabled"><a href="#">...</a></li>
@@ -0,0 +1 @@
1
+ <li><%= link_to_unless current_page.last?, ::Wice::NlMessage['next_label'], url, :rel => 'next', :remote => remote %></li>
@@ -0,0 +1 @@
1
+ <li <%if page.current?%>class="active"<%end%>><%= link_to page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %></li>
@@ -0,0 +1,19 @@
1
+ <%= paginator.render do %>
2
+ <div class="pagination">
3
+ <ul>
4
+ <% unless current_page.first? %>
5
+ <%= prev_page_tag %>
6
+ <% end %>
7
+ <% each_page do |page| %>
8
+ <% if page.left_outer? || page.right_outer? || page.inside_window? %>
9
+ <%= page_tag page %>
10
+ <% elsif !page.was_truncated? %>
11
+ <%= gap_tag %>
12
+ <% end %>
13
+ <% end %>
14
+ <% unless current_page.last? %>
15
+ <%= next_page_tag %>
16
+ <% end %>
17
+ </ul>
18
+ </div>
19
+ <% end %>
@@ -0,0 +1 @@
1
+ <li><%= link_to_unless current_page.first?, ::Wice::NlMessage['previous_label'], url, :rel => 'prev', :remote => remote %></li>
data/wice_grid.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "wice_grid"
8
- s.version = "3.2.0.pre3"
8
+ s.version = "3.2.0.pre4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Yuri Leikind"]
12
- s.date = "2012-08-14"
12
+ s.date = "2012-08-23"
13
13
  s.description = "A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters "
14
14
  s.email = "yuri.leikind@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -24,11 +24,11 @@ Gem::Specification.new do |s|
24
24
  "Rakefile",
25
25
  "SAVED_QUERIES_HOWTO.rdoc",
26
26
  "VERSION",
27
- "app/views/kaminari/wice_grid/_gap.html.haml",
28
- "app/views/kaminari/wice_grid/_next_page.html.haml",
29
- "app/views/kaminari/wice_grid/_page.html.haml",
30
- "app/views/kaminari/wice_grid/_paginator.html.haml",
31
- "app/views/kaminari/wice_grid/_prev_page.html.haml",
27
+ "app/views/kaminari/wice_grid/_gap.html.erb",
28
+ "app/views/kaminari/wice_grid/_next_page.html.erb",
29
+ "app/views/kaminari/wice_grid/_page.html.erb",
30
+ "app/views/kaminari/wice_grid/_paginator.html.erb",
31
+ "app/views/kaminari/wice_grid/_prev_page.html.erb",
32
32
  "lib/generators/wice_grid/add_migration_for_serialized_queries_generator.rb",
33
33
  "lib/generators/wice_grid/install_generator.rb",
34
34
  "lib/generators/wice_grid/templates/create_wice_grid_serialized_queries.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wice_grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0.pre3
4
+ version: 3.2.0.pre4
5
5
  prerelease: 6
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: 2012-08-14 00:00:00.000000000 Z
12
+ date: 2012-08-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: kaminari
@@ -43,11 +43,11 @@ files:
43
43
  - Rakefile
44
44
  - SAVED_QUERIES_HOWTO.rdoc
45
45
  - VERSION
46
- - app/views/kaminari/wice_grid/_gap.html.haml
47
- - app/views/kaminari/wice_grid/_next_page.html.haml
48
- - app/views/kaminari/wice_grid/_page.html.haml
49
- - app/views/kaminari/wice_grid/_paginator.html.haml
50
- - app/views/kaminari/wice_grid/_prev_page.html.haml
46
+ - app/views/kaminari/wice_grid/_gap.html.erb
47
+ - app/views/kaminari/wice_grid/_next_page.html.erb
48
+ - app/views/kaminari/wice_grid/_page.html.erb
49
+ - app/views/kaminari/wice_grid/_paginator.html.erb
50
+ - app/views/kaminari/wice_grid/_prev_page.html.erb
51
51
  - lib/generators/wice_grid/add_migration_for_serialized_queries_generator.rb
52
52
  - lib/generators/wice_grid/install_generator.rb
53
53
  - lib/generators/wice_grid/templates/create_wice_grid_serialized_queries.rb
@@ -1,2 +0,0 @@
1
- %li.disabled
2
- %a{:href=> '#'} ...
@@ -1,9 +0,0 @@
1
- -# Link to the "Next" page
2
- -# available local variables
3
- -# url: url to the next page
4
- -# current_page: a page object for the currently displayed page
5
- -# total_pages: total number of pages
6
- -# per_page: number of items to fetch per page
7
- -# remote: data-remote
8
- %li
9
- = link_to_unless current_page.last?, ::Wice::NlMessage['next_label'], url, :rel => 'next', :remote => remote
@@ -1,10 +0,0 @@
1
- -# Link showing page number
2
- -# available local variables
3
- -# page: a page object for "this" page
4
- -# url: url to this page
5
- -# current_page: a page object for the currently displayed page
6
- -# total_pages: total number of pages
7
- -# per_page: number of items to fetch per page
8
- -# remote: data-remote
9
- %li{:class => page.current? ? 'active' : nil}
10
- = link_to page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil}
@@ -1,17 +0,0 @@
1
- -# The container tag
2
- -# available local variables
3
- -# current_page: a page object for the currently displayed page
4
- -# total_pages: total number of pages
5
- -# per_page: number of items to fetch per page
6
- -# remote: data-remote
7
- -# paginator: the paginator that renders the pagination tags inside
8
- = paginator.render do
9
- .pagination
10
- %ul
11
- = prev_page_tag unless current_page.first?
12
- - each_page do |page|
13
- - if page.left_outer? || page.right_outer? || page.inside_window?
14
- = page_tag page
15
- - elsif !page.was_truncated?
16
- = gap_tag
17
- = next_page_tag unless current_page.last?
@@ -1,9 +0,0 @@
1
- -# Link to the "Previous" page
2
- -# available local variables
3
- -# url: url to the previous page
4
- -# current_page: a page object for the currently displayed page
5
- -# total_pages: total number of pages
6
- -# per_page: number of items to fetch per page
7
- -# remote: data-remote
8
- %li
9
- = link_to_unless current_page.first?, ::Wice::NlMessage['previous_label'], url, :rel => 'prev', :remote => remote