phantom_helpers 0.0.7 → 0.0.8
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: b68f368476ad6b7cb67c8f87566a775b822290e0
|
4
|
+
data.tar.gz: f8e6d76fcfb9d5fc9403d4d8afe84b302a8b8fd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25c3a7610cfd2045d0272ab41f8a6da5f61b0467d56078e921a745ab5d0858d41d6222072b64553e4245dbbf6b63c63915b6f7b083946874d5c0decc45c1ff17
|
7
|
+
data.tar.gz: cb68da221e7cc23cb8aad2fce8a8f36b360ccc9c4cbf98db0071a3ca7cceaf2ebeecd7cb4c301c870fb035d296569d81e8a618a70b885d6574318af6deef851a
|
@@ -29,7 +29,7 @@ module PhantomHelpers
|
|
29
29
|
|
30
30
|
def link_to_upload_image(resource, options = {})
|
31
31
|
name = ("<span class='glyphicon glyphicon-camera'></span> " + t(:'phantom_helpers.picture.change')).html_safe
|
32
|
-
attributes = {:class => "btn btn-default
|
32
|
+
attributes = {:class => "btn btn-default col-md-12"}.merge(options)
|
33
33
|
link_to name, resource, attributes
|
34
34
|
end
|
35
35
|
|
@@ -106,7 +106,7 @@ module PhantomHelpers
|
|
106
106
|
def link_to_modal_delete(resource, options = {})
|
107
107
|
name = ("<span class='glyphicon glyphicon-trash'></span>").html_safe
|
108
108
|
attributes = {
|
109
|
-
:class => 'btn btn-danger modal-delete-link
|
109
|
+
:class => 'btn btn-danger modal-delete-link col-md-12'
|
110
110
|
}.merge(options)
|
111
111
|
link_to name, resource, attributes
|
112
112
|
end
|
@@ -157,13 +157,13 @@ module PhantomHelpers
|
|
157
157
|
# Edit button with text "Edit" and pencil image
|
158
158
|
def link_to_edit_with_text(resource, options = {})
|
159
159
|
name = ('<span class="glyphicon glyphicon-pencil"></span> '+t(:'phantom_helpers.edit')).html_safe
|
160
|
-
attributes = {:class => "
|
160
|
+
attributes = {:class => "col-md-12 btn btn-warning edit-link"}.merge(options)
|
161
161
|
link_to name, resource, attributes
|
162
162
|
end
|
163
163
|
|
164
164
|
def link_to_edit_with_custom_text(text, resource, options = {})
|
165
165
|
name = ('<span class="glyphicon glyphicon-pencil"></span> '+ text).html_safe
|
166
|
-
attributes = {:class => "
|
166
|
+
attributes = {:class => "col-md-12 btn btn-warning edit-link"}.merge(options)
|
167
167
|
link_to name, resource, attributes
|
168
168
|
end
|
169
169
|
|
@@ -205,7 +205,7 @@ module PhantomHelpers
|
|
205
205
|
def ajax_link_to_back(resource, options = {})
|
206
206
|
name = ('<span class="glyphicon glyphicon-share-alt"></span> ' + t(:'phantom_helpers.back')).html_safe
|
207
207
|
attributes = {
|
208
|
-
:class => "col-md-
|
208
|
+
:class => "col-md-12 btn btn-warning back-link back-modal-link",
|
209
209
|
:remote => true
|
210
210
|
}.merge(options)
|
211
211
|
|
@@ -215,7 +215,7 @@ module PhantomHelpers
|
|
215
215
|
def link_to_back(resource, options = {})
|
216
216
|
name = ('<span class="glyphicon glyphicon-share-alt"></span> '+ t(:'phantom_helpers.back')).html_safe
|
217
217
|
attributes = {
|
218
|
-
:class => 'col-md-
|
218
|
+
:class => 'col-md-12 btn btn-default back-link'
|
219
219
|
}.merge(options)
|
220
220
|
link_to name, resource, attributes
|
221
221
|
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.0.8
|
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-
|
13
|
+
date: 2013-10-07 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: rails helpers for bootstrap 3
|
16
16
|
email: info@genshin.org
|