[PATCH conductor] Show pool enabled/disabled status in Environments
Imre Farkas
ifarkas at redhat.com
Fri Dec 16 09:35:03 UTC 2011
On 12/15/2011 04:48 PM, tsedovic at redhat.com wrote:
> From: Tomas Sedovic<tomas at sedovic.cz>
>
> https://bugzilla.redhat.com/show_bug.cgi?id=765865
> ---
> src/app/views/pool_families/_list.html.haml | 2 ++
> src/config/locales/en.yml | 3 +++
> 2 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/src/app/views/pool_families/_list.html.haml b/src/app/views/pool_families/_list.html.haml
> index bcb6136..c1be075 100644
> --- a/src/app/views/pool_families/_list.html.haml
> +++ b/src/app/views/pool_families/_list.html.haml
> @@ -27,6 +27,7 @@
> %th= t("pool_families.index.quota_used")
> %th= t("pool_families.index.active_instances")
> %th= t("pool_families.index.available_instances")
> + %th= t("pool_families.index.enabled")
> %th= t("pool_families.index.catalog")
> %th
> - pool_family.pools.each do |pool|
> @@ -39,5 +40,6 @@
> %td= pool.statistics[:quota_percent]
> %td= pool.statistics[:used_quota]
> %td= pool.statistics[:available_quota].nil? ? raw('∞') : pool.statistics[:available_quota]
> + %td= pool.enabled? ? t("pool_families.index.yes") : t("pool_families.index.no")
> %td= link_to pool.catalogs.first.name, catalog_path(pool.catalogs.first) if pool.catalogs.any?
> %td= link_to t(:edit), edit_pool_path(pool), :class => 'pool_family_button'
> diff --git a/src/config/locales/en.yml b/src/config/locales/en.yml
> index e3eef1c..01d3c03 100644
> --- a/src/config/locales/en.yml
> +++ b/src/config/locales/en.yml
> @@ -566,6 +566,9 @@ en:
> active_instances: "Active Inst."
> available_instances: "Available Inst."
> failed_instances: "Failed Inst."
> + enabled: Enabled
> + yes: Yes
> + no: No
> catalog: "Catalog"
> new:
> environments: Environments
ACK
More information about the aeolus-devel
mailing list