diff --git a/vendor/built_in_modules/member/app/views/panel/member/front_end/member_lists/index.html.erb b/vendor/built_in_modules/member/app/views/panel/member/front_end/member_lists/index.html.erb
index 9e1e5bec..0eeb0567 100644
--- a/vendor/built_in_modules/member/app/views/panel/member/front_end/member_lists/index.html.erb
+++ b/vendor/built_in_modules/member/app/views/panel/member/front_end/member_lists/index.html.erb
@@ -45,7 +45,9 @@
<% end %>
<%= diploma.start_date.strftime("%Y.%m") %> ~ <%= diploma.end_date.strftime("%Y.%m") %>
- <%= diploma.school_name %>
+ <%= link_to diploma.school_name, panel_personal_diploma_front_end_diploma_path(diploma) %>
<%if at_least_module_manager || diploma.diploma_category.cur_user_is_sub_manager_of(:edit)%>
diff --git a/vendor/built_in_modules/personal_diploma/app/views/panel/personal_diploma/back_end/diplomas/diploma_setting.html.erb b/vendor/built_in_modules/personal_diploma/app/views/panel/personal_diploma/back_end/diplomas/diploma_setting.html.erb
index 678bf692..f2f8cc36 100644
--- a/vendor/built_in_modules/personal_diploma/app/views/panel/personal_diploma/back_end/diplomas/diploma_setting.html.erb
+++ b/vendor/built_in_modules/personal_diploma/app/views/panel/personal_diploma/back_end/diplomas/diploma_setting.html.erb
@@ -47,10 +47,9 @@
diff --git a/vendor/built_in_modules/personal_diploma/app/views/panel/personal_diploma/front_end/_profile.html.erb b/vendor/built_in_modules/personal_diploma/app/views/panel/personal_diploma/front_end/_profile.html.erb
index ebb10c20..63540b99 100644
--- a/vendor/built_in_modules/personal_diploma/app/views/panel/personal_diploma/front_end/_profile.html.erb
+++ b/vendor/built_in_modules/personal_diploma/app/views/panel/personal_diploma/front_end/_profile.html.erb
@@ -21,8 +21,11 @@
+ <%= t('personal_diploma.school_name') %>
+ <%= t('personal_diploma.country') %>
+ <%= t('personal_diploma.department') %>
+ <%= t('personal_diploma.degree') %>
<%= t('date_') %>
- <%= t('personal_diploma.school_name') %>
@@ -30,10 +33,13 @@
<% @diplomas.each do |diploma| %>
+
+ <%= link_to diploma.school_name, panel_personal_diploma_front_end_diploma_path(diploma) %>
+
+ <%= diploma.country %>
+ <%= diploma.department %>
+ <%= diploma.degree %>
<%= diploma.start_date.strftime("%Y.%m") %> ~ <%= diploma.end_date.strftime("%Y.%m") %>
-
- <%= link_to diploma.school_name, panel_personal_diploma_front_end_diploma_path(diploma) %>
-
<% end %>
diff --git a/vendor/built_in_modules/personal_diploma/app/views/panel/personal_diploma/front_end/diplomas/index.html.erb b/vendor/built_in_modules/personal_diploma/app/views/panel/personal_diploma/front_end/diplomas/index.html.erb
new file mode 100644
index 00000000..e69de29b
diff --git a/vendor/built_in_modules/personal_diploma/app/views/panel/personal_diploma/front_end/diplomas/show.html.erb b/vendor/built_in_modules/personal_diploma/app/views/panel/personal_diploma/front_end/diplomas/show.html.erb
new file mode 100644
index 00000000..49a556ca
--- /dev/null
+++ b/vendor/built_in_modules/personal_diploma/app/views/panel/personal_diploma/front_end/diplomas/show.html.erb
@@ -0,0 +1,45 @@
+<% # encoding: utf-8 %>
+
+
+ <%= t("module_name.personal_diploma") %>
+
+ <% if !@diploma.year.blank? %>
+ <%= t("personal_diploma.school_name")%> <%= @diploma.year %>
+ <% end %>
+
+ <% if !@diploma.language.blank? %>
+ <%= t("personal_diploma.language")%> <%= @diploma.language %>
+ <% end %>
+
+ <% if !@diploma.school_name.blank? %>
+ <%= t("personal_diploma.school_name")%> <%= @diploma.school_name %>
+ <% end %>
+
+ <% if !@diploma.country.blank? %>
+ <%= t("personal_diploma.country")%> <%= @diploma.country %>
+ <% end %>
+
+ <% if !@diploma.department.blank? %>
+ <%= t("personal_diploma.department")%> <%= @diploma.department %>
+ <% end %>
+
+ <% if !@diploma.degree.blank? %>
+ <%= t("personal_diploma.degree")%> <%= @diploma.degree %>
+ <% end %>
+
+ <% if !@diploma.start_date.blank? %>
+ <%= t("personal_diploma.start_date")%> <%= @diploma.start_date %>
+ <% end %>
+
+ <% if !@diploma.end_date.blank? %>
+ <%= t("personal_diploma.end_date")%> <%= @diploma.end_date %>
+ <% end %>
+
+ <% if !@diploma.language.blank? %>
+ <%= t("personal_diploma.url")%> <%= link_to t(:url), @diploma.url, {:target => '_blank', :title => @diploma.url} if !@diploma.url.blank? %>
+ <% end %>
+
+ <%= t("personal_diploma.authors")%> <%= User.from_id(@diploma.create_user_id).name rescue '' %>
+
+
+
diff --git a/vendor/built_in_modules/personal_diploma/config/locales/en.yml b/vendor/built_in_modules/personal_diploma/config/locales/en.yml
index e7728bc6..24ff6881 100644
--- a/vendor/built_in_modules/personal_diploma/config/locales/en.yml
+++ b/vendor/built_in_modules/personal_diploma/config/locales/en.yml
@@ -34,6 +34,8 @@ en:
country : "Country"
department : "Department"
degree : "Degree"
+ frontend:
+ diplomas: "Diploma Front-end"
create_success : "Successfully Create"
update_success : "Successfully Update"
diff --git a/vendor/built_in_modules/personal_diploma/config/locales/zh_tw.yml b/vendor/built_in_modules/personal_diploma/config/locales/zh_tw.yml
index e06cc872..72ccfcc1 100644
--- a/vendor/built_in_modules/personal_diploma/config/locales/zh_tw.yml
+++ b/vendor/built_in_modules/personal_diploma/config/locales/zh_tw.yml
@@ -35,6 +35,8 @@ zh_tw:
country : "國家"
department : "系所"
degree : "學位"
+ frontend:
+ diplomas: "學歷前台"
create_success : "新增完成!!"
update_success : "更新完成!!"
diff --git a/vendor/built_in_modules/personal_diploma/init.rb b/vendor/built_in_modules/personal_diploma/init.rb
index 5d5cc28b..f0ad02c8 100644
--- a/vendor/built_in_modules/personal_diploma/init.rb
+++ b/vendor/built_in_modules/personal_diploma/init.rb
@@ -13,11 +13,11 @@ module PersonalDiploma
intro "I am intro"
update_info 'some update_info'
- # front_end do
- # app_page 'diplomas' do
- # frontend_i18n "personal_diploma.frontend.diplomas"
- # end
- # end
+ front_end do
+ app_page 'diplomas' do
+ frontend_i18n "personal_diploma.frontend.diplomas"
+ end
+ end
end
end
diff --git a/vendor/built_in_modules/personal_experience/app/controllers/panel/personal_experience/front_end/experiences_controller.rb b/vendor/built_in_modules/personal_experience/app/controllers/panel/personal_experience/front_end/experiences_controller.rb
new file mode 100644
index 00000000..bfa479ad
--- /dev/null
+++ b/vendor/built_in_modules/personal_experience/app/controllers/panel/personal_experience/front_end/experiences_controller.rb
@@ -0,0 +1,17 @@
+class Panel::PersonalExperience::FrontEnd::ExperiencesController < OrbitWidgetController
+
+ def initialize
+ super
+ @app_title = 'personal_experience'
+ end
+
+
+ def index
+ end
+
+ def show
+ @experience = Experience.find(params[:id])
+ end
+
+
+end
diff --git a/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/back_end/experiences/_experience.html.erb b/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/back_end/experiences/_experience.html.erb
index 7cb777e7..de1b094c 100644
--- a/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/back_end/experiences/_experience.html.erb
+++ b/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/back_end/experiences/_experience.html.erb
@@ -1,7 +1,7 @@
<%= experience.start_date.strftime("%Y.%m") %> ~ <%= experience.end_date.strftime("%Y.%m") %>
- <%= experience.organizationt_title %>
+ <%= link_to experience.organizationt_title, panel_personal_experience_front_end_experience_path(experience) %>
<%if at_least_module_manager || experience.experience_category.cur_user_is_sub_manager_of(:edit)%>
diff --git a/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/back_end/experiences/_form.html.erb b/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/back_end/experiences/_form.html.erb
index 3c1e9e23..144462c3 100644
--- a/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/back_end/experiences/_form.html.erb
+++ b/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/back_end/experiences/_form.html.erb
@@ -167,7 +167,7 @@
<%= t("personal_experience.organizationt_title") %>
<%= f.fields_for :organizationt_title_translations do |f| %>
- <%= f.text_field locale, class: "input-block-level", placeholder: t("personal_experience.organizationt_title"), value: (@experience.school_name_translations[locale] rescue nil) %>
+ <%= f.text_field locale, class: "input-block-level", placeholder: t("personal_experience.organizationt_title"), value: (@experience.organizationt_title_translations[locale] rescue nil) %>
<% end %>
diff --git a/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/back_end/experiences/experience_setting.html.erb b/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/back_end/experiences/experience_setting.html.erb
index 2cd0fbe9..ef6c6b79 100644
--- a/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/back_end/experiences/experience_setting.html.erb
+++ b/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/back_end/experiences/experience_setting.html.erb
@@ -77,10 +77,9 @@
diff --git a/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/front_end/_profile.html.erb b/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/front_end/_profile.html.erb
index 68ec0e5c..74e14f9d 100644
--- a/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/front_end/_profile.html.erb
+++ b/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/front_end/_profile.html.erb
@@ -21,8 +21,9 @@
+ <%= t('personal_experience.organizationt_title') %>
+ <%= t('personal_experience.job_title') %>
<%= t('date_') %>
- <%= t('personal_experience.organizationt_title') %>
@@ -30,10 +31,11 @@
<% @experiences.each do |experience| %>
+
+ <%= link_to experience.organizationt_title, panel_personal_experience_front_end_experience_path(experience) %>
+
+ <%= experience.job_title %>
<%= experience.start_date.strftime("%Y.%m") %> ~ <%= experience.end_date.strftime("%Y.%m") %>
-
- <%= link_to experience.organizationt_title, panel_personal_experience_front_end_experience_path(experience) %>
-
<% end %>
diff --git a/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/front_end/experiences/index.html.erb b/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/front_end/experiences/index.html.erb
new file mode 100644
index 00000000..e69de29b
diff --git a/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/front_end/experiences/show.html.erb b/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/front_end/experiences/show.html.erb
new file mode 100644
index 00000000..d696cf10
--- /dev/null
+++ b/vendor/built_in_modules/personal_experience/app/views/panel/personal_experience/front_end/experiences/show.html.erb
@@ -0,0 +1,42 @@
+<% # encoding: utf-8 %>
+
+
+ <%= t("module_name.personal_experience") %>
+
+
+ <% if !@experience.experience_category.blank? %>
+ <%= t("personal_experience.experience_category")%> <%= @experience.experience_category.title %>
+ <% end %>
+
+ <% if !@experience.language.blank? %>
+ <%= t("personal_experience.language")%> <%= @experience.language %>
+ <% end %>
+
+ <% if !@experience.organizationt_title.blank? %>
+ <%= t("personal_experience.organizationt_title")%> <%= @experience.organizationt_title %>
+ <% end %>
+
+ <% if !@experience.department.blank? %>
+ <%= t("personal_experience.department")%> <%= @experience.department %>
+ <% end %>
+
+ <% if !@experience.job_title.blank? %>
+ <%= t("personal_experience.job_title")%> <%= @experience.job_title %>
+ <% end %>
+
+ <% if !@experience.start_date.blank? %>
+ <%= t("personal_experience.start_date")%> <%= @experience.start_date %>
+ <% end %>
+
+ <% if !@experience.end_date.blank? %>
+ <%= t("personal_experience.end_date")%> <%= @experience.end_date %>
+ <% end %>
+
+ <% if !@experience.language.blank? %>
+ <%= t("personal_experience.url")%> <%= link_to t(:url), @experience.url, {:target => '_blank', :title => @experience.url} if !@experience.url.blank? %>
+ <% end %>
+
+ <%= t("personal_experience.authors")%> <%= User.from_id(@experience.create_user_id).name rescue '' %>
+
+
+
diff --git a/vendor/built_in_modules/personal_experience/config/locales/en.yml b/vendor/built_in_modules/personal_experience/config/locales/en.yml
index 116508b2..e9584720 100644
--- a/vendor/built_in_modules/personal_experience/config/locales/en.yml
+++ b/vendor/built_in_modules/personal_experience/config/locales/en.yml
@@ -34,6 +34,8 @@ en:
description : "File Description"
pages : "Pages"
book_paper_type : "Book Paper Type"
+ frontend:
+ experiences: "Experience Front-end"
create_success : "Successfully Create"
update_success : "Successfully Update"
diff --git a/vendor/built_in_modules/personal_experience/config/locales/zh_tw.yml b/vendor/built_in_modules/personal_experience/config/locales/zh_tw.yml
index 58571890..54b581cd 100644
--- a/vendor/built_in_modules/personal_experience/config/locales/zh_tw.yml
+++ b/vendor/built_in_modules/personal_experience/config/locales/zh_tw.yml
@@ -32,6 +32,8 @@ zh_tw:
file : "檔案"
file_name : "檔案名稱"
description : "描述"
+ frontend:
+ experiences: "經歷前台"
create_success : "新增完成!!"
update_success : "更新完成!!"
diff --git a/vendor/built_in_modules/personal_experience/init.rb b/vendor/built_in_modules/personal_experience/init.rb
index 517bceac..1fd24c11 100644
--- a/vendor/built_in_modules/personal_experience/init.rb
+++ b/vendor/built_in_modules/personal_experience/init.rb
@@ -14,11 +14,11 @@ module PersonalExperience
intro "I am intro"
update_info 'some update_info'
- # front_end do
- # app_page 'experiences' do
- # frontend_i18n "personal_experience.frontend.experiences"
- # end
- # end
+ front_end do
+ app_page 'experiences' do
+ frontend_i18n "personal_experience.frontend.experiences"
+ end
+ end
end
diff --git a/vendor/built_in_modules/personal_honor/app/controllers/panel/personal_honor/front_end/honors_controller.rb b/vendor/built_in_modules/personal_honor/app/controllers/panel/personal_honor/front_end/honors_controller.rb
index ad9b7f28..b2e48353 100644
--- a/vendor/built_in_modules/personal_honor/app/controllers/panel/personal_honor/front_end/honors_controller.rb
+++ b/vendor/built_in_modules/personal_honor/app/controllers/panel/personal_honor/front_end/honors_controller.rb
@@ -8,7 +8,7 @@ class Panel::PersonalHonor::FrontEnd::HonorsController < OrbitWidgetController
def index
- @honors = Honor.desc(:year).page(params[:page]).per(10)
+ @honors = Honor.where(:is_hidden => false).desc(:year).page(params[:page]).per(10)
end
diff --git a/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/back_end/honors/honor_setting.html.erb b/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/back_end/honors/honor_setting.html.erb
index 0ede75f7..252ee5a5 100644
--- a/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/back_end/honors/honor_setting.html.erb
+++ b/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/back_end/honors/honor_setting.html.erb
@@ -77,10 +77,9 @@
diff --git a/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/front_end/_profile.html.erb b/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/front_end/_profile.html.erb
index d400affd..ad917950 100644
--- a/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/front_end/_profile.html.erb
+++ b/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/front_end/_profile.html.erb
@@ -22,7 +22,8 @@
<%= t('personal_honor.year') %>
- <%= t('personal_honor.award_name') %>
+ <%= t('personal_honor.award_name') %>
+ <%= t('personal_honor.awarding_unit') %>
@@ -30,10 +31,11 @@
<% @honors.each do |honor| %>
- <%= honor.year %>
+ <%= honor.year %>
- <%= link_to honor.award_name, panel_personal_honor_front_end_honor_path(honor) %>
+ <%= link_to honor.award_name, panel_personal_honor_front_end_honor_path(honor) %>
+ <%= honor.awarding_unit %>
<% end %>
diff --git a/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/front_end/honors/index.html.erb b/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/front_end/honors/index.html.erb
index fc035079..05ca539d 100644
--- a/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/front_end/honors/index.html.erb
+++ b/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/front_end/honors/index.html.erb
@@ -2,26 +2,36 @@
<%= flash_messages %>
-<%= t('honor.list_honor') %>
+<%= t('module_name.personal_honor') %>
-
-
+
+
- <%= t(:year) %>
- <%= t(:award_name) %>
-
+ <%= t('personal_honor.honor_category') %>
+ <%= t('personal_honor.year') %>
+ <%= t('personal_honor.award_name') %>
+ <%= t('personal_honor.award_winner') %>
+ <%= t('personal_honor.awarding_unit') %>
+
+
+
+
+ <% @honors.each do |honor| %>
+
+
+ <%= honor.honor_category.title %>
+ <%= honor.year %>
+
+ <%= link_to honor.award_name, panel_personal_honor_front_end_honor_path(honor) %>
+
+ <%= User.from_id(honor.create_user_id).name rescue '' %>
+ <%= honor.awarding_unit %>
+
+
+ <% end %>
- <% @honors.each do |post| %>
-
- <%= post.year %>
-
- <%= link_to post.award_name , panel_personal_honor_front_end_honor_path(post) %>
-
-
-
- <% end %>
-
-
+
+
<%= paginate @honors, :params => {:inner => false}%>
\ No newline at end of file
diff --git a/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/front_end/honors/show.html.erb b/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/front_end/honors/show.html.erb
index f4b64855..059a354a 100644
--- a/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/front_end/honors/show.html.erb
+++ b/vendor/built_in_modules/personal_honor/app/views/panel/personal_honor/front_end/honors/show.html.erb
@@ -1,15 +1,32 @@
<% # encoding: utf-8 %>
- <%= t("honor") %>
-
-<%= t("honor.category")%> <%= @honor.honor_category.title if @honor.honor_category %>
-<%= t("honor.year")%> <%= @honor.year %>
-<%= t("honor.language")%> <%= @honor.language %>
-<%= t("honor.award_name")%> <%= @honor.award_name %>
-<%= t("honor.awarding_unit")%> <%= @honor.awarding_unit %>
-<%= t("honor.url")%> <%= link_to t(:url), @honor.url, {:target => '_blank', :title => @honor.award_name} if !@honor.url.blank? %>
-<%= t("honor.note")%> <%= @honor.note %>
-<%= t("honor.authors")%> <%= User.from_id(@honor.create_user_id).name rescue '' %>
-
+ <%= t("module_name.personal_honor") %>
+
+ <% if !@honor.honor_category.blank? %>
+ <%= t("personal_honor.honor_category")%> <%= @honor.honor_category.title if @honor.honor_category %>
+ <% end %>
+
+ <% if !@honor.year.blank? %>
+ <%= t("personal_honor.year")%> <%= @honor.year %>
+ <% end %>
+
+ <% if !@honor.language.blank? %>
+ <%= t("personal_honor.language")%> <%= @honor.language %>
+ <% end %>
+
+ <% if !@honor.award_name.blank? %>
+ <%= t("personal_honor.award_name")%> <%= @honor.award_name %>
+ <% end %>
+
+ <% if !@honor.awarding_unit.blank? %>
+ <%= t("personal_honor.awarding_unit")%> <%= @honor.awarding_unit %>
+ <% end %>
+
+ <% if !@honor.url.blank? %>
+ <%= t("personal_honor.url")%> <%= link_to t(:url), @honor.url, {:target => '_blank', :title => @honor.url} if !@honor.url.blank? %>
+ <% end %>
+
+ <%= t("personal_honor.award_winner")%> <%= User.from_id(@honor.create_user_id).name rescue '' %>
+
diff --git a/vendor/built_in_modules/personal_honor/config/locales/en.yml b/vendor/built_in_modules/personal_honor/config/locales/en.yml
index 2f71ea36..4929ba00 100644
--- a/vendor/built_in_modules/personal_honor/config/locales/en.yml
+++ b/vendor/built_in_modules/personal_honor/config/locales/en.yml
@@ -2,6 +2,7 @@ en:
module_name:
personal_honor: Honor
personal_honor:
+ award_winner : "Award winner"
paper_title : "Paper Title"
book_title : "Book Title"
award_name : "Award Name"
@@ -33,6 +34,8 @@ en:
description : "File Description"
pages : "Pages"
book_paper_type : "Book Paper Type"
+ frontend:
+ honors: "Honor Front-end"
create_success : "Successfully Create"
update_success : "Successfully Update"
diff --git a/vendor/built_in_modules/personal_honor/config/locales/zh_tw.yml b/vendor/built_in_modules/personal_honor/config/locales/zh_tw.yml
index e5d57966..e5f85eb7 100644
--- a/vendor/built_in_modules/personal_honor/config/locales/zh_tw.yml
+++ b/vendor/built_in_modules/personal_honor/config/locales/zh_tw.yml
@@ -2,6 +2,7 @@ zh_tw:
module_name:
personal_honor: 榮譽
personal_honor:
+ award_winner : "得獎人"
paper_title : "論文名稱"
book_title : "期刊名稱"
award_name : "獎項名稱"
@@ -29,6 +30,8 @@ zh_tw:
file : "檔案"
file_name : "檔案名稱"
description : "描述"
+ frontend:
+ honors: "榮譽前台"
create_success : "新增完成!!"
update_success : "更新完成!!"
diff --git a/vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/front_end/writing_journals_controller.rb b/vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/front_end/writing_journals_controller.rb
index 1c006b46..b63c8d8b 100644
--- a/vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/front_end/writing_journals_controller.rb
+++ b/vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/front_end/writing_journals_controller.rb
@@ -8,7 +8,7 @@ class Panel::PersonalJournal::FrontEnd::WritingJournalsController < OrbitWidgetC
def index
- @writing_journals = WritingJournal.desc(:year).page(params[:page]).per(10)
+ @writing_journals = WritingJournal.where(:is_hidden => false).desc(:year, :publication_date).page(params[:page]).per(10)
end
diff --git a/vendor/built_in_modules/personal_journal/app/models/writing_journal.rb b/vendor/built_in_modules/personal_journal/app/models/writing_journal.rb
index 6e810cd3..430deb43 100644
--- a/vendor/built_in_modules/personal_journal/app/models/writing_journal.rb
+++ b/vendor/built_in_modules/personal_journal/app/models/writing_journal.rb
@@ -90,12 +90,19 @@ class WritingJournal
end
def create_link
- title = ["#{self.paper_title}"]
+ title = []
+
+ title << self.authors if self.authors.present?
+
+ pd = self.publication_date.strftime("%Y-%m-%d").split('-')
+
+ title << pd[0]
+ title << self.paper_title if self.paper_title.present?
title << self.journal_title if self.journal_title.present?
+ title << self.vol_no if (self.vol_no.present? && self.vol_no != "0")
+ title << self.issue_no if (self.issue_no.present? && self.issue_no != "0")
+ title << "pp"+self.form_to_start+"-"+self.form_to_end if (self.form_to_start.present? && self.form_to_start != "0")
title << ( !self.journal_level_types.blank? ? "(#{self.journal_level_types.collect{|x| x.title}.join(', ')})" : nil)
- title << "Volume No: "+self.vol_no if (self.vol_no.present? && self.vol_no != "0")
- title << "From Page: "+self.form_to_start if (self.form_to_start.present? && self.form_to_start != "0")
- title << "To Page: "+self.form_to_end if (self.form_to_end.present? && self.form_to_end != "0")
title.join(', ')
end
diff --git a/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/back_end/writing_journals/writing_journal_setting.html.erb b/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/back_end/writing_journals/writing_journal_setting.html.erb
index 62514b69..bc86faf8 100644
--- a/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/back_end/writing_journals/writing_journal_setting.html.erb
+++ b/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/back_end/writing_journals/writing_journal_setting.html.erb
@@ -128,10 +128,9 @@
diff --git a/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/front_end/_profile.html.erb b/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/front_end/_profile.html.erb
index 9af050c7..8d5a6d7e 100644
--- a/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/front_end/_profile.html.erb
+++ b/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/front_end/_profile.html.erb
@@ -1,7 +1,7 @@
<%
if @member
- @writing_journals = WritingJournal.where(is_hidden: false, :create_user_id => @member.id).desc(:year)
+ @writing_journals = WritingJournal.where(is_hidden: false, :create_user_id => @member.id).desc(:year, :publication_date)
@writing_journal_intro = !PersonalJournalIntro.where(:user_id => @member.id).blank? ? PersonalJournalIntro.where(:user_id => @member.id).first : PersonalJournalIntro.new
%>
@@ -35,7 +35,7 @@
<%= link_to writing_journal.create_link, panel_personal_journal_front_end_writing_journal_path(writing_journal) %>
- <%= writing_journal.authors %>
+ <%= User.find(writing_journal.create_user_id).name rescue '' %>
<% end %>
diff --git a/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/front_end/writing_journals/index.html.erb b/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/front_end/writing_journals/index.html.erb
index 8a1cd598..79c37a55 100644
--- a/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/front_end/writing_journals/index.html.erb
+++ b/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/front_end/writing_journals/index.html.erb
@@ -2,26 +2,33 @@
<%= flash_messages %>
-<%= t('writing_journal.list_writing_journal') %>
+<%= t('module_name.personal_journal') %>
-
-
- <%= t(:year) %>
- <%= t(:title) %>
-
+
+
+
+ <%= t('personal_journal.year') %>
+ <%= t('module_name.personal_journal') %>
+ <%= t('personal_journal.authors') %>
+
+
+
- <% @writing_journals.each do |post| %>
-
- <%= post.year %>
+ <% @writing_journals.each do |writing_journal| %>
+
+
+ <%= writing_journal.year %>
- <%= link_to post.create_link , panel_personal_journal_front_end_writing_journal_path(post) %>
+ <%= link_to writing_journal.create_link, panel_personal_journal_front_end_writing_journal_path(writing_journal) %>
-
-
- <% end %>
-
-
+ <%= User.find(writing_journal.create_user_id).name rescue '' %>
+
+
+ <% end %>
+
+
+
<%= paginate @writing_journals, :params => {:inner => false}%>
\ No newline at end of file
diff --git a/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/front_end/writing_journals/show.html.erb b/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/front_end/writing_journals/show.html.erb
index febe0be4..716ff122 100644
--- a/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/front_end/writing_journals/show.html.erb
+++ b/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/front_end/writing_journals/show.html.erb
@@ -1,38 +1,84 @@
<% # encoding: utf-8 %>
- <%= t("writing_journal") %>
-
-<%= t("writing_journal.year")%> <%= @writing_journal.year %>
-<%= t("writing_journal.language")%> <%= @writing_journal.language %>
-<%= t("writing_journal.paper_title")%> <%= @writing_journal.paper_title %>
-<%= t("writing_journal.journal_title")%> <%= @writing_journal.journal_title %>
-<%= t("writing_journal.journal_paper_type")%> <%= @writing_journal.journal_paper_type.title if @writing_journal.journal_paper_type %>
-<%= t("writing_journal.journal_level_types")%> <%= @journal_level_types %>
-<%= t("writing_journal.journal_author_types")%> <%= @journal_author_types %>
-<%= t("writing_journal.isbn")%> <%= @writing_journal.isbn %>
-<%= t("writing_journal.vol_no")%> <%= @writing_journal.vol_no %>
-<%= t("writing_journal.issue_no")%> <%= @writing_journal.issue_no %>
-<%= t("writing_journal.form_to")%> <%= "#{@writing_journal.form_to_start} ~ #{@writing_journal.form_to_end}" %>
-<%= t("writing_journal.total_pages")%> <%= @writing_journal.total_pages %>
-<%= t("writing_journal.abstract")%> <%= @writing_journal.abstract %>
-<%= t("writing_journal.publication_date")%> <%= @writing_journal.publication_date %>
-<%= t("writing_journal.url")%> <%= link_to t(:url), @writing_journal.url, {:target => '_blank', :title => @writing_journal.journal_title} if !@writing_journal.url.blank? %>
-<%= t("writing_journal.note")%> <%= @writing_journal.note %>
-<%= t("writing_journal.authors")%> <%= "#{User.from_id(@writing_journal.create_user_id).name rescue ''},#{@writing_journal.authors rescue ''}"%>
-<%= t("writing_journal.files")%>
-
-<% if @writing_journal.writing_journal_files.size > 0 %>
-
-
-
+
<%= t("module_name.personal_journal") %>
+
+ <% if !@writing_journal.year.blank? %>
+ <%= t("personal_journal.year")%> <%= @writing_journal.year %>
+ <% end %>
+
+ <% if !@writing_journal.language.blank? %>
+ <%= t("personal_journal.language")%> <%= @writing_journal.language %>
+ <% end %>
+
+ <% if !@writing_journal.paper_title.blank? %>
+ <%= t("personal_journal.paper_title")%> <%= @writing_journal.paper_title %>
+ <% end %>
+
+ <% if !@writing_journal.journal_title.blank? %>
+ <%= t("personal_journal.journal_title")%> <%= @writing_journal.journal_title %>
+ <% end %>
+
+ <% if !@writing_journal.journal_paper_type.blank? %>
+ <%= t("personal_journal.paper_type")%> <%= @writing_journal.journal_paper_type.title if @writing_journal.journal_paper_type %>
+ <% end %>
+
+ <% if !@journal_level_types.blank? %>
+ <%= t("personal_journal.level_type")%> <%= @journal_level_types %>
+ <% end %>
+
+ <% if !@journal_author_types.blank? %>
+ <%= t("personal_journal.author_type")%> <%= @journal_author_types %>
+ <% end %>
+
+ <% if !@writing_journal.isbn.blank? %>
+ <%= t("personal_journal.isbn")%> <%= @writing_journal.isbn %>
+ <% end %>
+
+ <% if !@writing_journal.vol_no.blank? %>
+ <%= t("personal_journal.vol_no")%> <%= @writing_journal.vol_no %>
+ <% end %>
+
+ <% if !@writing_journal.issue_no.blank? %>
+ <%= t("personal_journal.issue_no")%> <%= @writing_journal.issue_no %>
+ <% end %>
+
+ <% if !@writing_journal.form_to_start.blank? %>
+ <%= t("personal_journal.form_to")%> <%= "#{@writing_journal.form_to_start} ~ #{@writing_journal.form_to_end}" %>
+ <% end %>
+
+ <% if !@writing_journal.total_pages.blank? %>
+ <%= t("personal_journal.total_pages")%> <%= @writing_journal.total_pages %>
+ <% end %>
+
+ <% if !@writing_journal.abstract.blank? %>
+ <%= t("personal_journal.abstract")%> <%= @writing_journal.abstract %>
+ <% end %>
+
+ <% if !@writing_journal.publication_date.blank? %>
+ <%= t("personal_journal.publication_date")%> <%= @writing_journal.publication_date %>
+ <% end %>
+
+ <% if !@writing_journal.url.blank? %>
+ <%= t("personal_journal.url")%> <%= link_to t(:url), @writing_journal.url, {:target => '_blank', :title => @writing_journal.url} if !@writing_journal.url.blank? %>
+ <% end %>
+
+ <%= t("personal_journal.authors")%> <%= "#{User.from_id(@writing_journal.create_user_id).name rescue ''},#{@writing_journal.authors rescue ''}"%>
+
+ <% if @writing_journal.writing_journal_files.size > 0 %>
+ <%= t("personal_journal.file")%>
+
+
+
+
<% @writing_journal.writing_journal_files.each do | wjfile | %>
- <%= link_to wjfile.title, wjfile.file.url, {:target => '_blank', :title => wjfile.title} if wjfile.file.file %>
+ <%= link_to !wjfile.title.blank? ? wjfile.title : 'file', wjfile.file.url, {:target => '_blank', :title => wjfile.title} if wjfile.file.file %>
<% end %>
+
-
- <% end %>
-
-
-
+
+
+ <% end %>
+
+
diff --git a/vendor/built_in_modules/personal_journal/config/locales/en.yml b/vendor/built_in_modules/personal_journal/config/locales/en.yml
index 2d2fc8cf..32d9c7da 100644
--- a/vendor/built_in_modules/personal_journal/config/locales/en.yml
+++ b/vendor/built_in_modules/personal_journal/config/locales/en.yml
@@ -26,6 +26,8 @@ en:
file : "File"
file_name : "File name"
description : "File Description"
+ frontend:
+ writing_journals: "Journal Paper Front-end"
create_success : "Successfully Create"
update_success : "Successfully Update"
diff --git a/vendor/built_in_modules/personal_journal/config/locales/zh_tw.yml b/vendor/built_in_modules/personal_journal/config/locales/zh_tw.yml
index d035f05f..ce89e262 100644
--- a/vendor/built_in_modules/personal_journal/config/locales/zh_tw.yml
+++ b/vendor/built_in_modules/personal_journal/config/locales/zh_tw.yml
@@ -19,13 +19,15 @@ zh_tw:
publication_date : "發表日期"
url : "參考連結"
note : "記事"
- level_type : "期刊類別"
+ level_type : "期刊等級"
author_type : "作者類別"
from : "起"
to : "訖"
file : "檔案"
file_name : "檔案名稱"
description : "描述"
+ frontend:
+ writing_journals: "期刊論文前台"
create_success : "新增完成!!"
update_success : "更新完成!!"
diff --git a/vendor/built_in_modules/personal_lab/app/controllers/panel/personal_lab/front_end/labs_controller.rb b/vendor/built_in_modules/personal_lab/app/controllers/panel/personal_lab/front_end/labs_controller.rb
new file mode 100644
index 00000000..d255c8a8
--- /dev/null
+++ b/vendor/built_in_modules/personal_lab/app/controllers/panel/personal_lab/front_end/labs_controller.rb
@@ -0,0 +1,18 @@
+class Panel::PersonalLab::FrontEnd::LabsController < OrbitWidgetController
+
+ def initialize
+ super
+ @app_title = 'personal_lab'
+ end
+
+
+ def index
+ end
+
+ def show
+ @lab = Lab.find(params[:id])
+
+ end
+
+
+end
diff --git a/vendor/built_in_modules/personal_lab/app/views/panel/personal_lab/front_end/labs/index.html.erb b/vendor/built_in_modules/personal_lab/app/views/panel/personal_lab/front_end/labs/index.html.erb
new file mode 100644
index 00000000..e69de29b
diff --git a/vendor/built_in_modules/personal_lab/app/views/panel/personal_lab/front_end/labs/show.html.erb b/vendor/built_in_modules/personal_lab/app/views/panel/personal_lab/front_end/labs/show.html.erb
new file mode 100644
index 00000000..546ac117
--- /dev/null
+++ b/vendor/built_in_modules/personal_lab/app/views/panel/personal_lab/front_end/labs/show.html.erb
@@ -0,0 +1,63 @@
+<% # encoding: utf-8 %>
+
+
+ <%= t("module_name.personal_lab") %>
+
+ <% if !@lab.year.blank? %>
+ <%= t("personal_lab.year")%> <%= @lab.year %>
+ <% end %>
+
+ <% if !@lab.language.blank? %>
+ <%= t("personal_lab.language")%> <%= @lab.language %>
+ <% end %>
+
+ <% if !@lab.lab_title.blank? %>
+ <%= t("personal_lab.lab_title")%> <%= @lab.lab_title %>
+ <% end %>
+
+ <% if !@lab.location.blank? %>
+ <%= t("personal_lab.location")%> <%= @lab.location %>
+ <% end %>
+
+ <% if !@lab.participating_professor.blank? %>
+ <%= t("personal_lab.participating_professor")%> <%= @lab.participating_professor %>
+ <% end %>
+
+ <% if !@lab.participating_student.blank? %>
+ <%= t("personal_lab.participating_student")%> <%= @lab.participating_student %>
+ <% end %>
+
+ <% if !@lab.extension_no.blank? %>
+ <%= t("personal_lab.extension_no")%> <%= @lab.extension_no %>
+ <% end %>
+
+ <% if !@lab.research_direction.blank? %>
+ <%= t("personal_lab.research_direction")%> <%= @lab.research_direction %>
+ <% end %>
+
+ <% if !@lab.facility.blank? %>
+ <%= t("personal_lab.facility")%> <%= @lab.facility %>
+ <% end %>
+
+ <% if !@lab.language.blank? %>
+ <%= t("personal_lab.url")%> <%= link_to t(:url), @lab.url, {:target => '_blank', :title => @lab.url} if !@lab.url.blank? %>
+ <% end %>
+
+ <%= t("personal_lab.authors")%> <%= User.from_id(@lab.create_user_id).name rescue '' %>
+
+ <% if @lab.lab_files.size > 0 %>
+ <%= t("personal_lab.file")%>
+
+
+
+
+ <% @lab.lab_files.each do | lfile | %>
+ <%= link_to lfile.title, lfile.file.url, {:target => '_blank', :title => lfile.title} if lfile.file.file %>
+ <% end %>
+
+
+
+
+ <% end %>
+
+
diff --git a/vendor/built_in_modules/personal_lab/config/locales/en.yml b/vendor/built_in_modules/personal_lab/config/locales/en.yml
index 43d38872..ef9279d7 100644
--- a/vendor/built_in_modules/personal_lab/config/locales/en.yml
+++ b/vendor/built_in_modules/personal_lab/config/locales/en.yml
@@ -36,6 +36,8 @@ en:
description : "File Description"
pages : "Pages"
book_paper_type : "Book Paper Type"
+ frontend:
+ labs: "Lab Front-end"
create_success : "Successfully Create"
update_success : "Successfully Update"
diff --git a/vendor/built_in_modules/personal_lab/config/locales/zh_tw.yml b/vendor/built_in_modules/personal_lab/config/locales/zh_tw.yml
index 830f034d..bbea39ca 100644
--- a/vendor/built_in_modules/personal_lab/config/locales/zh_tw.yml
+++ b/vendor/built_in_modules/personal_lab/config/locales/zh_tw.yml
@@ -32,6 +32,8 @@ zh_tw:
file : "檔案"
file_name : "檔案名稱"
description : "描述"
+ frontend:
+ labs: "實驗室前台"
create_success : "新增完成!!"
update_success : "更新完成!!"
diff --git a/vendor/built_in_modules/personal_lab/init.rb b/vendor/built_in_modules/personal_lab/init.rb
index f5453024..591c6429 100644
--- a/vendor/built_in_modules/personal_lab/init.rb
+++ b/vendor/built_in_modules/personal_lab/init.rb
@@ -3,7 +3,20 @@ module PersonalLab
module_label 'module_name.personal_lab'
base_url File.expand_path File.dirname(__FILE__)
personal_plugin :enable => true, :sort_number => '30', :app_name=>"Lab", :intro_app_name=>"PersonalLabIntro",:path=>"panel/personal_lab/plugin/profile",:front_path=>"panel/personal_lab/front_end/profile",:admin_path=>"/panel/personal_lab/back_end/labs",:i18n=>'module_name.personal_lab'
-
+
+
+
+ version "0.1"
+ organization "Rulingcom"
+ author "RD dep"
+ intro "I am intro"
+ update_info 'some update_info'
+
+ front_end do
+ app_page 'labs' do
+ frontend_i18n "personal_lab.frontend.labs"
+ end
+ end
end
end
diff --git a/vendor/built_in_modules/personal_patent/app/controllers/panel/personal_patent/front_end/writing_patents_controller.rb b/vendor/built_in_modules/personal_patent/app/controllers/panel/personal_patent/front_end/writing_patents_controller.rb
index 9d5f0511..baa7c222 100644
--- a/vendor/built_in_modules/personal_patent/app/controllers/panel/personal_patent/front_end/writing_patents_controller.rb
+++ b/vendor/built_in_modules/personal_patent/app/controllers/panel/personal_patent/front_end/writing_patents_controller.rb
@@ -8,7 +8,7 @@ class Panel::PersonalPatent::FrontEnd::WritingPatentsController < OrbitWidgetCon
def index
- @writing_patents = WritingPatent.desc(:year).page(params[:page]).per(10)
+ @writing_patents = WritingPatent.where(:is_hidden=>false).desc(:publish_date).page(params[:page]).per(10)
end
diff --git a/vendor/built_in_modules/personal_patent/app/views/panel/personal_patent/back_end/writing_patents/index.html.erb b/vendor/built_in_modules/personal_patent/app/views/panel/personal_patent/back_end/writing_patents/index.html.erb
index 36624755..d25605e1 100644
--- a/vendor/built_in_modules/personal_patent/app/views/panel/personal_patent/back_end/writing_patents/index.html.erb
+++ b/vendor/built_in_modules/personal_patent/app/views/panel/personal_patent/back_end/writing_patents/index.html.erb
@@ -26,10 +26,12 @@
-
diff --git a/vendor/built_in_modules/personal_patent/app/views/panel/personal_patent/front_end/writing_patents/index.html.erb b/vendor/built_in_modules/personal_patent/app/views/panel/personal_patent/front_end/writing_patents/index.html.erb
index 446d3d03..b3f38552 100644
--- a/vendor/built_in_modules/personal_patent/app/views/panel/personal_patent/front_end/writing_patents/index.html.erb
+++ b/vendor/built_in_modules/personal_patent/app/views/panel/personal_patent/front_end/writing_patents/index.html.erb
@@ -2,26 +2,36 @@
<%= flash_messages %>
-
<%= t('writing_patent.list_writing_patent') %>
+
<%= t('module_name.personal_patent') %>
-
-
-
- <%= t(:year) %>
- <%= t(:title) %>
+
+
+
+ <%= t('personal_patent.year') %>
+ <%= t('personal_patent.patent_category') %>
+ <%= t('personal_patent.publication_date') %>
+ <%= t('personal_patent.patent_title') %>
+ <%= t('personal_patent.authors') %>
-
- <% @writing_patents.each do |post| %>
-
- <%= post.year %>
+
+
+
+ <% @writing_patents.each do |writing_patent| %>
+
+
+ <%= writing_patent.year %>
+ <%= writing_patent.writing_patent_category.title %>
- <%= link_to post.patent_title , panel_personal_patent_front_end_writing_patent_path(post) %>
+ <%= link_to writing_patent.patent_title, panel_personal_patent_front_end_writing_patent_path(writing_patent) %>
-
-
- <% end %>
-
-
+ <%= writing_patent.publish_date.strftime("%Y.%m") %>
+ <%= "#{User.from_id(writing_patent.create_user_id).name rescue ''},#{writing_patent.authors rescue ''}"%>
+
+
+ <% end %>
+
+
+
<%= paginate @writing_patents, :params => {:inner => false}%>
\ No newline at end of file
diff --git a/vendor/built_in_modules/personal_patent/app/views/panel/personal_patent/front_end/writing_patents/show.html.erb b/vendor/built_in_modules/personal_patent/app/views/panel/personal_patent/front_end/writing_patents/show.html.erb
index 018ebed0..ea30e50a 100644
--- a/vendor/built_in_modules/personal_patent/app/views/panel/personal_patent/front_end/writing_patents/show.html.erb
+++ b/vendor/built_in_modules/personal_patent/app/views/panel/personal_patent/front_end/writing_patents/show.html.erb
@@ -1,31 +1,55 @@
<% # encoding: utf-8 %>
- <%= t("writing_patent") %>
-
-<%= t("writing_patent.year")%> <%= @writing_patent.year %>
-<%= t("writing_patent.language")%> <%= @writing_patent.language %>
-<%= t("writing_patent.patent_title")%> <%= @writing_patent.patent_title %>
-<%= t("writing_patent.category")%> <%= @writing_patent.writing_patent_category.title if @writing_patent.writing_patent_category %>
-<%= t("writing_patent.patent_no")%> <%= @writing_patent.patent_no %>
-<%= t("writing_patent.patent_country")%> <%= @writing_patent.patent_country %>
-<%= t("writing_patent.publish_date")%> <%= @writing_patent.publish_date %>
-<%= t("writing_patent.url")%> <%= link_to t(:url), @writing_patent.url, {:target => '_blank', :title => @writing_patent.patent_title} if !@writing_patent.url.blank? %>
-<%= t("writing_patent.note")%> <%= @writing_patent.note %>
-<%= t("writing_patent.authors")%> <%= "#{User.from_id(@writing_patent.create_user_id).name rescue ''},#{@writing_patent.authors rescue ''}"%>
-<%= t("writing_patent.files")%>
-
-<% if @writing_patent.writing_patent_files.size > 0 %>
-
-
-
+
<%= t("module_name.personal_patent") %>
+
+ <% if !@writing_patent.year.blank? %>
+ <%= t("personal_patent.year")%> <%= @writing_patent.year %>
+ <% end %>
+
+ <% if !@writing_patent.language.blank? %>
+ <%= t("personal_patent.language")%> <%= @writing_patent.language %>
+ <% end %>
+
+ <% if !@writing_patent.patent_title.blank? %>
+ <%= t("personal_patent.patent_title")%> <%= @writing_patent.patent_title %>
+ <% end %>
+
+ <% if !@writing_patent.writing_patent_category.blank? %>
+ <%= t("personal_patent.patent_category")%> <%= @writing_patent.writing_patent_category.title if @writing_patent.writing_patent_category %>
+ <% end %>
+
+ <% if !@writing_patent.patent_no.blank? %>
+ <%= t("personal_patent.patent_no")%> <%= @writing_patent.patent_no %>
+ <% end %>
+
+ <% if !@writing_patent.patent_country.blank? %>
+ <%= t("personal_patent.patent_country")%> <%= @writing_patent.patent_country %>
+ <% end %>
+
+ <% if !@writing_patent.publish_date.blank? %>
+ <%= t("personal_patent.publication_date")%> <%= @writing_patent.publish_date %>
+ <% end %>
+
+ <% if !@writing_patent.url.blank? %>
+ <%= t("personal_patent.url")%> <%= link_to t(:url), @writing_patent.url, {:target => '_blank', :title => @writing_patent.url} if !@writing_patent.url.blank? %>
+ <% end %>
+
+ <%= t("personal_patent.authors")%> <%= "#{User.from_id(@writing_patent.create_user_id).name rescue ''},#{@writing_patent.authors rescue ''}"%>
+
+ <% if @writing_patent.writing_patent_files.size > 0 %>
+ <%= t("personal_patent.file")%>
+
+
+
+
<% @writing_patent.writing_patent_files.each do | wjfile | %>
<%= link_to wjfile.title, wjfile.file.url, {:target => '_blank', :title => wjfile.title} if wjfile.file.file %>
<% end %>
+
-
- <% end %>
-
-
-
+
+
+ <% end %>
+
diff --git a/vendor/built_in_modules/personal_patent/config/locales/en.yml b/vendor/built_in_modules/personal_patent/config/locales/en.yml
index 444583e3..aee79c46 100644
--- a/vendor/built_in_modules/personal_patent/config/locales/en.yml
+++ b/vendor/built_in_modules/personal_patent/config/locales/en.yml
@@ -33,6 +33,8 @@ en:
description : "File Description"
pages : "Pages"
book_paper_type : "Book Paper Type"
+ frontend:
+ writing_patents: "Patent Front-end"
create_success : "Successfully Create"
update_success : "Successfully Update"
diff --git a/vendor/built_in_modules/personal_patent/config/locales/zh_tw.yml b/vendor/built_in_modules/personal_patent/config/locales/zh_tw.yml
index 849e2401..2d1e08f3 100644
--- a/vendor/built_in_modules/personal_patent/config/locales/zh_tw.yml
+++ b/vendor/built_in_modules/personal_patent/config/locales/zh_tw.yml
@@ -31,6 +31,8 @@ zh_tw:
file : "檔案"
file_name : "檔案名稱"
description : "描述"
+ frontend:
+ writing_patents: "專利前台"
create_success : "新增完成!!"
update_success : "更新完成!!"
diff --git a/vendor/built_in_modules/personal_project/app/controllers/panel/personal_project/front_end/projects_controller.rb b/vendor/built_in_modules/personal_project/app/controllers/panel/personal_project/front_end/projects_controller.rb
index 08a9f8d0..2b13ffed 100644
--- a/vendor/built_in_modules/personal_project/app/controllers/panel/personal_project/front_end/projects_controller.rb
+++ b/vendor/built_in_modules/personal_project/app/controllers/panel/personal_project/front_end/projects_controller.rb
@@ -8,12 +8,10 @@ class Panel::PersonalProject::FrontEnd::ProjectsController < OrbitWidgetControll
def index
- @projects = Project.desc(:year).page(params[:page]).per(10)
+ @projects = Project.where(:is_hidden=>false).desc(:period_start_date).page(params[:page]).per(10)
end
-
- # GET /writing_journals/1
- # GET /writing_journals/1.xml
+
def show
@project = Project.find(params[:id])
diff --git a/vendor/built_in_modules/personal_project/app/views/panel/personal_project/back_end/projects/index.html.erb b/vendor/built_in_modules/personal_project/app/views/panel/personal_project/back_end/projects/index.html.erb
index a778f088..cc8dbf8b 100644
--- a/vendor/built_in_modules/personal_project/app/views/panel/personal_project/back_end/projects/index.html.erb
+++ b/vendor/built_in_modules/personal_project/app/views/panel/personal_project/back_end/projects/index.html.erb
@@ -26,10 +26,12 @@
-
diff --git a/vendor/built_in_modules/personal_project/app/views/panel/personal_project/front_end/projects/index.html.erb b/vendor/built_in_modules/personal_project/app/views/panel/personal_project/front_end/projects/index.html.erb
index 52ca2b16..cf62aef5 100644
--- a/vendor/built_in_modules/personal_project/app/views/panel/personal_project/front_end/projects/index.html.erb
+++ b/vendor/built_in_modules/personal_project/app/views/panel/personal_project/front_end/projects/index.html.erb
@@ -2,26 +2,39 @@
<%= flash_messages %>
-
<%= t('project.list_project') %>
+
<%= t('module_name.personal_project') %>
-
-
- <%= t(:year) %>
- <%= t(:title) %>
-
- <% @projects.each do |post| %>
-
- <%= post.year %>
+
+
+
+ <%= t('personal_project.project_category') %>
+ <%= t('personal_project.year') %>
+ <%= t('personal_project.project_title') %>
+ <%= t('personal_project.participator') %>
+ <%= t('personal_project.period') %>
+
+
+
+
+ <% @projects.each do |project| %>
+
+
+ <%= project.project_category.title %>
+ <%= project.year %>
- <%= link_to post.project_title , panel_personal_project_front_end_project_path(post) %>
+ <%= link_to project.project_title, panel_personal_project_front_end_project_path(project) %>
+ <%= project.participator %>
-
-
- <% end %>
-
-
+ <%= project.period_start_date.strftime("%Y.%m") %> ~ <%= project.period_end_date.strftime("%Y.%m") %>
+
+
+ <% end %>
+
+
+
+
<%= paginate @projects, :params => {:inner => false}%>
\ No newline at end of file
diff --git a/vendor/built_in_modules/personal_project/app/views/panel/personal_project/front_end/projects/show.html.erb b/vendor/built_in_modules/personal_project/app/views/panel/personal_project/front_end/projects/show.html.erb
index 7a56673e..a2067425 100644
--- a/vendor/built_in_modules/personal_project/app/views/panel/personal_project/front_end/projects/show.html.erb
+++ b/vendor/built_in_modules/personal_project/app/views/panel/personal_project/front_end/projects/show.html.erb
@@ -1,34 +1,67 @@
<% # encoding: utf-8 %>
- <%= t("project") %>
-
-<%= t("project.year")%> <%= @project.year %>
-<%= t("project.language")%> <%= @project.language %>
-<%= t("project.project_title")%> <%= @project.project_title %>
-<%= t("project.job_title")%> <%= @project.job_title %>
-<%= t("project.category")%> <%= @project.project_category.title if @project.project_category %>
-<%= t("project.participator")%> <%= @project.participator %>
-<%= t("project.unit")%> <%= @project.unit %>
-<%= t("project.abstract")%> <%= @project.abstract %>
-<%= t("project.period_start_date")%> <%= @project.period_start_date %>
-<%= t("project.period_end_date")%> <%= @project.period_end_date %>
-<%= t("project.url")%> <%= link_to t(:url), @project.url, {:target => '_blank', :title => @project.title} if !@project.url.blank? %>
-<%= t("project.note")%> <%= @project.note %>
-<%= t("project.authors")%> <%= "#{User.from_id(@project.create_user_id).name rescue ''},#{@project.authors rescue ''}"%>
-<%= t("project.files")%>
-
-<% if @project.project_files.size > 0 %>
-
-
-
+
<%= t("module_name.personal_project") %>
+
+ <% if !@project.year.blank? %>
+ <%= t("personal_project.year")%> <%= @project.year %>
+ <% end %>
+
+ <% if !@project.language.blank? %>
+ <%= t("personal_project.language")%> <%= @project.language %>
+ <% end %>
+
+ <% if !@project.project_title.blank? %>
+ <%= t("personal_project.project_title")%> <%= @project.project_title %>
+ <% end %>
+
+ <% if !@project.job_title.blank? %>
+ <%= t("personal_project.job_title")%> <%= @project.job_title %>
+ <% end %>
+
+ <% if !@project.project_category.blank? %>
+ <%= t("personal_project.project_category")%> <%= @project.project_category.title if @project.project_category %>
+ <% end %>
+
+ <% if !@project.participator.blank? %>
+ <%= t("personal_project.participator")%> <%= @project.participator %>
+ <% end %>
+
+ <% if !@project.unit.blank? %>
+ <%= t("personal_project.unit")%> <%= @project.unit %>
+ <% end %>
+
+ <% if !@project.abstract.blank? %>
+ <%= t("personal_project.abstract")%> <%= @project.abstract %>
+ <% end %>
+
+ <% if !@project.period_start_date.blank? %>
+ <%= t("personal_project.start_date")%> <%= @project.period_start_date %>
+ <% end %>
+
+ <% if !@project.period_end_date.blank? %>
+ <%= t("personal_project.end_date")%> <%= @project.period_end_date %>
+ <% end %>
+
+ <% if !@project.url.blank? %>
+ <%= t("personal_project.url")%> <%= link_to t(:url), @project.url, {:target => '_blank', :title => @project.url} if !@project.url.blank? %>
+ <% end %>
+
+ <%= t("personal_project.authors")%> <%= "#{User.from_id(@project.create_user_id).name rescue ''},#{@project.authors rescue ''}"%>
+
+ <% if @project.project_files.size > 0 %>
+ <%= t("personal_project.file")%>
+
+
+
+
<% @project.project_files.each do | wjfile | %>
<%= link_to wjfile.title, wjfile.file.url, {:target => '_blank', :title => wjfile.title} if wjfile.file.file %>
<% end %>
+
-
- <% end %>
-
-
-
+
+
+ <% end %>
+
diff --git a/vendor/built_in_modules/personal_project/config/locales/en.yml b/vendor/built_in_modules/personal_project/config/locales/en.yml
index e4bc2e27..2bdca4f9 100644
--- a/vendor/built_in_modules/personal_project/config/locales/en.yml
+++ b/vendor/built_in_modules/personal_project/config/locales/en.yml
@@ -36,6 +36,8 @@ en:
description : "File Description"
pages : "Pages"
book_paper_type : "Book Paper Type"
+ frontend:
+ projects: "Project Front-end"
create_success : "Successfully Create"
update_success : "Successfully Update"
diff --git a/vendor/built_in_modules/personal_project/config/locales/zh_tw.yml b/vendor/built_in_modules/personal_project/config/locales/zh_tw.yml
index 4be3c73e..e5adda66 100644
--- a/vendor/built_in_modules/personal_project/config/locales/zh_tw.yml
+++ b/vendor/built_in_modules/personal_project/config/locales/zh_tw.yml
@@ -36,6 +36,8 @@ zh_tw:
description : "描述"
pages : "Pages"
book_paper_type : "Book Paper Type"
+ frontend:
+ projects: "研究計畫前台"
create_success : "新增完成!!"
update_success : "更新完成!!"
diff --git a/vendor/built_in_modules/personal_research/app/controllers/panel/personal_research/front_end/researchs_controller.rb b/vendor/built_in_modules/personal_research/app/controllers/panel/personal_research/front_end/researchs_controller.rb
index a726dee2..59ef075e 100644
--- a/vendor/built_in_modules/personal_research/app/controllers/panel/personal_research/front_end/researchs_controller.rb
+++ b/vendor/built_in_modules/personal_research/app/controllers/panel/personal_research/front_end/researchs_controller.rb
@@ -8,7 +8,7 @@ class Panel::PersonalResearch::FrontEnd::ResearchsController < OrbitWidgetContro
def index
- @researchs = Research.desc(:year).page(params[:page]).per(10)
+ @researchs = Research.where(:is_hidden=>false).desc(:publish_date).page(params[:page]).per(10)
end
diff --git a/vendor/built_in_modules/personal_research/app/views/panel/personal_research/back_end/researchs/index.html.erb b/vendor/built_in_modules/personal_research/app/views/panel/personal_research/back_end/researchs/index.html.erb
index 5c55084c..707a8543 100644
--- a/vendor/built_in_modules/personal_research/app/views/panel/personal_research/back_end/researchs/index.html.erb
+++ b/vendor/built_in_modules/personal_research/app/views/panel/personal_research/back_end/researchs/index.html.erb
@@ -24,9 +24,11 @@
-