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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/LICENSE +2 -2
- data/README.md +3 -2
- data/app/assets/javascripts/tabulatr/_tabulatr.js +17 -11
- data/app/assets/stylesheets/tabulatr/application.css.scss +1 -1
- data/app/views/tabulatr/_tabulatr_actual_table.html.slim +1 -1
- data/app/views/tabulatr/_tabulatr_batch_actions_menu.html.slim +1 -1
- data/app/views/tabulatr/_tabulatr_filter_dialog.html.slim +1 -1
- data/app/views/tabulatr/_tabulatr_filter_menu.html.slim +1 -1
- data/app/views/tabulatr/_tabulatr_fuzzy_search_field.html.slim +1 -1
- data/app/views/tabulatr/_tabulatr_info_string.html.slim +1 -1
- data/app/views/tabulatr/_tabulatr_paginator.html.slim +1 -1
- data/app/views/tabulatr/_tabulatr_static_table.html.slim +1 -1
- data/app/views/tabulatr/_tabulatr_table.html.slim +9 -4
- data/lib/tabulatr/data/button_builder.rb +1 -1
- data/lib/tabulatr/data/data.rb +2 -1
- data/lib/tabulatr/data/dsl.rb +1 -1
- data/lib/tabulatr/data/filtering.rb +1 -1
- data/lib/tabulatr/data/formatting.rb +1 -1
- data/lib/tabulatr/data/invoker.rb +1 -1
- data/lib/tabulatr/data/pagination.rb +1 -1
- data/lib/tabulatr/data/proxy.rb +1 -1
- data/lib/tabulatr/data/sorting.rb +1 -1
- data/lib/tabulatr/engine.rb +1 -1
- data/lib/tabulatr/generators/railtie.rb +1 -1
- data/lib/tabulatr/generators/resource_override.rb +1 -1
- data/lib/tabulatr/generators/tabulatr/install_generator.rb +1 -1
- data/lib/tabulatr/generators/tabulatr/table_generator.rb +1 -1
- data/lib/tabulatr/generators/tabulatr/templates/tabulatr.yml +4 -4
- data/lib/tabulatr/json_builder.rb +1 -1
- data/lib/tabulatr/rails/action_controller.rb +1 -1
- data/lib/tabulatr/rails/action_view.rb +1 -1
- data/lib/tabulatr/rails/active_record.rb +1 -1
- data/lib/tabulatr/renderer/action.rb +1 -1
- data/lib/tabulatr/renderer/association.rb +1 -1
- data/lib/tabulatr/renderer/buttons.rb +1 -1
- data/lib/tabulatr/renderer/checkbox.rb +1 -1
- data/lib/tabulatr/renderer/column.rb +1 -1
- data/lib/tabulatr/renderer/columns_from_block.rb +1 -1
- data/lib/tabulatr/renderer/renderer.rb +3 -1
- data/lib/tabulatr/utility/utility.rb +1 -1
- data/lib/tabulatr/version.rb +2 -2
- data/lib/tabulatr.rb +1 -1
- data/spec/dummy/config/locales/tabulatr.yml +4 -4
- data/tabulatr.gemspec +4 -4
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a677eed252e25251243c72fcd9273a5fa2a3e4d0
|
4
|
+
data.tar.gz: fe38b3b4eccad2e746772356203cb233e5a76a71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9824d54ec64a5c7cbe4aac03861f6aa4e9beee8d5a2a4d849a74c3a8193b4a51a7c4055d566d37627222741d39f64969b8a644b280e37f6e3695faf6be0ff86
|
7
|
+
data.tar.gz: 1a3f528cb8f4198086384f163c65638002cd5348eb46db70c53170be40f488f3470fd3ddec59945660b350b40521c376c86bf9f94d136cc832e04aff776e98a1
|
data/.gitignore
CHANGED
data/LICENSE
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
The MIT License
|
2
2
|
|
3
|
-
Copyright (c) 2010-2014 by
|
4
|
-
http://www.
|
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
|
[](http://badge.fury.io/rb/tabulatr2)
|
3
|
-
[](https://codeclimate.com/github/metaminded/tabulatr2)
|
4
|
+
[](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(
|
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
|
-
|
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(
|
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(
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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
|
-
|
46
|
-
|
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,
|
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
|
data/lib/tabulatr/data/data.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2010-2014 Peter Horn & Florian Thomas,
|
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
|
data/lib/tabulatr/data/dsl.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2010-2014 Peter Horn & Florian Thomas,
|
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,
|
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,
|
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,
|
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,
|
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
|
data/lib/tabulatr/data/proxy.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2010-2014 Peter Horn & Florian Thomas,
|
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,
|
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
|
data/lib/tabulatr/engine.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2010-2014 Peter Horn & Florian Thomas,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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
|
data/lib/tabulatr/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2010-2014 Peter Horn & Florian Thomas,
|
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.
|
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,
|
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 = "
|
13
|
-
s.homepage = "http://github.com/
|
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', '
|
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.
|
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-
|
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:
|
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/
|
225
|
+
homepage: http://github.com/metaminded/tabulatr2
|
220
226
|
licenses:
|
221
227
|
- MIT
|
222
228
|
metadata: {}
|