semantic-rails-ui 0.0.6 → 0.0.7
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: 463828a526a827e4bd33783cafb44b959dbc2cee
|
4
|
+
data.tar.gz: d194f11811d25ac90919e6819fa3ba59c8daf9de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae2fff680c04431f2088511fdb82b22662267a5a77886a76640342b453152543d3acd1f308bb3e2cedfdb2671bbebc429e537a85c51ff79f2c8284a4e290b858
|
7
|
+
data.tar.gz: e786cdce2d4c535f59a930c11bf318eb85f913df882b1019e16cda75429036e2e64a801b91ab1437592e7f63a880197776d2c0450f8e98107bef69ec8830f544
|
@@ -13,3 +13,22 @@
|
|
13
13
|
//= require semantic-ui
|
14
14
|
//= require semantic-rails-ui/menu
|
15
15
|
//= require semantic-rails-ui/message
|
16
|
+
//= require semantic-rails-ui/confirm
|
17
|
+
|
18
|
+
|
19
|
+
// semantic-ui confirmation dialog:
|
20
|
+
//
|
21
|
+
// <div class="ui small modal">
|
22
|
+
// <div class="header">
|
23
|
+
// Delete user
|
24
|
+
// </div>
|
25
|
+
// <div class="content">Are you sure?</div>
|
26
|
+
// <div class="actions">
|
27
|
+
// <div class="ui red basic cancel inverted button">
|
28
|
+
// <i class="remove icon"></i>No
|
29
|
+
// </div>
|
30
|
+
// <div class="ui green ok inverted button">
|
31
|
+
// <i class="checkmark icon"></i>Yes
|
32
|
+
// </div>
|
33
|
+
// </div>
|
34
|
+
// </div>
|
@@ -29,5 +29,17 @@ module SemanticRailsUi
|
|
29
29
|
def ui_icon(icon_name)
|
30
30
|
content_tag(:i, '', class: "#{icon_name} icon")
|
31
31
|
end
|
32
|
+
|
33
|
+
def ui_delete_link(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 } do
|
41
|
+
ui_icon("remove link") + text
|
42
|
+
end
|
43
|
+
end
|
32
44
|
end
|
33
45
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semantic-rails-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Jancev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -182,6 +182,7 @@ files:
|
|
182
182
|
- Rakefile
|
183
183
|
- app/assets/images/semantic-rails-ui/.keep
|
184
184
|
- app/assets/javascripts/semantic-rails-ui.js
|
185
|
+
- app/assets/javascripts/semantic-rails-ui/confirm.coffee
|
185
186
|
- app/assets/javascripts/semantic-rails-ui/menu.coffee
|
186
187
|
- app/assets/javascripts/semantic-rails-ui/message.coffee
|
187
188
|
- app/assets/stylesheets/semantic-rails-ui.sass
|