rails-semantic-ui 0.2.0 → 0.2.1
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: a0d1ddf252c9caa5aa5fd2d1eeb4a46a5fbe7dab
|
4
|
+
data.tar.gz: d4ac40d33164f75a92c03b16dd522db8ee0f73ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ac2a378e2b972816d8e1bd0073329d5db1e392f4d9fd6df900b5ce5a10ef239e683f5bcf02ee417806121fc2c653c4e8f353069a6fe730af9f271fd231748c9
|
7
|
+
data.tar.gz: 915d4e732e62119c8a4b3261823a9f90c0afbfb65f86155e4b3da7444f61952a819d6d51135edb5be19fe58df2d59c62a98d7298193c286c6cab4c09dc996906
|
@@ -5,7 +5,7 @@ module SemanticUi
|
|
5
5
|
class_option :force, type: :boolean, default: false, aliases: :f
|
6
6
|
|
7
7
|
def overwrite_layout
|
8
|
-
copy_file 'layout.slim', "app/views/
|
8
|
+
copy_file 'layout.slim', "app/views/layouts/#{layout_name.underscore}.html.slim", force: options[:force]
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
h1 Listing <%= plural_table_name %>
|
2
|
+
|
3
|
+
table.ui.compact.striped.table
|
4
|
+
thead
|
5
|
+
tr
|
6
|
+
<% attributes.each do |attribute| -%>
|
7
|
+
th <%= attribute.human_name %>
|
8
|
+
<% end -%>
|
9
|
+
th
|
10
|
+
th
|
11
|
+
th
|
12
|
+
|
13
|
+
tbody
|
14
|
+
- @<%= plural_table_name %>.each do |<%= singular_table_name %>|
|
15
|
+
tr
|
16
|
+
<% attributes.each do |attribute| -%>
|
17
|
+
td = <%= singular_table_name %>.<%= attribute.name %>
|
18
|
+
<% end -%>
|
19
|
+
td = link_to 'Show', <%= singular_table_name %>
|
20
|
+
td = link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>)
|
21
|
+
td = link_to 'Destroy', <%= singular_table_name %>, data: { confirm: 'Are you sure?' }, method: :delete
|
22
|
+
|
23
|
+
br
|
24
|
+
|
25
|
+
= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-semantic-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeong, Jiung
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- lib/rails/semantic_ui/version.rb
|
65
65
|
- lib/rails_semantic_ui.rb
|
66
66
|
- lib/tasks/semantic_ui.rake
|
67
|
+
- lib/templates/slim/scaffold/index.html.slim
|
67
68
|
homepage: https://github.com/astral1/rails-semantic-ui
|
68
69
|
licenses:
|
69
70
|
- MIT
|
@@ -84,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
85
|
version: '0'
|
85
86
|
requirements: []
|
86
87
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.4.
|
88
|
+
rubygems_version: 2.4.6
|
88
89
|
signing_key:
|
89
90
|
specification_version: 4
|
90
91
|
summary: Rails plugin for using semantic-ui with rails-webpack
|