add table head

This commit is contained in:
Ruling-Mac 2015-10-21 17:34:28 +08:00
parent 7f4f8285ab
commit e142d5c07a
4 changed files with 37 additions and 7 deletions

View File

@ -50,13 +50,13 @@ class DigitalArchivesController < ApplicationController
"department" => (dca.department rescue ""),
"character" => (dca.character rescue ""),
"description" => (dca.description rescue ""),
"detail_description" => (dca.detail_description rescue ""),
"detail-description" => (dca.detail_description rescue ""),
"material" => (dca.material rescue ""),
"size" => (dca.size rescue ""),
"item_id" => (dca.item_id rescue ""),
"item_from" => (dca.item_from rescue ""),
"item_status" => (dca.item_status rescue ""),
"album_content" => (dca.album_content rescue ""),
"item-id" => (dca.item_id rescue ""),
"item-from" => (dca.item_from rescue ""),
"item-status" => (dca.item_status rescue ""),
"album-content" => (dca.album_content rescue ""),
"files" => dcafs
}
end
@ -65,7 +65,17 @@ class DigitalArchivesController < ApplicationController
{
"digital_content_archives" => dcas,
"extras" => {
"page_url" => url
"page_url" => url,
"th_title" => t('title'),
"th_location" => t('location'),
"th_description" => t('description'),
"th_detaildes" => t('detaildes'),
"th_material" => t('material'),
"th_size" => t('size'),
"th_item-date" => t('item_date'),
"th_item-id" => t('item_id'),
"th_item-from" => t('item_from'),
"th_item-status" => t('item_status')
}
}
end

View File

@ -1 +1,3 @@
<%# data = action_data %>
<%#= data.inspect %>
<%= render_view %>

View File

@ -16,4 +16,13 @@ en:
item_from : "Item From"
item_status : "Item Status"
album_content : "Album Content"
show_lang: Language
show_lang: Language
title: Title
location: Location
description: Description
detaildes: Detail Description
size: Size
item_data: Item Date
item_id: Item ID
item_from: Item From
item_status: Item Status

View File

@ -18,3 +18,12 @@ zh_tw:
item_status : "保存情形"
album_content : "相片描述"
show_lang: "呈現語系"
title: "標題"
location: "地點"
description: "描述"
detaildes: "詳細描述"
size: "尺寸"
item_data: "物品日期"
item_id: "物品編號"
item_from: "贈與者"
item_status: "保存狀況"