haml-rails-with-i18n 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/haml/scaffold/templates/edit.html.haml +5 -4
- data/lib/generators/haml/scaffold/templates/index.html.haml +2 -5
- data/lib/generators/haml/scaffold/templates/new.html.haml +3 -1
- data/lib/generators/haml/scaffold/templates/show.html.haml +8 -5
- data/lib/haml-rails/version.rb +1 -1
- metadata +3 -3
@@ -1,7 +1,8 @@
|
|
1
1
|
%h1= t(:edit_title, :model => '<%= singular_table_name %>')
|
2
2
|
|
3
|
-
|
3
|
+
.action_links
|
4
|
+
= link_to t(:show_link), @<%= singular_table_name %>
|
5
|
+
\|
|
6
|
+
= link_to t(:back_link), <%= index_helper %>_path
|
4
7
|
|
5
|
-
=
|
6
|
-
\|
|
7
|
-
= link_to t(:back_link), <%= index_helper %>_path
|
8
|
+
= render 'form'
|
@@ -1,15 +1,13 @@
|
|
1
1
|
%h1=t(:index_title, :model => '<%= plural_table_name %>')
|
2
2
|
|
3
|
-
|
3
|
+
.action_links
|
4
|
+
= link_to t(:new_link, :model => '<%= human_name %>'), new_<%= singular_table_name %>_path
|
4
5
|
|
5
6
|
%table
|
6
7
|
%tr
|
7
8
|
<% for attribute in attributes -%>
|
8
9
|
%th= <%= class_name %>.human_attribute_name '<%= attribute.name %>'
|
9
10
|
<% end -%>
|
10
|
-
%th
|
11
|
-
%th
|
12
|
-
%th
|
13
11
|
|
14
12
|
- @<%= plural_table_name %>.each do |<%= singular_table_name %>|
|
15
13
|
%tr
|
@@ -20,4 +18,3 @@
|
|
20
18
|
%td= link_to t(:edit_link), edit_<%= singular_table_name %>_path(<%= singular_table_name %>)
|
21
19
|
%td= link_to t(:destroy_link), <%= singular_table_name %>, :confirm => t(:confirm_destroy_message), :method => :delete
|
22
20
|
|
23
|
-
%br
|
@@ -1,11 +1,14 @@
|
|
1
1
|
%p#notice= notice
|
2
2
|
|
3
|
+
.action_links
|
4
|
+
= link_to t(:edit_link), edit_<%= singular_table_name %>_path(@<%= singular_table_name %>)
|
5
|
+
\|
|
6
|
+
= link_to t(:back_link), <%= index_helper %>_path
|
7
|
+
|
3
8
|
<% for attribute in attributes -%>
|
4
|
-
|
5
|
-
%
|
9
|
+
.attribute
|
10
|
+
%strong= "#{<%= class_name %>.human_attribute_name '<%= attribute.name %>'}:"
|
6
11
|
= @<%= singular_table_name %>.<%= attribute.name %>
|
7
12
|
<% end -%>
|
8
13
|
|
9
|
-
|
10
|
-
\|
|
11
|
-
= link_to t(:back_link), <%= index_helper %>_path
|
14
|
+
|
data/lib/haml-rails/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- "Andr\xC3\xA9 Arko"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-12-09 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|