boot_wheel 0.0.2 → 0.0.3

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
  SHA256:
3
- metadata.gz: aaa8efe1573e9573c9b712808db9797d6e554844ef60927172493cc2262674bc
4
- data.tar.gz: 46c33af21bd55892eac2d0212407a763bd4424497e6e5d13b865f741d30be218
3
+ metadata.gz: 2ab2c7bf94df7c94d71da88fa605d8ec51184de01fc2b58b831ee9b1ffc700d7
4
+ data.tar.gz: bf73bbea3588561f32d1ad996e08dfbdc2085b141b6a8c8ad9336b3fd6e39169
5
5
  SHA512:
6
- metadata.gz: cf4c5157d8022f23e34a30871ace2e361ba3bb40abd7fce4e477f9d0398f263c893a5672d7cde325bebbf9d32fe2ed9734507be1174b6c29ed415d0fc33748a1
7
- data.tar.gz: c7609522dc4ff12e012c9f6ae8e4bcb9626efc8451a0eac4108ef1208492f305a56512119f7d913375d769262a6ca39d6f1f0c69906360b612e8bba15412c1cb
6
+ metadata.gz: e6565e2f0fc0657776b79edf8562a4f2fea9fa465c4417c339e126d8b9e1fea5bb38d69cd3caa230fdb74852c0c38447f6aa8d5b2931dbcecbe6b58dd60eca11
7
+ data.tar.gz: 36ed17cee1e618a0508ade35a60f91cf0ab366bbfe903dc29534fc6e6c8208ee4f6a3c309eec755f2be28de49d591fb32936ed1f4c471b66ae4e3e35cbdd65e0
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Bootstrap demo</title>
7
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
8
+ </head>
9
+ <body>
10
+ <div class="container"><%= c.slot %></div>
11
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
12
+ </body>
13
+ </html>
@@ -0,0 +1,26 @@
1
+ <table class="<%= c.applied_classes %>">
2
+ <thead>
3
+ <tr>
4
+ <% c.fields.each do |field| -%>
5
+ <% if field[:variant] -%>
6
+ <th scope="col" class="table-<%= field[:variant] %>"><%= field[:label] %></th>
7
+ <% else -%>
8
+ <th scope="col"><%= field[:label] %></th>
9
+ <% end -%>
10
+ <% end -%>
11
+ </tr>
12
+ </thead>
13
+ <tbody>
14
+ <% c.items.each do |item| -%>
15
+ <tr>
16
+ <% item.each do |key, value| -%>
17
+ <% if c.field_with_key(key) && c.field_with_key(key)[:variant] -%>
18
+ <td class="table-<%= c.field_with_key(key)[:variant] %>"><%= value %></td>
19
+ <% else -%>
20
+ <td><%= value %></td>
21
+ <% end -%>
22
+ <% end -%>
23
+ </tr>
24
+ <% end -%>
25
+ </tbody>
26
+ </table>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boot_wheel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Brown
@@ -42,6 +42,8 @@ files:
42
42
  - lib/boot_wheel/page.rb
43
43
  - lib/boot_wheel/rugged.rb
44
44
  - lib/boot_wheel/table.rb
45
+ - templates/page.erb
46
+ - templates/table.erb
45
47
  homepage:
46
48
  licenses:
47
49
  - AGPLv3