From 63153c941ef5c647c1a064d6ba0b528086da0d9d Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Tue, 8 May 2018 21:36:59 -0700 Subject: [PATCH] Fix template variables In the httpd module, serveraliases defaults to undef, which evaluates to nil in ERB templates. Ensure the template checks for nil values so that the ServerAlias line is only included if there is a server alias. Also correct the variable usage in the index.html.erb template. Change-Id: Ibde097b7dd407884336154a318ec4c5661fda03c --- templates/index.html.erb | 4 ++-- templates/vhost.erb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/index.html.erb b/templates/index.html.erb index 7f59643..c0f1397 100644 --- a/templates/index.html.erb +++ b/templates/index.html.erb @@ -4,10 +4,10 @@ - <%= name.capitalize %> IRC log server + <%= @name.capitalize %> IRC log server -

Welcome to <%= name.capitalize %> IRC log server

+

Welcome to <%= @name.capitalize %> IRC log server