fix some bug

This commit is contained in:
BOHUNG 2019-10-01 00:04:09 +08:00
parent b322731081
commit efcd1f2928
4 changed files with 10 additions and 10 deletions

View File

@ -5,7 +5,7 @@ en:
newfont: Please input newfont newfont: Please input newfont
updatefont: Update updatefont: Update
CKEDITOR: CKEDITOR CKEDITOR: CKEDITOR
Patchfile: patchfile:
table: table:
title : Title title : Title
date : Date date : Date
@ -38,7 +38,7 @@ en:
all_articles: All Articles all_articles: All Articles
settings: Settings settings: Settings
import: Import / Export import: Import / Export
Patchfile: Patchfile patchfile: Patchfile
approval_setting: Approval Setting approval_setting: Approval Setting
approve_bulletin_fail: Approval Fail approve_bulletin_fail: Approval Fail
approve_bulletin_success: Approve Successfully approve_bulletin_success: Approve Successfully

View File

@ -5,7 +5,7 @@ zh_tw:
CKEDITOR: CKEDITOR CKEDITOR: CKEDITOR
newfont: 請輸入要新增的字形 newfont: 請輸入要新增的字形
updatefont: 更新 updatefont: 更新
Patchfile: patchfile:
table: table:
title : 標題 title : 標題
date : 張貼日期 date : 張貼日期
@ -39,7 +39,7 @@ zh_tw:
jsonfeed: JSON 供給連結 jsonfeed: JSON 供給連結
feed_list: 訂閱清單 feed_list: 訂閱清單
all_articles: 文章列表 all_articles: 文章列表
Patchfile: 抓取檔案 patchfile: 抓取檔案
approval_setting: 審核設定 approval_setting: 審核設定
approve_bulletin_fail: 審核失敗 approve_bulletin_fail: 審核失敗
approve_bulletin_success: 審核成功 approve_bulletin_success: 審核成功

View File

@ -2,23 +2,23 @@ require "yaml"
module Patchfile module Patchfile
class Engine < ::Rails::Engine class Engine < ::Rails::Engine
initializer "patchfile" do initializer "patchfile" do
OrbitApp.registration "Patchfile", :type => "ModuleApp" do OrbitApp.registration "patchfile", :type => "ModuleApp" do
module_label "Patchfile.Patchfile" module_label "patchfile.Patchfile"
base_url File.expand_path File.dirname(__FILE__) base_url File.expand_path File.dirname(__FILE__)
widget_methods ["widget","random_Patchfile_widget", "tag_cloud"] widget_methods ["widget","random_Patchfile_widget", "tag_cloud"]
widget_settings [{"data_count"=>30}] widget_settings [{"data_count"=>30}]
taggable "Patchfile" taggable "patchfilefield"
categorizable categorizable
authorizable authorizable
frontend_enabled frontend_enabled
data_count 1..30 data_count 1..30
side_bar do side_bar do
head_label_i18n 'Patchfile.Patchfile', icon_class: "icons-megaphone" head_label_i18n 'patchfile.patchfile', icon_class: "icons-megaphone"
available_for "users" available_for "users"
active_for_controllers (['admin/patchfiles']) active_for_controllers (['admin/patchfiles'])
head_link_path "admin_patchfiles_path" head_link_path "admin_patchfiles_path"
context_link 'Patchfile.Patchfile', context_link 'patchfile.patchfile',
:link_path=>"admin_patchfiles_path" , :link_path=>"admin_patchfiles_path" ,
:priority=>1, :priority=>1,
:active_for_action=>{'admin/patchfiles'=>'index'}, :active_for_action=>{'admin/patchfiles'=>'index'},

View File

@ -1,4 +1,4 @@
# desc "Explaining what the task does" # desc "Explaining what the task does"
# task :bulletin do # task :patchfile do
# # Task goes here # # Task goes here
# end # end