From d5e85823fe951d4c16e03da73560d220e4c9710f Mon Sep 17 00:00:00 2001 From: JiangRu Date: Mon, 16 Mar 2015 16:56:53 +0800 Subject: [PATCH] Fix PostDate && View Count Title --- app/controllers/announcements_controller.rb | 1 + app/views/admin/announcements/_form.html.erb | 12 ++++++++++++ config/locales/en.yml | 1 + config/locales/zh_tw.yml | 1 + 4 files changed, 15 insertions(+) diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index e780526..3bd040b 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -51,6 +51,7 @@ class AnnouncementsController < ApplicationController "category-head" => t('announcement.table.category'), "link-head" => t('announcement.table.link'), "file-head" => t('announcement.table.file'), + "view-count-head" => t('announcement.table.view_count'), "display" => display }, "total_pages" => announcements.total_pages diff --git a/app/views/admin/announcements/_form.html.erb b/app/views/admin/announcements/_form.html.erb index 38ead79..b52b3a7 100644 --- a/app/views/admin/announcements/_form.html.erb +++ b/app/views/admin/announcements/_form.html.erb @@ -320,7 +320,19 @@ <% content_for :page_specific_javascript do %>