chaltron 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/chaltron.js +0 -3
- data/app/assets/javascripts/chaltron/datatables.js.coffee +0 -3
- data/app/assets/javascripts/chaltron/localization.js.coffee +0 -3
- data/app/views/chaltron/users/index.html.erb +20 -18
- data/lib/chaltron/engine.rb +1 -2
- data/lib/chaltron/version.rb +1 -1
- metadata +3 -18
- data/app/assets/javascripts/datetime-moment.js +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b457ba5fafda98666569c995a33ee60b3dcf1b61
|
4
|
+
data.tar.gz: df13385848e743a73a467e54cfd36e88c205854b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fd212882632a477bd3f01baac9137da593b850e66ff8fa5db075aaa4c78f336dc896e432a67d2b41655d304557348769231155713502c8143de825d1215a078
|
7
|
+
data.tar.gz: 640bc8d68a1510e48f3efa68ec130cc725e60055534de0a0dc791c7793f5323ca7a3c91746062036388c45583a6aadbeab3259bd2340e2680c8e6431e87b075f
|
@@ -27,24 +27,26 @@
|
|
27
27
|
<div class='col-md-9'>
|
28
28
|
<div class='panel panel-default'>
|
29
29
|
<div class='panel-body'>
|
30
|
-
|
31
|
-
|
32
|
-
<
|
33
|
-
<
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
30
|
+
<div class='table-responsive'>
|
31
|
+
<%= content_tag 'table', id: 'users', class: 'table table-striped' do %>
|
32
|
+
<thead>
|
33
|
+
<tr>
|
34
|
+
<th class='username'>
|
35
|
+
<%= User.human_attribute_name(:username) %>
|
36
|
+
</th>
|
37
|
+
<th class='fullname'>
|
38
|
+
<%= User.human_attribute_name(:fullname) %>
|
39
|
+
</th>
|
40
|
+
<th class='email'>
|
41
|
+
<%= User.human_attribute_name(:email) %>
|
42
|
+
</th>
|
43
|
+
</tr>
|
44
|
+
</thead>
|
45
|
+
<tbody>
|
46
|
+
<%= render @users %>
|
47
|
+
</tbody>
|
48
|
+
<% end %>
|
49
|
+
</div>
|
48
50
|
</div>
|
49
51
|
</div>
|
50
52
|
</div>
|
data/lib/chaltron/engine.rb
CHANGED
@@ -10,7 +10,6 @@ require 'ajax-datatables-rails'
|
|
10
10
|
require 'bootstrap_form'
|
11
11
|
require 'nprogress-rails'
|
12
12
|
require 'rails-i18n'
|
13
|
-
require 'momentjs-rails'
|
14
13
|
require 'jquery-rails'
|
15
14
|
require 'jquery-datatables-rails'
|
16
15
|
|
@@ -21,7 +20,7 @@ module Chaltron
|
|
21
20
|
class Engine < ::Rails::Engine
|
22
21
|
config.generators do |g|
|
23
22
|
g.test_framework :rspec, fixture: false
|
24
|
-
g.fixture_replacement :
|
23
|
+
g.fixture_replacement :factory_bot, dir: 'spec/factories'
|
25
24
|
g.assets false
|
26
25
|
g.helper false
|
27
26
|
end
|
data/lib/chaltron/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chaltron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vicvega
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -220,20 +220,6 @@ dependencies:
|
|
220
220
|
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
|
-
- !ruby/object:Gem::Dependency
|
224
|
-
name: momentjs-rails
|
225
|
-
requirement: !ruby/object:Gem::Requirement
|
226
|
-
requirements:
|
227
|
-
- - ">="
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: '0'
|
230
|
-
type: :runtime
|
231
|
-
prerelease: false
|
232
|
-
version_requirements: !ruby/object:Gem::Requirement
|
233
|
-
requirements:
|
234
|
-
- - ">="
|
235
|
-
- !ruby/object:Gem::Version
|
236
|
-
version: '0'
|
237
223
|
- !ruby/object:Gem::Dependency
|
238
224
|
name: jquery-rails
|
239
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -333,7 +319,7 @@ dependencies:
|
|
333
319
|
- !ruby/object:Gem::Version
|
334
320
|
version: '0'
|
335
321
|
- !ruby/object:Gem::Dependency
|
336
|
-
name:
|
322
|
+
name: factory_bot_rails
|
337
323
|
requirement: !ruby/object:Gem::Requirement
|
338
324
|
requirements:
|
339
325
|
- - ">="
|
@@ -404,7 +390,6 @@ files:
|
|
404
390
|
- app/assets/javascripts/chaltron/localization.js.coffee
|
405
391
|
- app/assets/javascripts/chaltron/main.js.coffee
|
406
392
|
- app/assets/javascripts/dataTables/extras/dataTables.select.min.js
|
407
|
-
- app/assets/javascripts/datetime-moment.js
|
408
393
|
- app/assets/stylesheets/chaltron.scss
|
409
394
|
- app/assets/stylesheets/chaltron/layout.scss
|
410
395
|
- app/assets/stylesheets/chaltron/mixins.scss
|
@@ -1,41 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This plug-in for DataTables represents the ultimate option in extensibility
|
3
|
-
* for sorting date / time strings correctly. It uses
|
4
|
-
* [Moment.js](http://momentjs.com) to create automatic type detection and
|
5
|
-
* sorting plug-ins for DataTables based on a given format. This way, DataTables
|
6
|
-
* will automatically detect your temporal information and sort it correctly.
|
7
|
-
*
|
8
|
-
* For usage instructions, please see the DataTables blog
|
9
|
-
* post that [introduces it](//datatables.net/blog/2014-12-18).
|
10
|
-
*
|
11
|
-
* @name Ultimate Date / Time sorting
|
12
|
-
* @summary Sort date and time in any format using Moment.js
|
13
|
-
* @author [Allan Jardine](//datatables.net)
|
14
|
-
* @depends DataTables 1.10+, Moment.js 1.7+
|
15
|
-
*
|
16
|
-
* @example
|
17
|
-
* $.fn.dataTable.moment( 'HH:mm MMM D, YY' );
|
18
|
-
* $.fn.dataTable.moment( 'dddd, MMMM Do, YYYY' );
|
19
|
-
*
|
20
|
-
* $('#example').DataTable();
|
21
|
-
*/
|
22
|
-
|
23
|
-
(function($) {
|
24
|
-
|
25
|
-
$.fn.dataTable.moment = function ( format, locale ) {
|
26
|
-
var types = $.fn.dataTable.ext.type;
|
27
|
-
|
28
|
-
// Add type detection
|
29
|
-
types.detect.unshift( function ( d ) {
|
30
|
-
return moment( d, format, locale, true ).isValid() ?
|
31
|
-
'moment-'+format :
|
32
|
-
null;
|
33
|
-
} );
|
34
|
-
|
35
|
-
// Add sorting method - use an integer for the sorting
|
36
|
-
types.order[ 'moment-'+format+'-pre' ] = function ( d ) {
|
37
|
-
return moment( d, format, locale, true ).unix();
|
38
|
-
};
|
39
|
-
};
|
40
|
-
|
41
|
-
}(jQuery));
|