chaltron 0.2.0 → 0.2.1
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05a13abc4ad845f203f5bba857a7d37c18c8f54d
|
4
|
+
data.tar.gz: 4f6a5d0a79985eff3353cf52f80a8bbdec9e8138
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6691806668a36b92eb8d98478573ce632cc401f3b0188d793f062c8dbd6be49492d67fe66b2e0f1ef8638435e84f466f6550770ceb3927c50d3aa97ec55f518
|
7
|
+
data.tar.gz: 8c40fe325c0c5b529ec59480684e89fb73f9fabcdeac2aa104988d8c9134939d9fbf820cc62942570f82f8ca133db2f5bab719e00784d5fff0bf674110323024
|
data/README.md
CHANGED
@@ -63,7 +63,9 @@ class DataTableBuilder
|
|
63
63
|
# add language
|
64
64
|
settings = $.extend({}, settings, {language: Chaltron.locales('datatable')})
|
65
65
|
|
66
|
-
container.DataTable(settings)
|
66
|
+
table = container.DataTable(settings)
|
67
|
+
document.addEventListener 'turbolinks:before-cache', ->
|
68
|
+
table.destroy()
|
67
69
|
|
68
70
|
$(document).on 'turbolinks:load', ->
|
69
71
|
table = new DataTableBuilder
|
@@ -5,16 +5,23 @@
|
|
5
5
|
<%= render partial: 'side_filters', locals: { filters: @filters } %>
|
6
6
|
<hr>
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
<% if ldap_enabled? %>
|
9
|
+
<div class='btn-group pull-right'>
|
10
|
+
<%= content_tag :button, type: 'button', class: 'btn btn-primary dropdown-toggle',
|
11
|
+
data: {toggle: 'dropdown'}, aria: {expanded: false} do %>
|
12
|
+
<%= icon :plus, t('.new_user') %> <span class="caret"></span>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<ul class='dropdown-menu' role='menu'>
|
16
|
+
<li><%= link_to t('.new_ldap_user'), ldap_search_url %></li>
|
17
|
+
<li><%= link_to t('.new_local_user'), new_user_url %></li>
|
18
|
+
</ul>
|
19
|
+
</div>
|
20
|
+
<% else %>
|
21
|
+
<%= link_to new_user_url, class: 'btn btn-primary pull-right' do %>
|
22
|
+
<%= icon :plus, t('.new_local_user') %>
|
12
23
|
<% end %>
|
13
|
-
|
14
|
-
<li><%= link_to t('.new_ldap_user'), ldap_search_url %></li>
|
15
|
-
<li><%= link_to t('.new_local_user'), new_user_url %></li>
|
16
|
-
</ul>
|
17
|
-
</div>
|
24
|
+
<% end %>
|
18
25
|
|
19
26
|
</div>
|
20
27
|
<div class='col-md-9'>
|
data/lib/chaltron/version.rb
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
'So pull request are very welcome'
|
19
19
|
%>
|
20
20
|
<%= render 'panel', title: 'Easy to use', icon: 'compass',
|
21
|
-
body: "It's so easy to build up and running web applications in a" \
|
21
|
+
body: "It's so easy to build up and running web applications in a " \
|
22
22
|
'few seconds. Try by yourself', link_text: 'Have a look'
|
23
23
|
%>
|
24
24
|
</div>
|
@@ -43,8 +43,7 @@
|
|
43
43
|
</li>
|
44
44
|
<li>
|
45
45
|
<%= icon('check-square', '', class: 'fa-li') %>
|
46
|
-
|
47
|
-
<strong><%= link_to 'amCharts', 'http://www.amcharts.com/' %></strong>
|
46
|
+
<strong><%= link_to 'Datatables', 'https://datatables.net/' %></strong>
|
48
47
|
integration
|
49
48
|
</li>
|
50
49
|
</ul>
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vicvega
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|