languages fix

This commit is contained in:
Harry Bomrah 2018-01-19 17:07:00 +08:00
parent 5711555db0
commit dc7cf82a95
4 changed files with 7 additions and 5 deletions

View File

@ -1,7 +1,7 @@
class Admin::PageContentsController < OrbitAdminController
before_action ->(module_app = @app_title) { set_variables module_app }
def index
@table_fields = [:page_id, :name,:version,:update_at,:last_modified, :category]
@table_fields = ["page_content.id", :name,:version,:update_at,:last_modified, :category]
@filter_fields = {}
if params[:sort].blank? && params[:keywords].blank?
@pages = get_pages_sorted(Page.root)

View File

@ -26,7 +26,7 @@
<td><%= User.find(page.page_contexts.last.update_user_id).user_name rescue nil %></td>
<td>
<% if can_edit_or_delete?(page) %>
<%= select_tag("category_id",options_for_select(@categories, (page.category_id.to_s rescue "")), prompt: "Select a category", class: "category_select", style: "margin-bottom:0; width:150px;") %>
<%= select_tag("category_id",options_for_select(@categories, (page.category_id.to_s rescue "")), prompt: t("select_category"), class: "category_select", style: "margin-bottom:0; width:150px;") %>
<button <%= !page.category_id.nil? ? "data-page-category-id=#{page.category_id.to_s}" : "" %> data-page-id="<%= page.id.to_s %>" class="btn btn-primary save_category hide">Save</button>
<% end %>
</td>

View File

@ -5,6 +5,7 @@ en:
view_count: View count
save: Save
all: All
id: ID
wiki: Wiki Pages
parent_page: Parent Page Id
create_page_content_success: Page content was successfully created

View File

@ -4,11 +4,12 @@ zh_tw:
context: 內文
view_count: 瀏覽人次
save: 送出
wiki: Wiki Pages
parent_page: Parent Page Id
wiki: Wiki分頁
parent_page: 父頁帳號
create_page_content_success: 建立頁面內容成功
editing_page_content: 編輯頁面內容
all: All
all: 全部
id: 帳號
frontend:
page: 頁面前台
update_page_content_success: 更新頁面內容成功