tabulatr2 0.9.10 → 0.9.11

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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/LICENSE +2 -2
  4. data/README.md +3 -2
  5. data/app/assets/javascripts/tabulatr/_tabulatr.js +17 -11
  6. data/app/assets/stylesheets/tabulatr/application.css.scss +1 -1
  7. data/app/views/tabulatr/_tabulatr_actual_table.html.slim +1 -1
  8. data/app/views/tabulatr/_tabulatr_batch_actions_menu.html.slim +1 -1
  9. data/app/views/tabulatr/_tabulatr_filter_dialog.html.slim +1 -1
  10. data/app/views/tabulatr/_tabulatr_filter_menu.html.slim +1 -1
  11. data/app/views/tabulatr/_tabulatr_fuzzy_search_field.html.slim +1 -1
  12. data/app/views/tabulatr/_tabulatr_info_string.html.slim +1 -1
  13. data/app/views/tabulatr/_tabulatr_paginator.html.slim +1 -1
  14. data/app/views/tabulatr/_tabulatr_static_table.html.slim +1 -1
  15. data/app/views/tabulatr/_tabulatr_table.html.slim +9 -4
  16. data/lib/tabulatr/data/button_builder.rb +1 -1
  17. data/lib/tabulatr/data/data.rb +2 -1
  18. data/lib/tabulatr/data/dsl.rb +1 -1
  19. data/lib/tabulatr/data/filtering.rb +1 -1
  20. data/lib/tabulatr/data/formatting.rb +1 -1
  21. data/lib/tabulatr/data/invoker.rb +1 -1
  22. data/lib/tabulatr/data/pagination.rb +1 -1
  23. data/lib/tabulatr/data/proxy.rb +1 -1
  24. data/lib/tabulatr/data/sorting.rb +1 -1
  25. data/lib/tabulatr/engine.rb +1 -1
  26. data/lib/tabulatr/generators/railtie.rb +1 -1
  27. data/lib/tabulatr/generators/resource_override.rb +1 -1
  28. data/lib/tabulatr/generators/tabulatr/install_generator.rb +1 -1
  29. data/lib/tabulatr/generators/tabulatr/table_generator.rb +1 -1
  30. data/lib/tabulatr/generators/tabulatr/templates/tabulatr.yml +4 -4
  31. data/lib/tabulatr/json_builder.rb +1 -1
  32. data/lib/tabulatr/rails/action_controller.rb +1 -1
  33. data/lib/tabulatr/rails/action_view.rb +1 -1
  34. data/lib/tabulatr/rails/active_record.rb +1 -1
  35. data/lib/tabulatr/renderer/action.rb +1 -1
  36. data/lib/tabulatr/renderer/association.rb +1 -1
  37. data/lib/tabulatr/renderer/buttons.rb +1 -1
  38. data/lib/tabulatr/renderer/checkbox.rb +1 -1
  39. data/lib/tabulatr/renderer/column.rb +1 -1
  40. data/lib/tabulatr/renderer/columns_from_block.rb +1 -1
  41. data/lib/tabulatr/renderer/renderer.rb +3 -1
  42. data/lib/tabulatr/utility/utility.rb +1 -1
  43. data/lib/tabulatr/version.rb +2 -2
  44. data/lib/tabulatr.rb +1 -1
  45. data/spec/dummy/config/locales/tabulatr.yml +4 -4
  46. data/tabulatr.gemspec +4 -4
  47. metadata +11 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 457d8adce27f3f902cc4df5215a32cc4672ebe6f
4
- data.tar.gz: b8f3703af996ac13ba561401e113e34bf1b165fc
3
+ metadata.gz: a677eed252e25251243c72fcd9273a5fa2a3e4d0
4
+ data.tar.gz: fe38b3b4eccad2e746772356203cb233e5a76a71
5
5
  SHA512:
6
- metadata.gz: c81f75442ed064dfb4918af18cc310e3185e06c8f500ce327117427e2e7cb42a6b64ed43c88be3317418f5d8a783def68e8a1c47ab44f18eedae4d211dd09f69
7
- data.tar.gz: f6817a83f7bfe03822dde8e343148cea2337721ce6a2efa2f382e8d3bf4f7fa0188c91f156392ed7750d8c317131a30c9f1ac473497680e31b194e1728962290
6
+ metadata.gz: f9824d54ec64a5c7cbe4aac03861f6aa4e9beee8d5a2a4d849a74c3a8193b4a51a7c4055d566d37627222741d39f64969b8a644b280e37f6e3695faf6be0ff86
7
+ data.tar.gz: 1a3f528cb8f4198086384f163c65638002cd5348eb46db70c53170be40f488f3470fd3ddec59945660b350b40521c376c86bf9f94d136cc832e04aff776e98a1
data/.gitignore CHANGED
@@ -7,3 +7,4 @@ tags
7
7
  log
8
8
  .DS_Store
9
9
  .rake_tasks~
10
+ tabulatr2*.gem
data/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2010-2014 by tickettoaster GmbH, Peter Horn & Florian Thomas
4
- http://www.provideal.net, peter.horn@provideal.net
3
+ Copyright (c) 2010-2014 by metaminded UG, Peter Horn & Florian Thomas
4
+ http://www.metaminded.com, open-source@metaminded.com
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Tabulatr2 - Index Tables made easy
2
2
  [![Gem Version](https://badge.fury.io/rb/tabulatr2.png)](http://badge.fury.io/rb/tabulatr2)
3
- [![Code Climate](https://codeclimate.com/github/provideal/tabulatr2.png)](https://codeclimate.com/github/provideal/tabulatr2)
4
- [![Travis CI](https://api.travis-ci.org/provideal/tabulatr2.png)](https://travis-ci.org/provideal/tabulatr2)
3
+ [![Code Climate](https://codeclimate.com/github/metaminded/tabulatr2.png)](https://codeclimate.com/github/metaminded/tabulatr2)
4
+ [![Travis CI](https://api.travis-ci.org/metaminded/tabulatr2.png)](https://travis-ci.org/metaminded/tabulatr2)
5
5
 
6
6
  ## Requirements
7
7
 
@@ -322,6 +322,7 @@ They change the appearance and behaviour of the table.
322
322
  path: '#', # where to send the AJAX-requests to
323
323
  order_by: nil # default order,
324
324
  html_class: '' # html classes for the table element
325
+ counter_position: :top # position of the counter row, can by :top, :bottom or :both
325
326
  ```
326
327
 
327
328
  #### Example:
@@ -6,6 +6,7 @@ function Tabulatr(id){
6
6
  this.locked = false;
7
7
  this.isAPersistedTable = false;
8
8
  this.initialRequest = true;
9
+ this.hasInfiniteScrolling = false;
9
10
  }
10
11
 
11
12
  var tabulatr_tables;
@@ -226,7 +227,7 @@ Tabulatr.prototype = {
226
227
  },
227
228
 
228
229
  submitFilterForm: function(){
229
- if($('.pagination[data-table='+ this.id +']').length === 0){
230
+ if(this.hasInfiniteScrolling){
230
231
  $('.pagination_trigger[data-table='+ this.id +']').unbind('inview', cbfn);
231
232
  $('.pagination_trigger[data-table='+ this.id +']').bind('inview', cbfn);
232
233
  }
@@ -245,7 +246,9 @@ Tabulatr.prototype = {
245
246
  pagesize = $('table#'+ this.id).data('pagesize');
246
247
  }
247
248
  if(hash.page === undefined){
248
- hash.page = Math.floor($('#'+ this.id +' tbody tr[class!=empty_row]').length/pagesize) + 1;
249
+ if(this.hasInfiniteScrolling){
250
+ hash.page = Math.floor($('#'+ this.id +' tbody tr[class!=empty_row]').length/pagesize) + 1;
251
+ }
249
252
  if(!isFinite(hash.page)){
250
253
  hash.page = 1;
251
254
  }
@@ -302,7 +305,7 @@ $(document).on('ready page:load', function(){
302
305
  $('.tabulatr_filter_form[data-table='+ tableId +'] input[name='+ tableName +'_sort]').val(sort_by + ' '+ dir);
303
306
  if(!table_obj.moreResults){
304
307
  table_obj.moreResults = true;
305
- if($('.pagination[data-table='+ tableId +']').length === 0){
308
+ if(table_obj.hasInfiniteScrolling){
306
309
  $('.pagination_trigger[data-table='+ tableId +']').bind('inview', cbfn);
307
310
  }
308
311
  }
@@ -340,16 +343,16 @@ $(document).on('ready page:load', function(){
340
343
 
341
344
  $('form.tabulatr-fuzzy-search').submit(function(){
342
345
  var tableId = $(this).data('table');
343
- if($('.pagination[data-table='+ tableId +']').length === 0){
344
- $('.pagination_trigger[data-table='+ tableId +']').unbind('inview', cbfn);
345
- $('.pagination_trigger[data-table='+ tableId +']').bind('inview', cbfn);
346
- }
347
346
  var table_obj;
348
347
  for(var i = 0; i < tabulatr_tables.length; i++){
349
348
  if(tabulatr_tables[i].id == tableId){
350
349
  table_obj = tabulatr_tables[i];
351
350
  }
352
351
  }
352
+ if(table_obj.hasInfiniteScrolling){
353
+ $('.pagination_trigger[data-table='+ tableId +']').unbind('inview', cbfn);
354
+ $('.pagination_trigger[data-table='+ tableId +']').bind('inview', cbfn);
355
+ }
353
356
  table_obj.updateTable({page: 1, append: false}, true);
354
357
  return false;
355
358
  });
@@ -379,15 +382,15 @@ $(document).on('ready page:load', function(){
379
382
  }
380
383
  var tableId = $(this).closest('.tabulatr_table').attr('id');
381
384
  $(this).remove();
382
- if($('.pagination[data-table='+ tableId +']').length === 0){
383
- $('.pagination_trigger[data-table='+ tableId +']').bind('inview', cbfn);
384
- }
385
385
  var table_obj;
386
386
  for(var i = 0; i < tabulatr_tables.length; i++){
387
387
  if(tabulatr_tables[i].id == tableId){
388
388
  table_obj = tabulatr_tables[i];
389
389
  }
390
390
  }
391
+ if(table_obj.hasInfiniteScrolling){
392
+ $('.pagination_trigger[data-table='+ tableId +']').bind('inview', cbfn);
393
+ }
391
394
  table_obj.updateTable({});
392
395
  return false;
393
396
  });
@@ -459,7 +462,7 @@ $(document).on('ready page:load', function(){
459
462
  }
460
463
  }
461
464
  table_obj.moreResults = true;
462
- if($('.pagination[data-table='+ tableId +']').length === 0){
465
+ if(table_obj.hasInfiniteScrolling){
463
466
  $('.pagination_trigger[data-table='+ tableId +']').bind('inview', cbfn);
464
467
  }
465
468
  if(typeof(Storage) !== undefined){
@@ -496,6 +499,9 @@ $(document).on('ready page:load', function(){
496
499
  if($(el).data('persistent')){
497
500
  tabulatrTable.isAPersistedTable = true;
498
501
  }
502
+ if($('.pagination[data-table='+ tableId +']').length === 0){
503
+ tabulatrTable.hasInfiniteScrolling = true;
504
+ }
499
505
  tabulatr_tables.push(tabulatrTable);
500
506
  for(var i = 0; i < tabulatr_tables.length; i++){
501
507
  if(tabulatr_tables[i].id == tableId){
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
1
+ // Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining
4
4
  // a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
1
+ / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
2
2
  /
3
3
  / Permission is hereby granted, free of charge, to any person obtaining
4
4
  / a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
1
+ / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
2
2
  /
3
3
  / Permission is hereby granted, free of charge, to any person obtaining
4
4
  / a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
1
+ / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
2
2
  /
3
3
  / Permission is hereby granted, free of charge, to any person obtaining
4
4
  / a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
1
+ / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
2
2
  /
3
3
  / Permission is hereby granted, free of charge, to any person obtaining
4
4
  / a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
1
+ / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
2
2
  /
3
3
  / Permission is hereby granted, free of charge, to any person obtaining
4
4
  / a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
1
+ / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
2
2
  /
3
3
  / Permission is hereby granted, free of charge, to any person obtaining
4
4
  / a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
1
+ / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
2
2
  /
3
3
  / Permission is hereby granted, free of charge, to any person obtaining
4
4
  / a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
1
+ / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
2
2
  /
3
3
  / Permission is hereby granted, free of charge, to any person obtaining
4
4
  / a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
1
+ / Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
2
2
  /
3
3
  / Permission is hereby granted, free of charge, to any person obtaining
4
4
  / a copy of this software and associated documentation files (the
@@ -38,14 +38,19 @@
38
38
  .tabulatr-paginator-wrapper.col-xs-12.col-sm-8 data-table-id=table_id
39
39
  = render '/tabulatr/tabulatr_paginator', opts
40
40
 
41
-
42
41
  .tabulatr-filter-dialog-wrapper data-table-id=table_id
43
42
  = render '/tabulatr/tabulatr_filter_dialog', opts
44
43
 
45
- .tabulatr-info-string-wrapper data-table-id=table_id
46
- = render '/tabulatr/tabulatr_info_string', opts
44
+ - if table_options[:counter_position].in?([:top, :both])
45
+ .tabulatr-info-string-wrapper data-table-id=table_id
46
+ = render '/tabulatr/tabulatr_info_string', opts
47
47
 
48
48
  = render '/tabulatr/tabulatr_actual_table', opts
49
+
50
+ - if table_options[:counter_position].in?([:bottom, :both])
51
+ .tabulatr-info-string-wrapper data-table-id=table_id
52
+ = render '/tabulatr/tabulatr_info_string', opts
53
+
49
54
  - if table_options[:pagination_position].in?([:bottom, :both])
50
55
  .tabulatr-paginator-wrapper.col-xs-12 data-table-id=table_id
51
56
  = render '/tabulatr/tabulatr_paginator', opts
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -33,6 +33,7 @@ class Tabulatr::Data
33
33
  @batch_actions = nil
34
34
  @row = self.class.instance_variable_get('@row')
35
35
  table_columns.map do |col|
36
+ next if col.is_a? Tabulatr::Renderer::Checkbox
36
37
  col.klass = @base.reflect_on_association(col.table_name).try(:klass) || @base
37
38
  col.determine_appropriate_filter! if col.filter === true
38
39
  end
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -17,8 +17,8 @@ en:
17
17
  from_to: From - To
18
18
  boolean_filter:
19
19
  both: All
20
- yes: Yes
21
- no: No
20
+ 'yes': Yes
21
+ 'no': No
22
22
 
23
23
  de:
24
24
  tabulatr:
@@ -39,5 +39,5 @@ de:
39
39
  from_to: Von - Bis
40
40
  boolean_filter:
41
41
  both: Alle
42
- yes: Ja
43
- no: Nein
42
+ 'yes': Ja
43
+ 'no': Nein
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -35,6 +35,7 @@ class Tabulatr::Renderer
35
35
  order_by: nil, # default order
36
36
  html_class: '',
37
37
  pagination_position: :top,
38
+ counter_position: :top,
38
39
  persistent: true)
39
40
  @klass = klass
40
41
  @view = view
@@ -50,6 +51,7 @@ class Tabulatr::Renderer
50
51
  order_by: order_by,
51
52
  html_class: 'table tabulatr_table '.concat(html_class),
52
53
  pagination_position: pagination_position,
54
+ counter_position: counter_position,
53
55
  persistent: paginate ? persistent : false
54
56
  }
55
57
  @classname = @klass.name.underscore
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -22,5 +22,5 @@
22
22
  #++
23
23
 
24
24
  module Tabulatr
25
- VERSION = "0.9.10"
25
+ VERSION = "0.9.11"
26
26
  end
data/lib/tabulatr.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, tickettoaster GmbH
2
+ # Copyright (c) 2010-2014 Peter Horn & Florian Thomas, metaminded UG
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -17,8 +17,8 @@ en:
17
17
  from_to: From - To
18
18
  boolean_filter:
19
19
  both: All
20
- yes: Yes
21
- no: No
20
+ 'yes': Yes
21
+ 'no': No
22
22
 
23
23
  de:
24
24
  tabulatr:
@@ -39,5 +39,5 @@ de:
39
39
  from_to: Von - Bis
40
40
  boolean_filter:
41
41
  both: Alle
42
- yes: Ja
43
- no: Nein
42
+ 'yes': Ja
43
+ 'no': Nein
data/tabulatr.gemspec CHANGED
@@ -9,14 +9,14 @@ Gem::Specification.new do |s|
9
9
  s.summary = "A tight DSL to build tables of ActiveRecord "+
10
10
  "models with sorting, pagination, finding/filtering, "+
11
11
  "selecting and batch actions."
12
- s.email = "info@provideal.net"
13
- s.homepage = "http://github.com/provideal/tabulatr2"
12
+ s.email = "open-source@metaminded.com"
13
+ s.homepage = "http://github.com/metaminded/tabulatr2"
14
14
  s.description = "A tight DSL to build tables of ActiveRecord "+
15
15
  "models with sorting, pagination, finding/filtering, "+
16
16
  "selecting and batch actions. " +
17
17
  "Tries to do for tables what formtastic and simple_form did "+
18
18
  "for forms."
19
- s.authors = ['Peter Horn', 'René Sprotte', 'Florian Thomas']
19
+ s.authors = ['Peter Horn', 'Florian Thomas', 'René Sprotte']
20
20
  s.license = 'MIT'
21
21
  s.files = `git ls-files`.split("\n")
22
22
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -25,6 +25,6 @@ Gem::Specification.new do |s|
25
25
 
26
26
  s.add_runtime_dependency('rails', '~> 4.0')
27
27
  s.add_dependency('slim', '~> 2.0.0', '>= 2.0.0')
28
- s.add_dependency('tilt', '~> 1.4.1')
28
+ s.add_dependency('tilt', '~> 1.4', '>= 1.4.1')
29
29
  s.add_dependency('font-awesome-rails', '~> 4.0')
30
30
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tabulatr2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10
4
+ version: 0.9.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Horn
8
- - René Sprotte
9
8
  - Florian Thomas
9
+ - René Sprotte
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-07-17 00:00:00.000000000 Z
13
+ date: 2014-10-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -51,6 +51,9 @@ dependencies:
51
51
  requirement: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '1.4'
56
+ - - ">="
54
57
  - !ruby/object:Gem::Version
55
58
  version: 1.4.1
56
59
  type: :runtime
@@ -58,6 +61,9 @@ dependencies:
58
61
  version_requirements: !ruby/object:Gem::Requirement
59
62
  requirements:
60
63
  - - "~>"
64
+ - !ruby/object:Gem::Version
65
+ version: '1.4'
66
+ - - ">="
61
67
  - !ruby/object:Gem::Version
62
68
  version: 1.4.1
63
69
  - !ruby/object:Gem::Dependency
@@ -77,7 +83,7 @@ dependencies:
77
83
  description: A tight DSL to build tables of ActiveRecord models with sorting, pagination,
78
84
  finding/filtering, selecting and batch actions. Tries to do for tables what formtastic
79
85
  and simple_form did for forms.
80
- email: info@provideal.net
86
+ email: open-source@metaminded.com
81
87
  executables: []
82
88
  extensions: []
83
89
  extra_rdoc_files: []
@@ -216,7 +222,7 @@ files:
216
222
  - spec/lib/tabulatr/renderer/renderer_spec.rb
217
223
  - spec/spec_helper.rb
218
224
  - tabulatr.gemspec
219
- homepage: http://github.com/provideal/tabulatr2
225
+ homepage: http://github.com/metaminded/tabulatr2
220
226
  licenses:
221
227
  - MIT
222
228
  metadata: {}