From f48e68fbf5889a837cb4f7442e39997eea94511c Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Sun, 13 Jan 2013 16:36:51 +0000 Subject: gateway views --- app/views/gateways/show.html.haml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 app/views/gateways/show.html.haml (limited to 'app/views/gateways/show.html.haml') diff --git a/app/views/gateways/show.html.haml b/app/views/gateways/show.html.haml new file mode 100644 index 0000000..c9942dd --- /dev/null +++ b/app/views/gateways/show.html.haml @@ -0,0 +1,19 @@ +- title t("gateways.show.page_title") + +%p + %strong= t('gateways.show.name') + ":" + = @gateway.name +%p + %strong= t('gateways.show.technology') + ":" + = @gateway.technology +%p + %strong= t('gateways.show.inbound') + ":" + = @gateway.inbound +%p + %strong= t('gateways.show.outbound') + ":" + = @gateway.outbound +%p + %strong= t('gateways.show.description') + ":" + = @gateway.description + += render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @gateway } \ No newline at end of file -- cgit v1.2.3 From 1ddeac8a2d7066323dc388bfbdf31a005d4e562f Mon Sep 17 00:00:00 2001 From: spag Date: Sun, 13 Jan 2013 23:45:21 +0100 Subject: gateway view display settings/parameters --- app/views/gateways/show.html.haml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'app/views/gateways/show.html.haml') diff --git a/app/views/gateways/show.html.haml b/app/views/gateways/show.html.haml index c9942dd..3460c58 100644 --- a/app/views/gateways/show.html.haml +++ b/app/views/gateways/show.html.haml @@ -16,4 +16,17 @@ %strong= t('gateways.show.description') + ":" = @gateway.description -= render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @gateway } \ No newline at end of file += render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @gateway } + + +%h2= t('gateway_settings.index.page_title') +- if @gateway.gateway_settings.any? + = render "gateway_settings/index_core", :gateway_settings => @gateway.gateway_settings + %br += render :partial => 'shared/create_link', :locals => { :parent => @gateway, :child_class => GatewaySetting } + +%h2= t('gateway_parameters.index.page_title') +- if @gateway.gateway_parameters.any? + = render "gateway_parameters/index_core", :gateway_parameters => @gateway.gateway_parameters + %br += render :partial => 'shared/create_link', :locals => { :parent => @gateway, :child_class => GatewayParameter } -- cgit v1.2.3 From cb5fdade73a9e06ce25cb0c688ac9be4ea7f1e49 Mon Sep 17 00:00:00 2001 From: spag Date: Mon, 14 Jan 2013 09:48:46 +0100 Subject: make gateway_parameters less prominent --- app/views/gateways/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/gateways/show.html.haml') diff --git a/app/views/gateways/show.html.haml b/app/views/gateways/show.html.haml index 3460c58..ebf75a5 100644 --- a/app/views/gateways/show.html.haml +++ b/app/views/gateways/show.html.haml @@ -25,8 +25,8 @@ %br = render :partial => 'shared/create_link', :locals => { :parent => @gateway, :child_class => GatewaySetting } -%h2= t('gateway_parameters.index.page_title') - if @gateway.gateway_parameters.any? + %h2= t('gateway_parameters.index.page_title') = render "gateway_parameters/index_core", :gateway_parameters => @gateway.gateway_parameters %br = render :partial => 'shared/create_link', :locals => { :parent => @gateway, :child_class => GatewayParameter } -- cgit v1.2.3 From a248db30eb469f1fd99508df0cfbf47c4ad80b8c Mon Sep 17 00:00:00 2001 From: spag Date: Tue, 15 Jan 2013 14:00:19 +0100 Subject: display id --- app/views/gateways/show.html.haml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app/views/gateways/show.html.haml') diff --git a/app/views/gateways/show.html.haml b/app/views/gateways/show.html.haml index ebf75a5..a9b0d18 100644 --- a/app/views/gateways/show.html.haml +++ b/app/views/gateways/show.html.haml @@ -1,5 +1,8 @@ - title t("gateways.show.page_title") +%p + %strong= t('gateways.show.id') + ":" + = @gateway.id %p %strong= t('gateways.show.name') + ":" = @gateway.name @@ -19,14 +22,14 @@ = render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @gateway } -%h2= t('gateway_settings.index.page_title') +%h3= t('gateway_settings.index.page_title') - if @gateway.gateway_settings.any? = render "gateway_settings/index_core", :gateway_settings => @gateway.gateway_settings %br = render :partial => 'shared/create_link', :locals => { :parent => @gateway, :child_class => GatewaySetting } - if @gateway.gateway_parameters.any? - %h2= t('gateway_parameters.index.page_title') + %h3= t('gateway_parameters.index.page_title') = render "gateway_parameters/index_core", :gateway_parameters => @gateway.gateway_parameters %br = render :partial => 'shared/create_link', :locals => { :parent => @gateway, :child_class => GatewayParameter } -- cgit v1.2.3 From 4ea0e252683d89794deff7b1b3689d2cdf61e0d0 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Sun, 20 Jan 2013 19:54:11 +0100 Subject: Added a gateways table to tenant#view. --- app/views/gateways/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/gateways/show.html.haml') diff --git a/app/views/gateways/show.html.haml b/app/views/gateways/show.html.haml index a9b0d18..9d0ee53 100644 --- a/app/views/gateways/show.html.haml +++ b/app/views/gateways/show.html.haml @@ -28,8 +28,8 @@ %br = render :partial => 'shared/create_link', :locals => { :parent => @gateway, :child_class => GatewaySetting } +%h3= t('gateway_parameters.index.page_title') - if @gateway.gateway_parameters.any? - %h3= t('gateway_parameters.index.page_title') = render "gateway_parameters/index_core", :gateway_parameters => @gateway.gateway_parameters %br = render :partial => 'shared/create_link', :locals => { :parent => @gateway, :child_class => GatewayParameter } -- cgit v1.2.3 From 18ed88c7e3c789366f6e5443dc4ee0bc981a4b88 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Mon, 21 Jan 2013 20:18:16 +0100 Subject: Started the migration to Twitter Bootstrap. --- app/views/gateways/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/gateways/show.html.haml') diff --git a/app/views/gateways/show.html.haml b/app/views/gateways/show.html.haml index 9d0ee53..9a3e1c4 100644 --- a/app/views/gateways/show.html.haml +++ b/app/views/gateways/show.html.haml @@ -1,4 +1,4 @@ -- title t("gateways.show.page_title") +- content_for :title, t("gateways.show.page_title") %p %strong= t('gateways.show.id') + ":" -- cgit v1.2.3