zadok 0.9.2 → 0.9.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: 95c934919bf591bcffa8ca8bf71c1d6683491d0be7831cd03063262a3e5b9f04
4
- data.tar.gz: '089b7104d1b93c3423955427e6228475807e9fd3d73974050cab5809844949aa'
3
+ metadata.gz: 778d0e126c1095eb7fc500f4db7bbd75bc09cf0beabbb55d38c0814f821fa79b
4
+ data.tar.gz: 3c9b8e46de1de8175e5e7940110ac087a8f4af6f069813c85aa980a5b23c7580
5
5
  SHA512:
6
- metadata.gz: ad69c2556133e35ddb364d884fa4907402f1d86f313519079dafecdd0e8fa4d3e37b4800b99e311ff23568a7005c1fbfd0d3fc826629eec6d6cfae27dd0280cb
7
- data.tar.gz: 58b0de34094be9fb92b721fad9bebd11375911612723b758b82f7cc31f86dabbc3c8ae9d37160ba7ecb1666b722ec8c5411d538c0283cbb7cc89c1c301f24098
6
+ metadata.gz: 4cdc752c1a1737d0825ff9472f08e159a6b67311fd649a53f8ae071780cb39ec94012dc3277bed0afceb92c8119319cd1dd23121e0bcac8506b9fc7c4c9aab08
7
+ data.tar.gz: 177c00792cd829532624f72a1ad768adc315eaf955af2e2a3e3ba58a9c81b17e860ebbdf8a1363e35ebd6b6dd725992e634e51b8a9f92492cd9e8fc8830d49f0
@@ -1,16 +1,15 @@
1
1
  .container.resource-index[id="#{controller_name}-index"]
2
2
  .card
3
+ h2.card-header
4
+ = resource_name(:other)
5
+ - if can?(:create, resource_class)
6
+ = link_to(t("zadok.new.action", model: resource_name),
7
+ resource_url_for(:new),
8
+ class: "btn btn-primary text-white float-right")
3
9
  .card-body
4
- h2.card-title
5
- = resource_name(:other)
6
- - if can?(:create, resource_class)
7
- = link_to(t("zadok.new.action", model: resource_name),
8
- resource_url_for(:new),
9
- class: "btn btn-primary text-white float-right")
10
-
11
10
  = render "zadok/filters/edit"
12
11
 
13
- table.table.table-light.table-bordered.table-striped.table-hover.table-sm
12
+ table.table.table-light.table-bordered.table-striped.table-hover.table-sm.mb-0
14
13
  thead
15
14
  tr
16
15
  - index_attributes.each do |attr|
@@ -37,3 +36,7 @@
37
36
  outer_window: 0,
38
37
  renderer: Zadok::LinkRenderer,
39
38
  class: "pagination justify-content-center")
39
+
40
+ - if can?(:export, resource_class)
41
+ .card-footer
42
+ = link_to(t("zadok.export.csv", model: resource_name(:other)), url_for(controller: controller_name, action: :index, format: :csv), class: "btn btn-excel")
data/lib/zadok/version.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  module Zadok
4
4
  VERSION_MAJOR = 0
5
5
  VERSION_MINOR = 9
6
- VERSION_TINY = 2
6
+ VERSION_TINY = 3
7
7
  VERSION_PRE = nil
8
8
 
9
9
  VERSION = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zadok
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leon Hooijer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-08 00:00:00.000000000 Z
11
+ date: 2018-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap