slim-rails 2.1.2 → 2.1.3

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: 81302acdfe5208267fcccaa1b85fa1a0563abb6e
4
- data.tar.gz: 9c536d254450a0abef40855ec024b6a7f4ab6579
3
+ metadata.gz: ee2d450f6a9d4b5dd76aba11730af9a014af63aa
4
+ data.tar.gz: 82d53ac927481bdf5471cf60451dff4c4d6d3061
5
5
  SHA512:
6
- metadata.gz: 22be9ab81a702cf22e27f3f397b9fbf85224c2b71fee289115abccdc0eab95f6076d4bf2c6da56996a1827dd2fca96776d9c4236a90863f361cb1a161d21da33
7
- data.tar.gz: cf301b3638cd1ea21a13cfcd5ead4786cb25516235ae5fe1be82e7a52f8943a6163cf736c799702a03a8fafa9035535273608efe817796580dcb737e030ffb66
6
+ metadata.gz: cb7aafbafcd928dba82acd412555cd7cfac69a60d156828153b095e6089ed693d1b1fa480b8f18661cb288969069d03463faf3f5b359ae659dd1a2955381d086
7
+ data.tar.gz: 439ea5abd2474390b9778f31e59c3cea3e83e78f74c160f41b5a5de8a0ebba009303ebe0cc8812efe152f4a59a59eb2433c250cae5d1112025face6d342abe4c
@@ -1,22 +1,24 @@
1
1
  h1 Listing <%= plural_table_name %>
2
2
 
3
3
  table
4
- tr
4
+ thead
5
+ tr
5
6
  <% attributes.each do |attribute| -%>
6
- th <%= attribute.human_name %>
7
+ th <%= attribute.human_name %>
7
8
  <% end -%>
8
- th
9
- th
10
- th
9
+ th
10
+ th
11
+ th
11
12
 
12
- - @<%= plural_table_name %>.each do |<%= singular_table_name %>|
13
- tr
13
+ tbody
14
+ - @<%= plural_table_name %>.each do |<%= singular_table_name %>|
15
+ tr
14
16
  <% attributes.each do |attribute| -%>
15
- td = <%= singular_table_name %>.<%= attribute.name %>
17
+ td = <%= singular_table_name %>.<%= attribute.name %>
16
18
  <% end -%>
17
- td = link_to 'Show', <%= singular_table_name %>
18
- td = link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>)
19
- td = link_to 'Destroy', <%= singular_table_name %>, data: {:confirm => 'Are you sure?'}, :method => :delete
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
20
22
 
21
23
  br
22
24
 
@@ -1,5 +1,5 @@
1
1
  module Slim
2
2
  module Rails
3
- VERSION = "2.1.2"
3
+ VERSION = "2.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slim-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonardo Almeida
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-10 00:00:00.000000000 Z
11
+ date: 2014-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake