contour 1.1.1 → 1.1.2.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/CHANGELOG.rdoc +11 -0
  2. data/app/assets/images/twitter-bootstrap/v2.2.1/glyphicons-halflings-white.png +0 -0
  3. data/app/assets/images/twitter-bootstrap/v2.2.1/glyphicons-halflings.png +0 -0
  4. data/app/assets/javascripts/contour.js +3 -3
  5. data/app/assets/javascripts/external/{exporting-2.1.9.src.js → exporting-2.3.3.src.js} +736 -758
  6. data/app/assets/javascripts/external/highcharts-2.3.3.src.js +15111 -0
  7. data/app/assets/javascripts/twitter-bootstrap/{v2.1.1 → v2.2.1}/bootstrap.js +105 -107
  8. data/app/assets/stylesheets/bootstrap-base-overrides.css +6 -6
  9. data/app/assets/stylesheets/contour.css +2 -2
  10. data/app/assets/stylesheets/twitter-bootstrap/{v2.1.1 → v2.2.1}/bootstrap-responsive.css +33 -3
  11. data/app/assets/stylesheets/twitter-bootstrap/{v2.1.1 → v2.2.1}/bootstrap.css +377 -258
  12. data/app/views/contour/layouts/_per_page.html.erb +1 -1
  13. data/app/views/kaminari/contour-large/_first_page.html.erb +11 -0
  14. data/app/views/kaminari/contour-large/_gap.html.erb +8 -0
  15. data/app/views/kaminari/contour-large/_last_page.html.erb +11 -0
  16. data/app/views/kaminari/contour-large/_next_page.html.erb +11 -0
  17. data/app/views/kaminari/contour-large/_page.html.erb +12 -0
  18. data/app/views/kaminari/contour-large/_paginator.html.erb +25 -0
  19. data/app/views/kaminari/contour-large/_prev_page.html.erb +11 -0
  20. data/app/views/kaminari/contour-mini/_first_page.html.erb +11 -0
  21. data/app/views/kaminari/contour-mini/_gap.html.erb +8 -0
  22. data/app/views/kaminari/contour-mini/_last_page.html.erb +11 -0
  23. data/app/views/kaminari/contour-mini/_next_page.html.erb +11 -0
  24. data/app/views/kaminari/contour-mini/_page.html.erb +12 -0
  25. data/app/views/kaminari/contour-mini/_paginator.html.erb +25 -0
  26. data/app/views/kaminari/contour-mini/_prev_page.html.erb +11 -0
  27. data/app/views/kaminari/contour-small/_first_page.html.erb +11 -0
  28. data/app/views/kaminari/contour-small/_gap.html.erb +8 -0
  29. data/app/views/kaminari/contour-small/_last_page.html.erb +11 -0
  30. data/app/views/kaminari/contour-small/_next_page.html.erb +11 -0
  31. data/app/views/kaminari/contour-small/_page.html.erb +12 -0
  32. data/app/views/kaminari/contour-small/_paginator.html.erb +25 -0
  33. data/app/views/kaminari/contour-small/_prev_page.html.erb +11 -0
  34. data/app/views/kaminari/contour/_first_page.html.erb +11 -0
  35. data/app/views/kaminari/contour/_gap.html.erb +8 -0
  36. data/app/views/kaminari/contour/_last_page.html.erb +11 -0
  37. data/app/views/kaminari/contour/_next_page.html.erb +11 -0
  38. data/app/views/kaminari/contour/_page.html.erb +12 -0
  39. data/app/views/kaminari/contour/_paginator.html.erb +25 -0
  40. data/app/views/kaminari/contour/_prev_page.html.erb +11 -0
  41. data/contour.gemspec +4 -4
  42. data/lib/contour/version.rb +2 -2
  43. data/lib/generators/contour/scaffold/templates/_paginate.html.erb +1 -1
  44. data/test/dummy/db/test.sqlite3 +0 -0
  45. data/test/dummy/log/test.log +714 -0
  46. metadata +48 -18
  47. data/app/assets/javascripts/external/highcharts-2.1.9.src.js +0 -11454
@@ -1,4 +1,4 @@
1
- <div class="pagination pagination-right">
1
+ <div class="pagination pagination-right <%= "pagination-#{pagination_size}" if defined?(pagination_size) and ['large', 'small', 'mini'].include?(pagination_size) %>">
2
2
  <ul>
3
3
  <li class="disabled"><a href="#">Per Page</a></li>
4
4
  <li class="active per_page"><%= link_to (defined?(per_page) and per_page ? per_page : 20), "#" %></li>
@@ -0,0 +1,11 @@
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
+ <li class="first">
10
+ <%= link_to raw(t 'views.pagination.first'), url, :remote => remote %>
11
+ </li>
@@ -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"><%= link_to raw(t 'views.pagination.truncate'), '#' %></li>
@@ -0,0 +1,11 @@
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
+ <li class="last">
10
+ <%= link_to raw(t 'views.pagination.last'), url, {:remote => remote} %>
11
+ </li>
@@ -0,0 +1,11 @@
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
+ <li class="next">
10
+ <%= link_to raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote %>
11
+ </li>
@@ -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, url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
12
+ </li>
@@ -0,0 +1,25 @@
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 pagination-centered pagination-large">
11
+ <ul>
12
+ <%= first_page_tag %> <%# unless current_page.first? %>
13
+ <%= prev_page_tag %> <%# unless current_page.first? %>
14
+ <% each_page do |page| -%>
15
+ <% if page.left_outer? || page.right_outer? || page.inside_window? -%>
16
+ <%= page_tag page %>
17
+ <% elsif !page.was_truncated? -%>
18
+ <%= gap_tag %>
19
+ <% end -%>
20
+ <% end -%>
21
+ <%= next_page_tag %> <%# unless current_page.last? %>
22
+ <%= last_page_tag %> <%# unless current_page.last? %>
23
+ </ul>
24
+ </nav>
25
+ <% end -%>
@@ -0,0 +1,11 @@
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
+ <li class="prev">
10
+ <%= link_to raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote %>
11
+ </li>
@@ -0,0 +1,11 @@
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
+ <li class="first">
10
+ <%= link_to raw(t 'views.pagination.first'), url, :remote => remote %>
11
+ </li>
@@ -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"><%= link_to raw(t 'views.pagination.truncate'), '#' %></li>
@@ -0,0 +1,11 @@
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
+ <li class="last">
10
+ <%= link_to raw(t 'views.pagination.last'), url, {:remote => remote} %>
11
+ </li>
@@ -0,0 +1,11 @@
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
+ <li class="next">
10
+ <%= link_to raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote %>
11
+ </li>
@@ -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, url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
12
+ </li>
@@ -0,0 +1,25 @@
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 pagination-centered pagination-mini">
11
+ <ul>
12
+ <%= first_page_tag %> <%# unless current_page.first? %>
13
+ <%= prev_page_tag %> <%# unless current_page.first? %>
14
+ <% each_page do |page| -%>
15
+ <% if page.left_outer? || page.right_outer? || page.inside_window? -%>
16
+ <%= page_tag page %>
17
+ <% elsif !page.was_truncated? -%>
18
+ <%= gap_tag %>
19
+ <% end -%>
20
+ <% end -%>
21
+ <%= next_page_tag %> <%# unless current_page.last? %>
22
+ <%= last_page_tag %> <%# unless current_page.last? %>
23
+ </ul>
24
+ </nav>
25
+ <% end -%>
@@ -0,0 +1,11 @@
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
+ <li class="prev">
10
+ <%= link_to raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote %>
11
+ </li>
@@ -0,0 +1,11 @@
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
+ <li class="first">
10
+ <%= link_to raw(t 'views.pagination.first'), url, :remote => remote %>
11
+ </li>
@@ -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"><%= link_to raw(t 'views.pagination.truncate'), '#' %></li>
@@ -0,0 +1,11 @@
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
+ <li class="last">
10
+ <%= link_to raw(t 'views.pagination.last'), url, {:remote => remote} %>
11
+ </li>
@@ -0,0 +1,11 @@
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
+ <li class="next">
10
+ <%= link_to raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote %>
11
+ </li>
@@ -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, url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
12
+ </li>
@@ -0,0 +1,25 @@
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 pagination-centered pagination-small">
11
+ <ul>
12
+ <%= first_page_tag %> <%# unless current_page.first? %>
13
+ <%= prev_page_tag %> <%# unless current_page.first? %>
14
+ <% each_page do |page| -%>
15
+ <% if page.left_outer? || page.right_outer? || page.inside_window? -%>
16
+ <%= page_tag page %>
17
+ <% elsif !page.was_truncated? -%>
18
+ <%= gap_tag %>
19
+ <% end -%>
20
+ <% end -%>
21
+ <%= next_page_tag %> <%# unless current_page.last? %>
22
+ <%= last_page_tag %> <%# unless current_page.last? %>
23
+ </ul>
24
+ </nav>
25
+ <% end -%>
@@ -0,0 +1,11 @@
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
+ <li class="prev">
10
+ <%= link_to raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote %>
11
+ </li>
@@ -0,0 +1,11 @@
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
+ <li class="first">
10
+ <%= link_to raw(t 'views.pagination.first'), url, :remote => remote %>
11
+ </li>
@@ -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"><%= link_to raw(t 'views.pagination.truncate'), '#' %></li>
@@ -0,0 +1,11 @@
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
+ <li class="last">
10
+ <%= link_to raw(t 'views.pagination.last'), url, {:remote => remote} %>
11
+ </li>
@@ -0,0 +1,11 @@
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
+ <li class="next">
10
+ <%= link_to raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote %>
11
+ </li>
@@ -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, url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
12
+ </li>
@@ -0,0 +1,25 @@
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 pagination-centered">
11
+ <ul>
12
+ <%= first_page_tag %> <%# unless current_page.first? %>
13
+ <%= prev_page_tag %> <%# unless current_page.first? %>
14
+ <% each_page do |page| -%>
15
+ <% if page.left_outer? || page.right_outer? || page.inside_window? -%>
16
+ <%= page_tag page %>
17
+ <% elsif !page.was_truncated? -%>
18
+ <%= gap_tag %>
19
+ <% end -%>
20
+ <% end -%>
21
+ <%= next_page_tag %> <%# unless current_page.last? %>
22
+ <%= last_page_tag %> <%# unless current_page.last? %>
23
+ </ul>
24
+ </nav>
25
+ <% end -%>
@@ -0,0 +1,11 @@
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
+ <li class="prev">
10
+ <%= link_to raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote %>
11
+ </li>
@@ -23,16 +23,16 @@ Gem::Specification.new do |s|
23
23
  s.files = Dir["{app,config,db,lib}/**/*"] + ["CHANGELOG.rdoc", "contour.gemspec", "LICENSE", "Rakefile", "README.rdoc"]
24
24
  s.test_files = Dir["test/**/*"]
25
25
 
26
- s.add_dependency 'rails', '~> 3.2.8'
27
- s.add_dependency 'jquery-rails', '~> 2.1.2'
26
+ s.add_dependency 'rails', '~> 3.2.9'
27
+ s.add_dependency 'jquery-rails', '~> 2.1.4'
28
28
  s.add_dependency 'devise', '~> 2.1.2'
29
29
  s.add_dependency 'omniauth', '~> 1.1.1'
30
- s.add_dependency 'omniauth-cas', '~> 0.0.7'
30
+ s.add_dependency 'omniauth-cas', '~> 1.0.0'
31
31
  s.add_dependency 'omniauth-facebook', '~> 1.4.1'
32
32
  s.add_dependency 'omniauth-ldap', '~> 1.0.2'
33
33
  s.add_dependency 'omniauth-linkedin', '~> 0.0.8'
34
34
  s.add_dependency 'omniauth-openid', '~> 1.0.1'
35
- s.add_dependency 'omniauth-twitter', '~> 0.0.13'
35
+ s.add_dependency 'omniauth-twitter', '~> 0.0.14'
36
36
 
37
37
  s.add_development_dependency "sqlite3"
38
38
  end
@@ -2,8 +2,8 @@ module Contour
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- TINY = 1
6
- BUILD = nil # nil, "pre", "rc", "rc2"
5
+ TINY = 2
6
+ BUILD = "pre" # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end