diff --git a/app/controllers/page_contents_controller.rb b/app/controllers/page_contents_controller.rb index 204557e..f3f6f8e 100644 --- a/app/controllers/page_contents_controller.rb +++ b/app/controllers/page_contents_controller.rb @@ -5,6 +5,8 @@ class PageContentsController < OrbitAdminController url_to_edit = OrbitHelper.user_can_edit?(page) ? "/admin/page_contents/new?page_id=#{page.id.to_s}" : "" { "html" => (page.page_contexts.last.content rescue ""), + "title" => (page.name rescue ""), + "view_count" => (page.view_count rescue ""), "view_count" => (page.view_count rescue ""), "view-count-head" =>t('page_content.view_count'), "url_to_edit" => url_to_edit diff --git a/app/views/page_contents/index.html.erb b/app/views/page_contents/index.html.erb index 764ca7b..24b9729 100644 --- a/app/views/page_contents/index.html.erb +++ b/app/views/page_contents/index.html.erb @@ -4,6 +4,7 @@ <%= data["view-count-head"] %>: <%= data["view_count"] %> +