Merge pull request #59 from abf/rosa-build:31-update-notification-message-for-product-build-lists

#31: Update notification about removing ProductBuildList
This commit is contained in:
warpc 2013-03-27 16:03:28 +04:00
commit 9239d10ba2
3 changed files with 18 additions and 15 deletions

View File

@ -32,9 +32,7 @@
= link_to t("layout.build_lists.cancel"), cancel_platform_product_product_build_list_path(pbl.product.platform, pbl.product, pbl),
:method => :put, :confirm => t("layout.confirm"), :class => 'button'
.both
- if pbl.build_started? || pbl.build_canceling?
= render 'shared/log', { :build_started => true, :get_log_path => log_platform_product_product_build_list_path(pbl.product.platform, pbl.product, pbl) }
%br
- if pbl.build_completed? && can?(:update, pbl)
= form_for pbl, :url => platform_product_product_build_list_path(pbl.product.platform, pbl.product, pbl) do |f|
@ -45,14 +43,19 @@
%br
= submit_tag t('layout.update')
.both
- unless pbl.not_delete
.flash_notify
.alert.alert-error
- if pbl.autostarted?
= t('layout.product_build_lists.will_be_exist_2_weeks')
- else
= t('layout.product_build_lists.will_be_exist_3_months')
.both
- unless pbl.not_delete
.flash_notify
.alert.alert-error
- days = pbl.autostarted? ? ProductBuildList::LIVE_TIME : ProductBuildList::MAX_LIVE_TIME
- days = (pbl.created_at.to_date - days.ago.to_date).to_i
- if days > 1
= t('layout.product_build_lists.will_be_exist_n_days', :n => days)
- else
= t('layout.product_build_lists.will_be_removed_today')
.both
- if pbl.build_started? || pbl.build_canceling?
= render 'shared/log', { :build_started => true, :get_log_path => log_platform_product_product_build_list_path(pbl.product.platform, pbl.product, pbl) }
= render 'results', :subject => pbl

View File

@ -1,8 +1,8 @@
en:
layout:
product_build_lists:
will_be_exist_2_weeks: Product build list will be exist in two weeks
will_be_exist_3_months: Product build list will be exist in three months
will_be_exist_n_days: Product build list will be exist in %{n} days
will_be_removed_today: Product build list will be removed today
logs: Logs (last 100 lines)
work_env: Work environment
iso_builder_folder: folder with contents of the GIT project

View File

@ -1,8 +1,8 @@
ru:
layout:
product_build_lists:
will_be_exist_2_weeks: Cборочный лист продукта будет доступен в течение двух недель
will_be_exist_3_months: Cборочный лист продукта будет доступен в течение трех месяцев
will_be_exist_n_days: Cборочный лист продукта будет доступен в течение %{n} дней
will_be_removed_today: Cборочный лист продукта будет удален в течение дня
logs: Логи (последнии 100 строк)
work_env: Рабочее пространство
iso_builder_folder: папка с содержимым GIT проекта