Fix PostDate && View Count Title
This commit is contained in:
parent
cd5de45183
commit
d5e85823fe
|
@ -51,6 +51,7 @@ class AnnouncementsController < ApplicationController
|
||||||
"category-head" => t('announcement.table.category'),
|
"category-head" => t('announcement.table.category'),
|
||||||
"link-head" => t('announcement.table.link'),
|
"link-head" => t('announcement.table.link'),
|
||||||
"file-head" => t('announcement.table.file'),
|
"file-head" => t('announcement.table.file'),
|
||||||
|
"view-count-head" => t('announcement.table.view_count'),
|
||||||
"display" => display
|
"display" => display
|
||||||
},
|
},
|
||||||
"total_pages" => announcements.total_pages
|
"total_pages" => announcements.total_pages
|
||||||
|
|
|
@ -320,7 +320,19 @@
|
||||||
|
|
||||||
<% content_for :page_specific_javascript do %>
|
<% content_for :page_specific_javascript do %>
|
||||||
<script>
|
<script>
|
||||||
|
function Appendzero(obj)
|
||||||
|
{
|
||||||
|
if(obj<10) return "0" +""+ obj;
|
||||||
|
else return obj;
|
||||||
|
}
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
|
if (location.pathname.substr(-3)=='new'){
|
||||||
|
var getDate = new Date();
|
||||||
|
var toDay = getDate.getFullYear()+"/"+ (Appendzero(getDate.getMonth()+1))+"/"+Appendzero(getDate.getDate())+" "+Appendzero(getDate.getHours())+":"+Appendzero(getDate.getMinutes());
|
||||||
|
$('input[name="bulletin[postdate]"]').val(toDay);
|
||||||
|
}
|
||||||
|
|
||||||
$("#main-wrap").after("");
|
$("#main-wrap").after("");
|
||||||
|
|
||||||
$(document).on('click', '#add_link', function(){
|
$(document).on('click', '#add_link', function(){
|
||||||
|
|
|
@ -10,6 +10,7 @@ en:
|
||||||
author: Author
|
author: Author
|
||||||
link: Link
|
link: Link
|
||||||
File: File
|
File: File
|
||||||
|
view_count: View Count
|
||||||
add_new: Add New
|
add_new: Add New
|
||||||
approve: Approve
|
approve: Approve
|
||||||
all_articles: All Articles
|
all_articles: All Articles
|
||||||
|
|
|
@ -10,6 +10,7 @@ zh_tw:
|
||||||
author: 張貼人
|
author: 張貼人
|
||||||
link: 超連結
|
link: 超連結
|
||||||
file: 檔案下載
|
file: 檔案下載
|
||||||
|
view_count: 瀏覽人次
|
||||||
add_new: 新建
|
add_new: 新建
|
||||||
approve: 通過
|
approve: 通過
|
||||||
all_articles: 文章列表
|
all_articles: 文章列表
|
||||||
|
|
Loading…
Reference in New Issue