phantom_helpers 0.0.9 → 0.10.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ca4571eb652fe5070050295013e55a9cf9b5d04
|
4
|
+
data.tar.gz: 7a125f3bf7c3913e25fd7d3bb8ce725182b8c63c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/phantom_helpers.gemspec
CHANGED
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
|
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-
|
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.
|
56
|
+
rubygems_version: 2.0.6
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: Phantom View Helpers
|