From e6852a91adbb598fa54d7097240af071ddb83f54 Mon Sep 17 00:00:00 2001 From: Keith Date: Tue, 17 Jan 2017 13:43:58 +0800 Subject: [PATCH] Added info of viewcount in datail --- app/views/admin/announcements/_index.html.erb | 4 ++++ config/locales/en.yml | 1 + config/locales/zh_tw.yml | 1 + 3 files changed, 6 insertions(+) diff --git a/app/views/admin/announcements/_index.html.erb b/app/views/admin/announcements/_index.html.erb index 3510c4c..ee3b021 100644 --- a/app/views/admin/announcements/_index.html.erb +++ b/app/views/admin/announcements/_index.html.erb @@ -62,6 +62,10 @@
" class="footable-row-detail-inner" style="display: none;"> +
+ <%= t(:view_count) %> : + <%= b.view_count %> +
<%= t(:tags) %> : <% b.tags.each do |tag| %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 48627ea..5fccf4e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -67,6 +67,7 @@ en: email_sentdate: Email Time email_to: Email To mail_subject: this is an announcement reminder from【%{site_title}】 + view_count: View Counts other_mailaddress: Other Email other_mailaddress_note: Divide different email accounts with "," mail_hi: Hi diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index 15745d8..a179e60 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -69,6 +69,7 @@ zh_tw: activate_email_reminder: 開啟寄送提醒 email_sentdate: 寄送時間 email_to: 寄送對象 + view_count: 瀏覽人次 other_mailaddress: 其他Mail other_mailaddress_note: 輸入多組mail時,請用","逗號隔開 mail_subject: 來自【%{site_title}】的公告事件提醒