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: 6594683be35faedbaa4ea9780fd6328047d38025
4
- data.tar.gz: e4039f41654989e0c57ba5afdd20269cf7ad1321
3
+ metadata.gz: 05a13abc4ad845f203f5bba857a7d37c18c8f54d
4
+ data.tar.gz: 4f6a5d0a79985eff3353cf52f80a8bbdec9e8138
5
5
  SHA512:
6
- metadata.gz: 4548d1ca4c0b3c9e52e024efc40c595a27f856b66e9882467a257e3dc3e1c7ddc14995e32d82ca5336338c03934218c89582b5858b4923f7efe5bba81b95a66c
7
- data.tar.gz: 23fa1620686a80d78d9bbfeff29e6ea7818925345d6153e1004e4e3c569260dcf2eeeebf62418c8aefcd58efc43cf0ab8f62aa747a9c2cac5cf5c6658343042b
6
+ metadata.gz: d6691806668a36b92eb8d98478573ce632cc401f3b0188d793f062c8dbd6be49492d67fe66b2e0f1ef8638435e84f466f6550770ceb3927c50d3aa97ec55f518
7
+ data.tar.gz: 8c40fe325c0c5b529ec59480684e89fb73f9fabcdeac2aa104988d8c9134939d9fbf820cc62942570f82f8ca133db2f5bab719e00784d5fff0bf674110323024
data/README.md CHANGED
@@ -18,6 +18,11 @@ Now run
18
18
  rails generate chaltron:install
19
19
  ```
20
20
 
21
+ Populate database
22
+ ```
23
+ rails db:migrate db:seed
24
+ ```
25
+
21
26
  Start your app
22
27
  ```
23
28
  rails server
@@ -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
- <div class='btn-group pull-right'>
9
- <%= content_tag :button, type: 'button', class: 'btn btn-primary dropdown-toggle',
10
- data: {toggle: 'dropdown'}, aria: {expanded: false} do %>
11
- <%= icon :plus, t('.new_user') %> <span class="caret"></span>
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
- <ul class='dropdown-menu' role='menu'>
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'>
@@ -1,3 +1,3 @@
1
1
  module Chaltron
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -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
- Easy
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2017-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails