zadok 0.5.4 → 0.5.5

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: 290961a8a32f9534df9f2f195cbb8ce787599a2274bfdea8afbc9677c90bbaf0
4
- data.tar.gz: 605ca5a6fb0397f2937b2672be689ca4ddf97b652285e830267a6827b63a007c
3
+ metadata.gz: c82ecaba6e1eae66620c338f00900bcd97ae933047e7bc69828393983999ef18
4
+ data.tar.gz: 148239d2d23f06ead3a32e2d73b0da99baac43acc6d028728a9349f1aafc9899
5
5
  SHA512:
6
- metadata.gz: 8b70f2f80c3c186d957affd794919b47b2fd46412293fbcf97759ad46ac0c27fb05973346b927e33e0ef4453f7c43585847324756cbefbde3720915ef7685a2f
7
- data.tar.gz: 5921790a716bf9f0bc884056d848b96b30fdc010b8c780bf97bb5eeac67abc48eeec5dfea066fccc26265baf7a1e0b697b2ce9bf2241c3c1b3ce2fe65377807c
6
+ metadata.gz: 8970de1cf2dd4537130c7cd332c23d334705dbb6cb3a26ad1f7dcf7f27167e31104434dd738d3c3895e9cac2cb39725547ae6151b983c90bdaac88c233606339
7
+ data.tar.gz: 8fc6e13cd67117625c0b7dfc9e01d0c76677db441750fed17c0c5ab1f2b683f1bd2be4c6f3fc01b27f934e78794dbb8313610b78b4634ff65d8fa48c9ec0d2fa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zadok (0.5.4)
4
+ zadok (0.5.5)
5
5
  bootstrap (~> 4.0)
6
6
  bundler-audit (~> 0.6)
7
7
  cancancan (~> 2.1)
@@ -1,3 +1,14 @@
1
1
  .resource-index, .resource-show, .resource-new, .resource-edit
2
2
  padding-top: 20px
3
3
  padding-bottom: 20px
4
+
5
+ .resource-row
6
+ td
7
+ padding: 0
8
+ a
9
+ color: inherit
10
+ text-decoration: none
11
+ padding: 0.75rem
12
+
13
+ .table-sm .resource-row a
14
+ padding: 0.3rem
@@ -3,7 +3,7 @@
3
3
  .card-body
4
4
  h2.card-title
5
5
  = resource_name(:other)
6
- - if can?(:create, resources.klass)
6
+ - if can?(:create, resource_class)
7
7
  = link_to(t("#{controller_name}.new"),
8
8
  resource_url_for(:new),
9
9
  class: "btn btn-primary text-white float-right")
@@ -26,9 +26,10 @@
26
26
  as: :resource)
27
27
  - else
28
28
  - resources.each do |resource|
29
- tr
29
+ tr.resource-row
30
30
  - index_attributes.each do |attr|
31
- td= resource.send(attr)
31
+ td
32
+ = link_to(resource.send(attr), resource)
32
33
 
33
34
  = will_paginate(resources,
34
35
  inner_window: 1,
data/lib/zadok/version.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  module Zadok
4
4
  VERSION_MAJOR = 0
5
5
  VERSION_MINOR = 5
6
- VERSION_TINY = 4
6
+ VERSION_TINY = 5
7
7
  VERSION_PRE = nil
8
8
 
9
9
  VERSION = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zadok
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leon Hooijer