fix view_count

This commit is contained in:
JiangRu 2015-04-13 14:18:41 +08:00
parent 180c91e81a
commit c5ce915435
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ 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 ""),
"view_count" => (page.page_contexts.last.view_count rescue ""),
"view_count" => (page.view_count rescue ""),
"view-count-head" =>t('page_content.view_count'),
"url_to_edit" => url_to_edit
}