phantom_helpers 0.0.7 → 0.0.8

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: 05f657bfdd5e3fc1ddb74e9f0aba3c26ec10ceb3
4
- data.tar.gz: c48d247e174006c3c018ca763912dc64d1655c9d
3
+ metadata.gz: b68f368476ad6b7cb67c8f87566a775b822290e0
4
+ data.tar.gz: f8e6d76fcfb9d5fc9403d4d8afe84b302a8b8fd0
5
5
  SHA512:
6
- metadata.gz: 011e88ed38cdb804b69a1e5fe6320c7dddf0716491f6ad7f1058aeee6a312e1117abf82a7515e3a708375a7e758ad241fafbd8e1d89808e118eb074132d2abd7
7
- data.tar.gz: edee1e988a24cce5a8065826f9dadbaca0446b438ab79daf32da4673b05ae90dbf68eebc3cca0a693a727d3f7ec6225a2b518213b524c2d364da4912ca1c7b16
6
+ metadata.gz: 25c3a7610cfd2045d0272ab41f8a6da5f61b0467d56078e921a745ab5d0858d41d6222072b64553e4245dbbf6b63c63915b6f7b083946874d5c0decc45c1ff17
7
+ data.tar.gz: cb68da221e7cc23cb8aad2fce8a8f36b360ccc9c4cbf98db0071a3ca7cceaf2ebeecd7cb4c301c870fb035d296569d81e8a618a70b885d6574318af6deef851a
@@ -56,7 +56,9 @@ module PhantomHelpers
56
56
 
57
57
  def index_header(&block)
58
58
  content_tag :div, class: "row" do
59
- block.call
59
+ content_tag :div, class: "col-md-12" do
60
+ block.call
61
+ end
60
62
  end
61
63
  end
62
64
 
@@ -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 span12"}.merge(options)
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 span12'
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 => "span12 btn edit-link"}.merge(options)
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 => "span12 btn edit-link"}.merge(options)
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-6 btn btn-warning back-link back-modal-link",
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-6 btn back-link'
218
+ :class => 'col-md-12 btn btn-default back-link'
219
219
  }.merge(options)
220
220
  link_to name, resource, attributes
221
221
  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.7'
5
+ s.version = '0.0.8'
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.7
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-09-26 00:00:00.000000000 Z
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