chaltron 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6dd93d83899a5ece0bcb08dae116027904b93a08e2e23a3f43168df66da81c7
|
4
|
+
data.tar.gz: eff688766c57029580169523643e717f9d323f19149c2b99fe54a76908fb8eee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bf40d6e0304969767a2fe3c98749559bc808402348b63eea1396eb26a6bcea4d680b860eeb83b2e3e14079bb767a55da5509ba86d7e1492168c55751b902bb7
|
7
|
+
data.tar.gz: 6b5d1fac7c6ac9326d3d078a61c775f9725450013de385a8dc13cf046125de1f3717db8edccc814d3f3cb50c9fff33bee648e19472902cd9c8b96b6cdaca241b
|
data/app/models/authorizable.rb
CHANGED
@@ -1,29 +1,24 @@
|
|
1
1
|
<div class='container-fluid'>
|
2
2
|
<h3 class='pt-4'><%= t '.title' %></h3>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
</tbody>
|
25
|
-
<% end %>
|
26
|
-
</div>
|
27
|
-
</div>
|
28
|
-
|
3
|
+
<%= content_tag 'table', id: 'logs', class: 'table table-striped',
|
4
|
+
data: {source: logs_path(format: :json)} do %>
|
5
|
+
<thead>
|
6
|
+
<tr>
|
7
|
+
<th class='severity'>
|
8
|
+
<%= Log.human_attribute_name(:severity) %>
|
9
|
+
</th>
|
10
|
+
<th class='timestamp'>
|
11
|
+
<%= Log.human_attribute_name(:created_at) %>
|
12
|
+
</th>
|
13
|
+
<th class='message'>
|
14
|
+
<%= Log.human_attribute_name(:message) %>
|
15
|
+
</th>
|
16
|
+
<th class='category'>
|
17
|
+
<%= Log.human_attribute_name(:category) %>
|
18
|
+
</th>
|
19
|
+
</tr>
|
20
|
+
</thead>
|
21
|
+
<tbody>
|
22
|
+
</tbody>
|
23
|
+
<% end %>
|
29
24
|
</div>
|
data/lib/chaltron/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
<%%=
|
1
|
+
<%%= bootstrap_form_with(model: @<%= singular_table_name %>, local: true, layout: :horizontal, label_col: 'col-sm-2 col-form-label', control_col: 'col-sm-10') do |f| %>
|
2
2
|
|
3
3
|
<% attributes.each do |attribute| -%>
|
4
4
|
<% if attribute.field_type == :check_box -%>
|
@@ -1,21 +1,19 @@
|
|
1
1
|
<div class='container-fluid'>
|
2
2
|
<h3 class='pt-4'><%= plural_table_name.titleize %></h3>
|
3
|
-
|
4
|
-
|
5
|
-
<
|
3
|
+
<%%= content_tag 'table', class: 'table table-striped datatable' do %>
|
4
|
+
<thead>
|
5
|
+
<tr><% attributes.each do |attribute| %>
|
6
|
+
<th><%= attribute.name.humanize %></th><% end %>
|
7
|
+
</tr>
|
8
|
+
</thead>
|
9
|
+
<tbody>
|
10
|
+
<%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
|
6
11
|
<tr><% attributes.each do |attribute| %>
|
7
|
-
<
|
12
|
+
<td><%%= link_to <%= singular_table_name %>.<%= attribute.name %>, <%= singular_table_name %> %></td><% end %>
|
8
13
|
</tr>
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
<tr><% attributes.each do |attribute| %>
|
13
|
-
<td><%%= link_to <%= singular_table_name %>.<%= attribute.name %>, <%= singular_table_name %> %></td><% end %>
|
14
|
-
</tr>
|
15
|
-
<%% end -%>
|
16
|
-
</tbody>
|
17
|
-
<%% end %>
|
18
|
-
</div>
|
14
|
+
<%% end -%>
|
15
|
+
</tbody>
|
16
|
+
<%% end %>
|
19
17
|
<hr>
|
20
18
|
<%%= link_to new_<%= singular_table_name %>_path, class: 'btn btn-primary btn-lg' do %>
|
21
19
|
<%%= icon(:fas, :plus) %> New
|
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: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vicvega
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|