effective_trash 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: 1a76939023ec96d1a1a7616553bb4c985518e1f8
4
- data.tar.gz: c1af33bc21f015d7eb486e5ba2b5e068b69bc222
3
+ metadata.gz: b542e2929ae9716df6b09a9a482657b25fcebf17
4
+ data.tar.gz: caf41ba9a378738c5916d969c45280f4c33c3bd9
5
5
  SHA512:
6
- metadata.gz: 0431a81ded3b5a6b0b17a487fe47e9c013f671e1fc0add41a35e60f45e8815dfcc53950cfc7d5d3c29f5a14158aa1bdd1065d569a1cd6ca109c96aa8df20b559
7
- data.tar.gz: 89576b17f5547c5949d86edd7eb9d7f78816c861b4a2ae34e66d9860370766234d7e8682aafbc1610cf8414a80aa2553e04ed5f79cc2a3add70f988943ac8a0d
6
+ metadata.gz: a7c3a8f18344b204dadef5bb6225a24d0857dd4180803cc3e5302e7e6a07c941b626b2ecec06a7568c8dbe0ccede8c9acf8f8be50e82687d0ed2c50305dae579
7
+ data.tar.gz: 4ff53ef056b81d4f18fd333aeddf446f500172c261fc92878074ac51c4bd2bda818b30241811e342b6a02a0c552bf131ebd8441cd157ac3055bb583302876365
@@ -1,8 +1,9 @@
1
1
  - show_path = (datatable.admin_namespace? ? effective_trash.admin_trash_path(trash) : effective_trash.trash_path(trash))
2
2
 
3
3
  - if defined?(EffectiveBootstrap)
4
- = show_icon_to(show_path)
5
- = icon_to('repeat', effective_trash.restore_trash_path(trash), title: 'Restore', data: { confirm: 'Restore this item?'})
4
+ = dropdown(variation: :dropleft) do
5
+ = dropdown_link_to 'View', show_path
6
+ = dropdown_link_to 'Restore from Trash', effective_trash.restore_trash_path(trash), data: { confirm: 'Restore this item?'}
6
7
  - else
7
8
  = link_to show_path, title: 'view' do
8
9
  %span.glyphicon.glyphicon-eye-open
@@ -1,3 +1,3 @@
1
1
  module EffectiveTrash
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_trash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-07 00:00:00.000000000 Z
11
+ date: 2018-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails