From 451176b068637ee4d50923c4508f384ae42b8ead Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 13 May 2015 15:36:42 +0800 Subject: [PATCH] text with number of counts --- app/helpers/application_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3ec14ab..b64a895 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -66,6 +66,7 @@ module ApplicationHelper site_footer = site_footer.nil? ? "" : site_footer html = html.gsub("{{footer-data}}",site_footer) counter = Page.root.view_count.to_s rescue "" + counter = t(:visitors_count) + " : " + counter html = html.gsub("{{site-counter}}",counter) html.html_safe end