text with number of counts

This commit is contained in:
Harry Bomrah 2015-05-13 15:36:42 +08:00
parent 694f839217
commit 451176b068
1 changed files with 1 additions and 0 deletions

View File

@ -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