bhf 0.4.31 → 0.4.32

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,8 @@ class Bhf::EntriesController < Bhf::ApplicationController
5
5
 
6
6
  def new
7
7
  @form_url = bhf_entries_path(@platform.name)
8
+
9
+ render layout: 'bhf/quick_edit' if @quick_edit
8
10
  end
9
11
 
10
12
  def edit
@@ -3,7 +3,8 @@
3
3
  %caption
4
4
  %h4= platform.title
5
5
  %p.info= platform.pagination.info platform
6
- %p.create= link_to new_t(platform), new_bhf_entry_path(platform.name), class: :alt_button
6
+ - unless platform.hide_create
7
+ %p.create= link_to new_t(platform), new_bhf_entry_path(platform.name), class: :alt_button
7
8
  - unless platform.custom_partial
8
9
  = render partial: 'search', locals: {platform: platform} if platform.search?
9
10
 
data/lib/bhf/platform.rb CHANGED
@@ -146,6 +146,10 @@ module Bhf
146
146
  table_options 'hide_edit'
147
147
  end
148
148
 
149
+ def hide_create
150
+ table_options 'hide_create'
151
+ end
152
+
149
153
  def show_duplicate
150
154
  table_options 'show_duplicate'
151
155
  end
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.31
4
+ version: 0.4.32
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-16 00:00:00.000000000Z
12
+ date: 2013-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70320863617360 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: 3.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70320863617360
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.0
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: kaminari
27
- requirement: &70320863616880 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: 0.12.4
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70320863616880
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 0.12.4
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: haml-rails
38
- requirement: &70320863616340 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: 0.3.4
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *70320863616340
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.3.4
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: sass-rails
49
- requirement: &70320863611700 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: 3.1.4
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *70320863611700
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: 3.1.4
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: mootools-rails
60
- requirement: &70320863611040 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ! '>='
@@ -65,7 +85,12 @@ dependencies:
65
85
  version: 1.0.1
66
86
  type: :runtime
67
87
  prerelease: false
68
- version_requirements: *70320863611040
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: 1.0.1
69
94
  description: Gets you there on time
70
95
  email: anton.pawlik@gmail.com
71
96
  executables: []
@@ -209,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
234
  version: '0'
210
235
  requirements: []
211
236
  rubyforge_project: nowarning
212
- rubygems_version: 1.8.10
237
+ rubygems_version: 1.8.25
213
238
  signing_key:
214
239
  specification_version: 3
215
240
  summary: Agnostic Rails backend