Frontend
This commit is contained in:
parent
4c706e3bb8
commit
27e16e1d9d
|
@ -0,0 +1,58 @@
|
|||
class PersonalExperiencesController < ApplicationController
|
||||
def index
|
||||
experiences = Experience.all
|
||||
experience_list = experiences.collect do |experience|
|
||||
{
|
||||
"member" => experience.member_profile.name,
|
||||
"duration" => experience.duration,
|
||||
"organizationt_title" => experience.organizationt_title,
|
||||
"department" => experience.department,
|
||||
"job_title" => experience.job_title,
|
||||
"link_to_show" => OrbitHelper.url_to_show(experience.to_param)
|
||||
}
|
||||
end
|
||||
{
|
||||
"experiences" => experience_list,
|
||||
"extras" => {
|
||||
"widget-title" => t("module_name.personal_experience"),
|
||||
"th_member" => t('users.name'),
|
||||
"th_duration" => t('personal_experience.duration'),
|
||||
"th_organizationt_title" => t('personal_experience.organizationt_title'),
|
||||
"th_department" => t('personal_experience.department'),
|
||||
"th_job_title" => t('personal_experience.job_title'),
|
||||
"th_detail" => t('detail')
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
def show
|
||||
params = OrbitHelper.params
|
||||
experience = Experience.find_by(uid: params[:uid])
|
||||
|
||||
{
|
||||
"organizationt_title" => experience.organizationt_title,
|
||||
"department" => experience.department,
|
||||
"job_title" => experience.job_title,
|
||||
"experience_type" => experience.experience_type.title,
|
||||
"language" => t(experience.language),
|
||||
"start_date" => experience.start_date,
|
||||
"end_date" => experience.end_date,
|
||||
"duration" => experience.duration,
|
||||
"keywords" => experience.keywords,
|
||||
"url" => experience.url,
|
||||
"note" => experience.note,
|
||||
|
||||
"th_organizationt_title" =>t("personal_experience.organizationt_title") ,
|
||||
"th_department" =>t("personal_experience.department") ,
|
||||
"th_job_title" =>t("personal_experience.job_title") ,
|
||||
"th_experience_type" =>t("personal_experience.experience_category") ,
|
||||
"th_language" =>t("personal_experience.language") ,
|
||||
"th_start_date" =>t("personal_experience.start_date") ,
|
||||
"th_end_date" =>t("personal_experience.end_date") ,
|
||||
"th_duration" =>t("personal_experience.duration") ,
|
||||
"th_keywords" =>t("personal_experience.keywords") ,
|
||||
"th_url" =>t("personal_experience.url") ,
|
||||
"th_note" =>t("personal_experience.note")
|
||||
}
|
||||
end
|
||||
end
|
|
@ -0,0 +1 @@
|
|||
<%= render_view %>
|
|
@ -0,0 +1 @@
|
|||
<%= render_view %>
|
|
@ -19,6 +19,7 @@ en:
|
|||
issue_no : "Issue.No"
|
||||
form_to_start : "From"
|
||||
form_to_end : "To"
|
||||
duration: "Duration"
|
||||
total_pages : "Total Pages"
|
||||
keywords : "Keywords"
|
||||
abstract : "Abstract"
|
||||
|
|
|
@ -6,6 +6,7 @@ zh_tw:
|
|||
experience_category : 經歷類別
|
||||
end_date : "結束日期"
|
||||
start_date : "開始日期"
|
||||
duration: "期間"
|
||||
organizationt_title : "服務機關名稱"
|
||||
paper_title : "論文名稱"
|
||||
book_title : "期刊名稱"
|
||||
|
|
|
@ -4,12 +4,15 @@ module PersonalExperience
|
|||
OrbitApp.registration "PersonalExperience",:type=> 'ModuleApp' do
|
||||
module_label 'module_name.personal_experience'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true, :sort_number => '45', :app_name=>"Experience", :intro_app_name=>"PersonalExperienceIntro",:path=>"/plugin/personal_experience/profile",:front_path=>"/profile",:admin_path=>"/admin/experiences",:i18n=>'module_name.personal_experience'
|
||||
personal_plugin :enable => true, :sort_number => '45', :app_name=>"Experience", :intro_app_name=>"PersonalExperienceIntro",:path=>"/plugin/personal_experience/profile",:front_path=>"/profile",:admin_path=>"/admin/experiences",:i18n=>'module_name.personal_experience', :module_app_name=>'PersonalExperience'
|
||||
version "0.1"
|
||||
organization "Rulingcom"
|
||||
author "RD dep"
|
||||
intro "I am intro"
|
||||
update_info 'some update_info'
|
||||
|
||||
frontend_enabled
|
||||
icon_class_no_sidebar "icons-user"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue