rails-erd-d3 0.2.7 → 0.2.8

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: 6185fa30ccd3c43801c49c849cafc4ece960682d
4
- data.tar.gz: 909f56c6146e42ddcc35673ac4dafac9481cceaf
3
+ metadata.gz: fa725900c89d5ca60deaf1eb4a169230e4a14377
4
+ data.tar.gz: 8100409a932ce1675853924f5e50288e68d71a14
5
5
  SHA512:
6
- metadata.gz: f1677f359b8dbda5faddc068034b635282546744c7abdae327f730e881006a031736d6349685f4205f3764aa6f977f85850a066658289cc899fd4e6ff576f9a2
7
- data.tar.gz: 0523dcb8a13afa9c6cacf97c9d087f2cf3f6ea88216442d6a86c49fdbc559a0d76b6d083c5aeca99283bfc184c6235e05370d49250741a64521ecc0bf9eb1068
6
+ metadata.gz: 5c61203361eab40cff15326e49a774f4736f8e1f36074e1fb6453208aeb916e3766a8540548d86060534c8c85406bd34233965e58d52c0930a7f9a8e19d7c8bd
7
+ data.tar.gz: ee96c763ba532b0d6ff6b00d9555318ed33a375795f24386ff7cdf7573c9fcec7e62abe57458ffee84bf841ccffb23c2230b1b884f220c04be75b4bd7ce4a758
@@ -64,3 +64,62 @@
64
64
  </div>
65
65
  </div>
66
66
  <% end %>
67
+
68
+ <div class="modal fade" id="preferences" tabindex="-1" role="dialog">
69
+ <div class="modal-dialog" role="document">
70
+ <div class="modal-content">
71
+ <div class="modal-header">
72
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
73
+ <h4 class="modal-title">
74
+ Preferences
75
+ </h4>
76
+ </div>
77
+ <div class="modal-body">
78
+ <div class="panel panel-primary">
79
+ <div class="panel-heading">Models</div>
80
+ <table class="table table-hover">
81
+ <thead>
82
+ <tr>
83
+ <th>#</th>
84
+ <th>name</th>
85
+ <th>visible</th>
86
+ </tr>
87
+ </thead>
88
+ <tbody>
89
+ <% @@models.each_with_index do |model, index| %>
90
+ <tr>
91
+ <th><%= index + 1 %></th>
92
+ <td><%= model.name %></td>
93
+ <td>
94
+ <div class="checkbox">
95
+ <label>
96
+ <input class="visible" id="<%= model.name %>" type="checkbox" value="" checked>
97
+ </label>
98
+ </div>
99
+ </td>
100
+ </tr>
101
+ <% end %>
102
+ </tbody>
103
+ </table>
104
+ </div>
105
+ </div>
106
+
107
+ <div class="modal-footer">
108
+ <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
109
+ </div>
110
+ </div>
111
+ </div>
112
+ </div>
113
+
114
+ <script>
115
+ $(".visible").click(function(){
116
+ var klass = $(this).attr("id");
117
+
118
+ if $(this).prop("checked"){
119
+ $(klass).hide();
120
+ }
121
+ else {
122
+ $(klass).show();
123
+ }
124
+ });
125
+ </script>
@@ -9,6 +9,11 @@
9
9
  </div>
10
10
  <div class="collapse navbar-collapse">
11
11
  <ul class="nav navbar-nav navbar-right">
12
+ <li>
13
+ <a href="" data-toggle="modal" data-target="#preferences" style="color: #ffffff;">
14
+ Preferences
15
+ </a>
16
+ </li>
12
17
  <li>
13
18
  <a href="https://github.com/romankrasavtsev" target="_blank" style="color: #ffffff;">
14
19
  &copy; 2016 Roman Krasavtsev
data/rails-erd-d3.gemspec CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
6
6
  spec.name = "rails-erd-d3"
7
7
  spec.authors = ["Roman Krasavtsev"]
8
8
  spec.email = ["mr.krasavtsev@gmail.com"]
9
- spec.version = "0.2.7"
9
+ spec.version = "0.2.8"
10
10
  spec.summary = "Entity–relationship diagram with D3.js for Rails application"
11
11
  spec.description = "This gem creates entity–relationship diagram with D3.js for your Rails application"
12
12
  spec.homepage = "https://github.com/RomanKrasavtsev/rails-erd-d3"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-erd-d3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Krasavtsev