diff --git a/app/controllers/about_controller.rb b/app/controllers/about_controller.rb index 45cd7669..06b59b9d 100644 --- a/app/controllers/about_controller.rb +++ b/app/controllers/about_controller.rb @@ -2,9 +2,9 @@ class AboutController < ApplicationController def index - if Retrospring::Config.advanced_frontpage_enabled? - render template: "about/index_advanced" - end + return unless Retrospring::Config.advanced_frontpage_enabled? + + render template: "about/index_advanced" end def about diff --git a/app/views/about/index.html.haml b/app/views/about/index.html.haml index 7925968e..5ddf24c1 100644 --- a/app/views/about/index.html.haml +++ b/app/views/about/index.html.haml @@ -28,5 +28,5 @@ = f.check_box :remember_me = f.primary t("voc.login"), class: "btn btn-primary d-grid w-100" - + = render "shared/links"