bhf 0.4.14 → 0.4.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,9 +45,9 @@
45
45
  = link_to_if !has_link?(column.field.overwrite_display_type), a.html_safe, (platform.custom_link ? custom_link : edit_link), class: ('quick_edit' unless platform.custom_link)
46
46
 
47
47
  %td.action
48
- - if platform.display_edit
48
+ - unless platform.hide_edit
49
49
  = link_to edit_t(platform), edit_link, class: 'edit'
50
- - if platform.display_delete
50
+ - unless platform.hide_delete
51
51
  = link_to delete_t(platform), bhf_entry_path(platform.name, object), method: :delete, remote: true, class: :delete, confirm: t('bhf.helpers.promts.confirm')
52
52
  - else
53
53
  %td.no_entries{colspan: platform.columns_count}
data/lib/bhf/platform.rb CHANGED
@@ -142,12 +142,12 @@ module Bhf
142
142
  table_options 'sortable'
143
143
  end
144
144
 
145
- def display_edit
146
- table_options 'display_edit'
145
+ def hide_edit
146
+ table_options 'hide_edit'
147
147
  end
148
148
 
149
- def display_delete
150
- table_options 'display_delete'
149
+ def hide_delete
150
+ table_options('hide_delete')
151
151
  end
152
152
 
153
153
  def custom_link
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bhf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.14
4
+ version: 0.4.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-06-21 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70201485646540 !ruby/object:Gem::Requirement
16
+ requirement: &70256895455520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70201485646540
24
+ version_requirements: *70256895455520
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: kaminari
27
- requirement: &70201485645620 !ruby/object:Gem::Requirement
27
+ requirement: &70256895454280 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.12.4
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70201485645620
35
+ version_requirements: *70256895454280
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: haml-rails
38
- requirement: &70201485642100 !ruby/object:Gem::Requirement
38
+ requirement: &70256895451340 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.3.4
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70201485642100
46
+ version_requirements: *70256895451340
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sass-rails
49
- requirement: &70201485641140 !ruby/object:Gem::Requirement
49
+ requirement: &70256895434680 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 3.1.4
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70201485641140
57
+ version_requirements: *70256895434680
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: mootools-rails
60
- requirement: &70201485640160 !ruby/object:Gem::Requirement
60
+ requirement: &70256895432680 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 1.0.1
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70201485640160
68
+ version_requirements: *70256895432680
69
69
  description: Gets you there on time
70
70
  email: anton.pawlik@gmail.com
71
71
  executables: []