On 02/29/2012 03:08 PM, jtomasek(a)redhat.com wrote:
From: Jiri Tomasek<jtomasek(a)redhat.com>
---
src/app/views/deployments/_list.html.haml | 4 ++--
src/app/views/instances/_list.html.haml | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/app/views/deployments/_list.html.haml
b/src/app/views/deployments/_list.html.haml
index bbf7b9b..bd47ec9 100644
--- a/src/app/views/deployments/_list.html.haml
+++ b/src/app/views/deployments/_list.html.haml
@@ -2,8 +2,8 @@
= render :partial => '/layouts/notification'
- content_for :form_header do
- %li= restful_submit_tag "#{t'deployments.list.stop_selected'}",
'stop', multi_stop_deployments_path, 'POST', :class =>
'button', :id => "stop_button"
- %li= restful_submit_tag "#{t'deployments.list.delete_selected'}",
'destroy', multi_destroy_deployments_path, 'DELETE', :class =>
'button danger', :id => "delete_button"
+ %li= restful_submit_tag "#{t'deployments.list.stop_selected'}",
'stop', multi_stop_deployments_path, 'POST', :class =>
'button', :id => "stop_button", 'data-none_selected' =>
t('deployments.flash.error.none_selected')
+ %li= restful_submit_tag "#{t'deployments.list.delete_selected'}",
'destroy', multi_destroy_deployments_path, 'DELETE', :class =>
'button danger', :id => "delete_button",
'data-none_selected' => t('deployments.flash.error.none_selected')
= hidden_field_tag 'backlink', request.url
- content_for :filter_controls do
diff --git a/src/app/views/instances/_list.html.haml
b/src/app/views/instances/_list.html.haml
index 675efc2..7c69109 100644
--- a/src/app/views/instances/_list.html.haml
+++ b/src/app/views/instances/_list.html.haml
@@ -1,7 +1,7 @@
- content_for :form_header do
%li= link_to "#{t'instances.list.export_events'}",
export_events_instances_path(:deployment_id => @deployment), :class =>
'button'
- %li= restful_submit_tag
"#{t'instances.list.stop_selected_instances'}", 'stop',
multi_stop_instances_path, 'GET', :class => 'button', :id =>
'stop_selected_instances'
- %li= restful_submit_tag
"#{t'instances.list.reboot_selected_instances'}", 'reboot',
multi_reboot_instances_path, 'GET', :class => 'button', :id =>
'reboot_selected_instances'
+ %li= restful_submit_tag
"#{t'instances.list.stop_selected_instances'}", 'stop',
multi_stop_instances_path, 'GET', :class => 'button', :id =>
'stop_selected_instances', 'data-none_selected' =>
t('instances.none_selected')
+ %li= restful_submit_tag
"#{t'instances.list.reboot_selected_instances'}", 'reboot',
multi_reboot_instances_path, 'GET', :class => 'button', :id =>
'reboot_selected_instances', 'data-none_selected' =>
t('instances.none_selected_to_reboot')
= hidden_field_tag 'backlink', request.url
- content_for :filter_controls do
ACK to the patchset, nice one!
However, I get "translation missing: fr.default_confirm_message" message
for fr locale, but I guess not this patch is intended to add the french
translations.