semantic-rails-ui 0.0.11 → 0.0.12

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: ed3b17e1d0df406452bb994361d2a986dbbde4af
4
- data.tar.gz: 4d139c2fbcc4789659a4526417553e64ba9fb2cc
3
+ metadata.gz: 7411e5336276e84f880d629b470ecff6347f40ae
4
+ data.tar.gz: bcd8d31a568f851bb2b2de3470b15d7054f8d6fe
5
5
  SHA512:
6
- metadata.gz: c7030b4851033cb5a7945eeda3fd70908f305121e960acc6b57cd4825823031ccc18926c383674a141113702e1fafd113e8f6eed5f8be63b34b29497f89a2fd7
7
- data.tar.gz: ef23e23bc181bade850a74226bf8857f71dcd91cc2c661ac92c836134c6425daaaaf76386af1516ce6c2662c8ab69cf257553599375d28881d79dd2af08aa2c8
6
+ metadata.gz: 26048ae6b82ae9ac92b0d4bf0233b8097af4e6be9abded54870b9cb404016ac96df5c0aae0bd7e2bd68ccbbf1572cc605e8273fe692add123b42d2dacda02047
7
+ data.tar.gz: 3c17c92f61d130456850d5ac6c3d85d800a240f6d8499b283ad0129c65ca4f3d5841fe38073045503bc3bc32ba9b6beb3924cc247aef997a957557656987f54d
@@ -30,15 +30,10 @@ module SemanticRailsUi
30
30
  content_tag(:i, '', class: "#{icon_name} icon")
31
31
  end
32
32
 
33
- def ui_delete_link(title, text, url, message)
34
- if text == nil
35
- text = ''
36
- css_class = "ui red tiny compact link button"
37
- else
38
- css_class = "ui red tiny compact basic button"
39
- end
40
- link_to url, class: css_class, method: :delete, data: { confirm: message, 'confirm-title' => title } do
41
- ui_icon("remove link") + text
33
+ def ui_delete_link(button_text, url, message)
34
+ link_to url, class: "ui red tiny compact basic button", method: :delete,
35
+ data: { confirm: message, 'confirm-title' => button_text } do
36
+ ui_icon("remove link") + button_text
42
37
  end
43
38
  end
44
39
  end
@@ -1,3 +1,3 @@
1
1
  module SemanticRailsUi
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semantic-rails-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Jancev