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.
@@ -1,7 +1,8 @@
1
1
  %h1= t(:edit_title, :model => '<%= singular_table_name %>')
2
2
 
3
- = render 'form'
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
- = link_to t(:show_link), @<%= singular_table_name %>
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
- = link_to t(:new_link, :model => '<%= human_name %>'), new_<%= singular_table_name %>_path
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,5 +1,7 @@
1
1
  %h1= t(:new_title, :model => '<%= singular_table_name %>')
2
2
 
3
+ .action_links
4
+ = link_to t(:back_link), <%= index_helper %>_path
5
+
3
6
  = render 'form'
4
7
 
5
- = link_to t(:back_link), <%= index_helper %>_path
@@ -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
- %p
5
- %b #{<%= class_name %>.human_attribute_name '<%= attribute.human_name %>'}:
9
+ .attribute
10
+ %strong= "#{<%= class_name %>.human_attribute_name '<%= attribute.name %>'}:"
6
11
  = @<%= singular_table_name %>.<%= attribute.name %>
7
12
  <% end -%>
8
13
 
9
- = link_to t(:edit_link), edit_<%= singular_table_name %>_path(@<%= singular_table_name %>)
10
- \|
11
- = link_to t(:back_link), <%= index_helper %>_path
14
+
@@ -1,5 +1,5 @@
1
1
  module Haml
2
2
  module Rails
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
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-10-29 00:00:00 +02:00
18
+ date: 2010-12-09 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency