Signed-off-by: Benjamin LAN-SUN-LUK <benjamin.lan-sun-luk(a)supinfo.com>
---
app/controllers/home_controller.rb | 6 +++++-
app/views/home/index.html.erb | 3 +--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
index 15d708c..6666871 100644
--- a/app/controllers/home_controller.rb
+++ b/app/controllers/home_controller.rb
@@ -28,7 +28,11 @@ class HomeController < ApplicationController
:except => [:index, :error, :login, :register, :generate_new_password]
def index
-
+ @content = ConfigProperty.fetch('home_page')
+ if @content.nil?
+ ConfigProperty.store('home_page', "<h1>Welcome To Another
Installation Of ProjXP!</h1>")
+ @content = ConfigProperty.fetch('home_page')
+ end
end
def error
diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb
index e9aeb91..110ab83 100644
--- a/app/views/home/index.html.erb
+++ b/app/views/home/index.html.erb
@@ -1,2 +1 @@
-<h1>Welcome To Another Installation Of ProjXP!</h1>
-
+<%= @content %>
--
1.5.6.3