phantom_helpers 0.0.9 → 0.10.0

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
  SHA1:
3
- metadata.gz: c20913b850d99d45a2145e26a599a1aec40d7e67
4
- data.tar.gz: 3197ae2ccc24ae747a85af1cfe46ca90b97b7887
3
+ metadata.gz: 2ca4571eb652fe5070050295013e55a9cf9b5d04
4
+ data.tar.gz: 7a125f3bf7c3913e25fd7d3bb8ce725182b8c63c
5
5
  SHA512:
6
- metadata.gz: 8276cabd2bf16e43b0f85f35a7dc68382db5857566d172512f69e7d9f3650c503d2b94419d5905c8eab79cbba00fccc6221e61185952994521086919791efc66
7
- data.tar.gz: fd119d67445462d1bc292063e7aae001f6af2b0458c55bec36c504ac09799b356d123a689700174b5cb5dbac54f87a58cbec770c811c1e858560aa5ea140983f
6
+ metadata.gz: 38cabb862d47ea6d8dc6c438f0d194689f959cae2c9e2d95150ce6f1d37ceb88c77d15e22552fc81c39b59aaa464eb06bf91dc6f250b3de7060026d0668332c2
7
+ data.tar.gz: 14f392824a2bac600e8186a5350a604457aba825438a5d7b6b0357f3d45081d0da4ebda10345939c14da762e1b1d6e75158ac01b9f0ff3e9aa30ba530f541977
@@ -115,6 +115,7 @@ module PhantomHelpers
115
115
  name = ("<span class='glyphicon glyphicon-remove'></span>").html_safe
116
116
  attributes = {
117
117
  :remote => true,
118
+ :method => :patch,
118
119
  :data => { :confirm => t(:'phantom_helpers.are_you_sure') },
119
120
  :class => 'btn btn-xs btn-danger delete-link'
120
121
  }.merge(options)
@@ -139,12 +140,11 @@ module PhantomHelpers
139
140
  name = ("<span class='glyphicon glyphicon-pencil'></span>").html_safe
140
141
  attributes = {
141
142
  :remote => true,
142
- :class => "btn btn-xs btn-warning edit-link"
143
+ :class => "btn btn-xs btn-warning js-edit-link"
143
144
  }.merge(options)
144
145
  link_to name, resource, attributes
145
146
  end
146
147
 
147
-
148
148
  # Edit button with only pencil image - without text
149
149
  def link_to_edit(resource, options = {})
150
150
  name = ("<span class='glyphicon glyphicon-edit'></span>").html_safe
@@ -5,7 +5,7 @@ module PhantomHelpers
5
5
  def table_for(id, &block)
6
6
  content_tag :div, class: "row" do
7
7
  content_tag :div, class: "col-md-12" do
8
- content_tag :table, class: "table table-striped table-bordered table-condensed", id: id do
8
+ content_tag :table, class: "table table-striped table-bordered table-condensed mb-0", id: id do
9
9
  block.call
10
10
  end
11
11
  end
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'phantom_helpers'
5
- s.version = '0.0.9'
5
+ s.version = '0.10.0'
6
6
  s.summary = 'Phantom View Helpers'
7
7
  s.description = 'rails helpers for bootstrap 3'
8
8
  s.licenses = ['GNU GPL-3', 'AGPL-3']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phantom_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vassil Kalkov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-10-14 00:00:00.000000000 Z
13
+ date: 2013-10-16 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: rails helpers for bootstrap 3
16
16
  email: info@genshin.org
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - none
55
55
  rubyforge_project:
56
- rubygems_version: 2.0.3
56
+ rubygems_version: 2.0.6
57
57
  signing_key:
58
58
  specification_version: 4
59
59
  summary: Phantom View Helpers