semantic-rails-ui 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/semantic_rails_ui/ui_helper.rb +4 -9
- data/lib/semantic-rails-ui/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7411e5336276e84f880d629b470ecff6347f40ae
|
4
|
+
data.tar.gz: bcd8d31a568f851bb2b2de3470b15d7054f8d6fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
34
|
-
|
35
|
-
|
36
|
-
|
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
|