phantom_helpers 0.11.0.alpha3 → 0.11.0.alpha4

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: 7d326c53e36234618552988a5b1464cde2c3f214
4
- data.tar.gz: 5e813a8cbd7d547b2e0003e70929c2216cf24449
3
+ metadata.gz: 436e212f42cf8cdc30a97ed55bd108f460e4f6a4
4
+ data.tar.gz: d0140a0ef5a79d942d76fc02966d10eb19e0b290
5
5
  SHA512:
6
- metadata.gz: 72d8dfba824caf1eca5a695e4b9cbc644976791bf3f80b1e4bbd3d0cd484be771de069b7079363b6c4c4a6ea8b184e8a32166bec1ef5118f3fc4e3dacdfd136f
7
- data.tar.gz: 2bdf8889b009c180815ec2ad7ea6871019e6838fb0f81a1c918ed3cd185e0a946403b904dd36fdd1766a8bc659596c61b8e7860da8710c24d8c2eed54105bd2c
6
+ metadata.gz: adf0ecc4d20d0edfb448a963c4c45adad565958ce69cff371a0ca5b5a75db0095659552265058ee34e4046b6b7041bddebc111c8f753dcadd8a740b4dd62b733
7
+ data.tar.gz: fb68736763925094ccf65e288abd363ace02f6524ad504dd07813e8e6d5af894ccef07a2d10ce6d7c9c930170ed1156dacdccfe803f839f3bcd45ce0453ca95b
@@ -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 col-md-12"}.merge(options)
32
+ attributes = {:class => "btn btn-default col-xs-12"}.merge(options)
33
33
  link_to name, resource, attributes
34
34
  end
35
35
 
@@ -68,12 +68,6 @@ module PhantomHelpers
68
68
  link_to name, resource, attributes
69
69
  end
70
70
 
71
- #needs id
72
- def submit_button(text, options={})
73
- attributes = {:type => 'submit'}.merge(options)
74
- button_tag(content_tag('span', text), attributes)
75
- end
76
-
77
71
  def ajax_link_to_recovery(resource, options = {})
78
72
  name = content_tag(:i, nil, :class => 'glyphicon-repeat')
79
73
  attributes = {
@@ -125,7 +119,7 @@ module PhantomHelpers
125
119
  def link_to_modal_delete(options = {})
126
120
  name = ("<span class='glyphicon glyphicon-trash'></span>").html_safe
127
121
  attributes = {
128
- :class => 'btn btn-danger modal-delete-link col-md-12',
122
+ :class => 'btn btn-danger modal-delete-link col-xs-12',
129
123
  :data => {:confirm => nil}
130
124
  }.merge(options)
131
125
  link_to name, nil, attributes
@@ -176,13 +170,13 @@ module PhantomHelpers
176
170
  # Edit button with text "Edit" and pencil image
177
171
  def link_to_edit_with_text(resource, options = {})
178
172
  name = ('<span class="glyphicon glyphicon-pencil"></span> '+t(:'phantom_helpers.edit')).html_safe
179
- attributes = {:class => "col-md-12 btn btn-warning edit-link"}.merge(options)
173
+ attributes = {:class => "col-xs-12 btn btn-warning edit-link"}.merge(options)
180
174
  link_to name, resource, attributes
181
175
  end
182
176
 
183
177
  def link_to_edit_with_custom_text(text, resource, options = {})
184
178
  name = ('<span class="glyphicon glyphicon-pencil"></span> '+ text).html_safe
185
- attributes = {:class => "col-md-12 btn btn-warning edit-link"}.merge(options)
179
+ attributes = {:class => "col-xs-12 btn btn-warning edit-link"}.merge(options)
186
180
  link_to name, resource, attributes
187
181
  end
188
182
 
@@ -206,7 +200,7 @@ module PhantomHelpers
206
200
  def link_to_cancel(options = {})
207
201
  text = ('<span class="glyphicon glyphicon-ban-circle"></span> '+ t(:'phantom_helpers.cancel')).html_safe
208
202
  attributes = {
209
- :class => "col-md-12 btn btn-warning cancel-link",
203
+ :class => "col-xs-12 btn btn-warning cancel-link",
210
204
  :'data-dismiss' => "modal"
211
205
  }.merge(options)
212
206
  link_to text, '#', attributes
@@ -215,7 +209,7 @@ module PhantomHelpers
215
209
  def link_to_modal_cancel(options = {})
216
210
  name = t(:'phantom_helpers.cancel')
217
211
  attributes = {
218
- :class => "col-md-12 btn btn-warning modal-cancel-link",
212
+ :class => "col-xs-12 btn btn-warning modal-cancel-link",
219
213
  :'data-dismiss' => "modal"
220
214
  }.merge(options)
221
215
  link_to name, '#', attributes
@@ -224,7 +218,7 @@ module PhantomHelpers
224
218
  def ajax_link_to_back(resource, options = {})
225
219
  name = ('<span class="glyphicon glyphicon-share-alt"></span> ' + t(:'phantom_helpers.back')).html_safe
226
220
  attributes = {
227
- :class => "col-md-12 btn btn-warning back-link back-modal-link",
221
+ :class => "col-xs-12 btn btn-warning back-link back-modal-link",
228
222
  :remote => true
229
223
  }.merge(options)
230
224
 
@@ -234,7 +228,7 @@ module PhantomHelpers
234
228
  def link_to_back(resource, options = {})
235
229
  name = ('<span class="glyphicon glyphicon-share-alt"></span> '+ t(:'phantom_helpers.back')).html_safe
236
230
  attributes = {
237
- :class => 'col-md-12 btn btn-default back-link'
231
+ :class => 'col-xs-12 btn btn-default back-link'
238
232
  }.merge(options)
239
233
  link_to name, resource, attributes
240
234
  end
@@ -242,7 +236,7 @@ module PhantomHelpers
242
236
  def link_to_index(resource, options = {})
243
237
  name = ('<span class="glyphicon glyphicon-share-alt"></span> '+ t(:'phantom_helpers.index')).html_safe
244
238
  attributes = {
245
- :class => 'col-md-12 btn btn-default index-link'
239
+ :class => 'col-xs-12 btn btn-default index-link'
246
240
  }.merge(options)
247
241
  link_to name, resource, attributes
248
242
  end
@@ -250,7 +244,7 @@ module PhantomHelpers
250
244
  def link_to_report(resource, options = {})
251
245
  name = ('<span class="glyphicon glyphicon-download-alt"></span> '+ t(:'phantom_helpers.report')).html_safe
252
246
  attributes = {
253
- :class => 'col-md-12 btn btn-default report-link'
247
+ :class => 'col-xs-12 btn btn-default report-link'
254
248
  }.merge(options)
255
249
  link_to name, resource, attributes
256
250
  end
@@ -259,7 +253,7 @@ module PhantomHelpers
259
253
  text = ('<span class="glyphicon glyphicon-ok-circle"></span> '+ text).html_safe
260
254
  attributes = {
261
255
  :type => 'submit',
262
- :class => 'col-md-12 btn btn-success button'
256
+ :class => 'col-xs-12 btn btn-success button'
263
257
  }.merge(options)
264
258
  button_tag(content_tag('span', text), attributes)
265
259
  end
@@ -37,7 +37,6 @@ module PhantomHelpers
37
37
  end
38
38
  end
39
39
 
40
-
41
40
  def modal_body(&block)
42
41
  content_tag(:div, class: "panel-body") do
43
42
  block.call
@@ -59,7 +58,6 @@ module PhantomHelpers
59
58
  end
60
59
  end
61
60
 
62
-
63
61
  def modal_close_button
64
62
  content_tag :button, :class => 'close', :'data-dismiss' => 'modal', :'aria-hidden' => true do
65
63
  "&times".html_safe
@@ -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.11.0.alpha3'
5
+ s.version = '0.11.0.alpha4'
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']
@@ -1,9 +1,3 @@
1
- .d-none { display: none }
2
-
3
- .index-header {
4
- margin-bottom: 10px;
5
- }
6
-
7
1
  .panel:last-child {
8
2
  margin-bottom: 20px;
9
3
  margin-top: 10px;
@@ -20,4 +14,7 @@
20
14
  right: 0px;
21
15
  color: red;
22
16
  font-size: 24px;
23
- }
17
+ }
18
+
19
+ .d-none { display: none }
20
+ .index-header { margin-bottom: 10px; }
@@ -1,3 +1,3 @@
1
1
  /*
2
- *= require helpers
2
+ * = require helpers
3
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.11.0.alpha3
4
+ version: 0.11.0.alpha4
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-11-11 00:00:00.000000000 Z
13
+ date: 2013-11-21 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: rails helpers for bootstrap 3
16
16
  email: info@genshin.org
@@ -31,7 +31,7 @@ files:
31
31
  - locales/en.yml
32
32
  - locales/ja.yml
33
33
  - phantom_helpers.gemspec
34
- - vendor/assets/stylesheets/helpers.css
34
+ - vendor/assets/stylesheets/helpers.scss
35
35
  - vendor/assets/stylesheets/phantom_helpers.css
36
36
  homepage: http://github.com/Genshin/phantom_helpers
37
37
  licenses:
@@ -60,4 +60,3 @@ signing_key:
60
60
  specification_version: 4
61
61
  summary: Phantom View Helpers
62
62
  test_files: []
63
- has_rdoc: