[PATCH 2/2] BZ 790828 replaced 'Upload' with 'Push'
Tzu-Mainn Chen
tzumainn at redhat.com
Thu Feb 16 14:46:36 UTC 2012
---
src/app/views/images/show.html.haml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app/views/images/show.html.haml b/src/app/views/images/show.html.haml
index a9190ec..3bc5a3c 100644
--- a/src/app/views/images/show.html.haml
+++ b/src/app/views/images/show.html.haml
@@ -78,7 +78,7 @@
- if timg and b = @builder.find_active_push(timg.id, account.provider.name, account.credentials_hash['username'])
= label_tag b.status
- elsif timg and not pimg and @build and @build.id == @latest_build
- = button_to t('.upload'), image_provider_images_path(@image.id, :build_id => @build.id, :target_image_id => timg.id, :account_id => account.id), :method => :post, :class => 'upload_image'
+ = button_to t('.push'), image_provider_images_path(@image.id, :build_id => @build.id, :target_image_id => timg.id, :account_id => account.id), :method => :post, :class => 'upload_image'
- failed_push_count = @builder.failed_push_count(timg.id, account.provider.name, account.credentials_hash['username'])
- if failed_push_count > 0
= t('images.show.failed_push_attempts', :count => failed_push_count )
@@ -170,7 +170,7 @@
path = path.sub('replace_build_id', '${build[\'uuid\']}')
path = path.sub('replace_target_image_id', '${target_images_by_target[driver][\'uuid\']}')
path = path.sub('replace_account_id', '${account[\'id\']}')
- button_to(t('images.show.upload'), path, :method => :post, :class => 'upload_image')}
+ button_to(t('images.show.push'), path, :method => :post, :class => 'upload_image')}
{{if failed_push_counts[account['id']] > 1}}
#{t('images.show.failed_push_attempts', :count => '${failed_push_counts[account[\'id\']]}' )}
{{else failed_push_counts[account['id']] == 1}}
--
1.7.6.5
More information about the aeolus-devel
mailing list