flockonus-nifty-generators 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG
CHANGED
@@ -19,4 +19,9 @@ module LayoutHelper
|
|
19
19
|
def javascript(*args)
|
20
20
|
content_for(:head) { javascript_include_tag(*args) }
|
21
21
|
end
|
22
|
+
|
23
|
+
def data_criacao_table ar
|
24
|
+
content_tag(:span, ar.created_at.to_i.to_s, :class => 'hidden') +
|
25
|
+
" #{l(ar.created_at, :format => :short)}"
|
26
|
+
end
|
22
27
|
end
|
@@ -6,6 +6,7 @@
|
|
6
6
|
<table class="data_table">
|
7
7
|
<thead>
|
8
8
|
<tr>
|
9
|
+
<th>Criação</th>
|
9
10
|
<%- for attribute in model_attributes -%>
|
10
11
|
<th><%= attribute.human_name.titleize %></th>
|
11
12
|
<%- end -%>
|
@@ -15,15 +16,16 @@
|
|
15
16
|
<tbody>
|
16
17
|
<%% for <%= instance_name %> in @<%= instances_name %> %>
|
17
18
|
<tr>
|
19
|
+
<td><%%= data_criacao_table <%= instance_name %> %></td>
|
18
20
|
<%- for attribute in model_attributes -%>
|
19
21
|
<td><%%= <%= instance_name %>.<%= attribute.name %> %></td>
|
20
22
|
<%- end -%>
|
21
23
|
<td>
|
22
24
|
<%- if action? :show -%>
|
23
|
-
<%%= link_to "Exibir", <%= item_path %> %>
|
25
|
+
<%%= link_to "Exibir", <%= item_path %> %> |
|
24
26
|
<%- end -%>
|
25
27
|
<%- if action? :edit -%>
|
26
|
-
<%%= link_to "Editar", <%= item_path :action => :edit %> %>
|
28
|
+
<%%= link_to "Editar", <%= item_path :action => :edit %> %> |
|
27
29
|
<%- end -%>
|
28
30
|
<%- if action? :destroy -%>
|
29
31
|
<%%= link_to "Excluir", <%= item_path %>, :confirm => 'Esta ação não tem volta, deseja prosseguir?', :method => :delete %>
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<%%= link_to "Editar", <%= item_path :action => :edit, :instance_variable => true %> %> |
|
13
13
|
<%- end -%>
|
14
14
|
<%- if action? :destroy -%>
|
15
|
-
<%%= link_to "Deletar", <%= item_path :instance_variable => true %>, :confirm => '
|
15
|
+
<%%= link_to "Deletar", <%= item_path :instance_variable => true %>, :confirm => 'Excluir permanentemente?', :method => :delete %> |
|
16
16
|
<%- end -%>
|
17
17
|
<%- if action? :index -%>
|
18
18
|
<%%= link_to "Listagem", <%= items_path %> %>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flockonus-nifty-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 11
|
10
|
+
version: 0.0.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Fabiano PS
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-03-04 00:00:00 -03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|