From ffc4586d5b3973ea0f8b2598c538b20f57eb4946 Mon Sep 17 00:00:00 2001 From: Robert Lyall Date: Mon, 8 May 2017 21:21:34 +0100 Subject: [PATCH] Only display a server's IP pool name if it has an IP pool (#121) --- app/views/ip_pool_rules/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/ip_pool_rules/index.html.haml b/app/views/ip_pool_rules/index.html.haml index 2a4601a..636c366 100644 --- a/app/views/ip_pool_rules/index.html.haml +++ b/app/views/ip_pool_rules/index.html.haml @@ -60,6 +60,6 @@ %dl.ipPoolRuleList__condition %dt Will be sent using: %dd= ip_pool_rule.ip_pool.name - - if @server + - if @server.ip_pool %p.ipPoolRuleListDefault.u-margin All mail that doesn't match a rule above will be sent using #{@server.ip_pool.name}. %p.u-center= link_to "Add another rule", [:new, organization, @server, :ip_pool_rule], :class => "button button--positive"