diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index a65a11fe..d15168df 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -1,5 +1,6 @@ class WelcomeController < ApplicationController def index + @total_entries = Entry.count redirect_to latest_entry_path if user_signed_in? end end diff --git a/app/views/welcome/index.html.haml b/app/views/welcome/index.html.haml index 85335298..f97416f6 100644 --- a/app/views/welcome/index.html.haml +++ b/app/views/welcome/index.html.haml @@ -98,7 +98,6 @@ %p = image_tag "baby.jpg", style: "width: 300px; max-width: 100%;" - .center %h4 %p Read about Dabble Me in... @@ -108,3 +107,8 @@ .clearfix %br %br + +.row + .col-md-12.center + %h4 + Total number of entries: #{format_number(@total_entries)}