fullstack-admin 0.1.24 → 0.1.25

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.24
1
+ 0.1.25
@@ -0,0 +1,13 @@
1
+ <%# Link to the "First" page
2
+ - available local variables
3
+ url: url to the first page
4
+ current_page: a page object for the currently displayed page
5
+ num_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <% unless current_page.first? -%>
10
+ <li>
11
+ <%= link_to raw(t 'views.pagination.first'), url, {:remote => remote} %>
12
+ </li>
13
+ <% end -%>
@@ -0,0 +1,8 @@
1
+ <%# Non-link tag that stands for skipped pages...
2
+ - available local variables
3
+ current_page: a page object for the currently displayed page
4
+ num_pages: total number of pages
5
+ per_page: number of items to fetch per page
6
+ remote: data-remote
7
+ -%>
8
+ <li class="page gap disabled"><a href="javascript:void(0)"><%= raw(t 'views.pagination.truncate') %></a></li>
@@ -0,0 +1,13 @@
1
+ <%# Link to the "Last" page
2
+ - available local variables
3
+ url: url to the last page
4
+ current_page: a page object for the currently displayed page
5
+ num_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <% unless current_page.last? -%>
10
+ <li>
11
+ <%= link_to raw(t 'views.pagination.last'), url, {:remote => remote} %>
12
+ </li>
13
+ <% end -%>
@@ -0,0 +1,14 @@
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
+ num_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+
10
+ <% unless current_page.last? -%>
11
+ <li>
12
+ <%= link_to raw(t 'views.pagination.next'), url, :remote => remote, :rel => 'next' %>
13
+ </li>
14
+ <% end -%>
@@ -0,0 +1,12 @@
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
+ num_pages: total number of pages
7
+ per_page: number of items to fetch per page
8
+ remote: data-remote
9
+ -%>
10
+ <li class="page<%= ' active' if page.current? %>">
11
+ <%= link_to page, (page.current? ? 'javascript:void(0)' : url), opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
12
+ </li>
@@ -0,0 +1,27 @@
1
+ <%# The container tag
2
+ - available local variables
3
+ current_page: a page object for the currently displayed page
4
+ num_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
+ -%>
9
+ <%= paginator.render do -%>
10
+ <nav class="pagination">
11
+ <% if num_pages > 0 -%>
12
+ <ul>
13
+ <%= first_page_tag unless current_page.first? %>
14
+ <%= prev_page_tag unless current_page.first? %>
15
+ <% each_page do |page| -%>
16
+ <% if page.left_outer? || page.right_outer? || page.inside_window? -%>
17
+ <%= page_tag page %>
18
+ <% elsif !page.was_truncated? -%>
19
+ <%= gap_tag %>
20
+ <% end -%>
21
+ <% end -%>
22
+ <%= next_page_tag unless current_page.last? %>
23
+ <%= last_page_tag unless current_page.last? %>
24
+ </ul>
25
+ <% end -%>
26
+ </nav>
27
+ <% end -%>
@@ -0,0 +1,13 @@
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
+ num_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <% unless current_page.first? -%>
10
+ <li>
11
+ <%= link_to raw(t 'views.pagination.previous'), url, :remote => remote, :rel => 'prev' %>
12
+ </li>
13
+ <% end -%>
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fullstack-admin"
8
- s.version = "0.1.24"
8
+ s.version = "0.1.25"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mcasimir"]
@@ -989,6 +989,13 @@ Gem::Specification.new do |s|
989
989
  "app/views/admin/base/index.html.erb",
990
990
  "app/views/admin/base/new.html.erb",
991
991
  "app/views/admin/base/update.js.coffee",
992
+ "app/views/kaminari/_first_page.html.erb",
993
+ "app/views/kaminari/_gap.html.erb",
994
+ "app/views/kaminari/_last_page.html.erb",
995
+ "app/views/kaminari/_next_page.html.erb",
996
+ "app/views/kaminari/_page.html.erb",
997
+ "app/views/kaminari/_paginator.html.erb",
998
+ "app/views/kaminari/_prev_page.html.erb",
992
999
  "app/views/layouts/admin.html.erb",
993
1000
  "config/initializers/formtastic_bootstrap_timeish_hack.rb",
994
1001
  "config/locales/devise.en.yml",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fullstack-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.25
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -1247,6 +1247,13 @@ files:
1247
1247
  - app/views/admin/base/index.html.erb
1248
1248
  - app/views/admin/base/new.html.erb
1249
1249
  - app/views/admin/base/update.js.coffee
1250
+ - app/views/kaminari/_first_page.html.erb
1251
+ - app/views/kaminari/_gap.html.erb
1252
+ - app/views/kaminari/_last_page.html.erb
1253
+ - app/views/kaminari/_next_page.html.erb
1254
+ - app/views/kaminari/_page.html.erb
1255
+ - app/views/kaminari/_paginator.html.erb
1256
+ - app/views/kaminari/_prev_page.html.erb
1250
1257
  - app/views/layouts/admin.html.erb
1251
1258
  - config/initializers/formtastic_bootstrap_timeish_hack.rb
1252
1259
  - config/locales/devise.en.yml
@@ -1321,7 +1328,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1321
1328
  version: '0'
1322
1329
  segments:
1323
1330
  - 0
1324
- hash: -3131740963079183107
1331
+ hash: 276906073530825344
1325
1332
  required_rubygems_version: !ruby/object:Gem::Requirement
1326
1333
  none: false
1327
1334
  requirements: