From 766b1482b61cbcdc5b163a46066ea808df1becc7 Mon Sep 17 00:00:00 2001 From: manson Date: Fri, 1 Aug 2014 19:51:41 +0800 Subject: [PATCH] Update personal-plugin frontend --- .../template/modules/personal_plugin.scss | 4 ++ .../assets/stylesheets/template/template.scss | 1 + .../modules/book/show.html.erb | 31 ++-------- .../modules/journal_paper/index.html.erb | 2 +- .../modules/journal_paper/show.html.erb | 34 ++--------- .../modules/personal_conference/show.html.erb | 56 +------------------ .../modules/personal_diploma/show.html.erb | 15 ++--- .../modules/personal_experience/show.html.erb | 18 ++---- .../modules/personal_honor/show.html.erb | 15 ++--- .../modules/personal_lab/show.html.erb | 30 ++-------- .../modules/personal_patent/show.html.erb | 29 ++-------- .../modules/personal_project/show.html.erb | 30 ++-------- .../modules/personal_research/show.html.erb | 28 ++-------- 13 files changed, 47 insertions(+), 246 deletions(-) create mode 100644 app/templates/orbit_bootstrap/assets/stylesheets/template/modules/personal_plugin.scss diff --git a/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/personal_plugin.scss b/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/personal_plugin.scss new file mode 100644 index 0000000..635d222 --- /dev/null +++ b/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/personal_plugin.scss @@ -0,0 +1,4 @@ +.plugin-show-table th{ + text-align: right; + min-width: 80px; +} \ No newline at end of file diff --git a/app/templates/orbit_bootstrap/assets/stylesheets/template/template.scss b/app/templates/orbit_bootstrap/assets/stylesheets/template/template.scss index aa2ea3e..2fdace2 100644 --- a/app/templates/orbit_bootstrap/assets/stylesheets/template/template.scss +++ b/app/templates/orbit_bootstrap/assets/stylesheets/template/template.scss @@ -21,6 +21,7 @@ @import "modules/gallery"; @import "modules/archives"; @import "modules/member"; +@import "modules/personal_plugin"; // Widget @import "widget/breadcrumb"; diff --git a/app/templates/orbit_bootstrap/modules/book/show.html.erb b/app/templates/orbit_bootstrap/modules/book/show.html.erb index 3722a7e..34b30df 100644 --- a/app/templates/orbit_bootstrap/modules/book/show.html.erb +++ b/app/templates/orbit_bootstrap/modules/book/show.html.erb @@ -1,26 +1,5 @@ -
-

- {{title}} -

-

{{year}}

-

{{authors}}

-

{{isbn}}

-

{{language}}

-

{{pages}}

-

{{publish_date}}

-

{{publication_date}}

-

{{url}}

-

{{note}}

-

{{keywords}}

-

{{publisher}}

-

{{editor}}

- - -
+ + + + +
{{title}}{{value}}
\ No newline at end of file diff --git a/app/templates/orbit_bootstrap/modules/journal_paper/index.html.erb b/app/templates/orbit_bootstrap/modules/journal_paper/index.html.erb index 817f19d..6cbfaef 100644 --- a/app/templates/orbit_bootstrap/modules/journal_paper/index.html.erb +++ b/app/templates/orbit_bootstrap/modules/journal_paper/index.html.erb @@ -1,5 +1,5 @@ - + diff --git a/app/templates/orbit_bootstrap/modules/journal_paper/show.html.erb b/app/templates/orbit_bootstrap/modules/journal_paper/show.html.erb index 84b9b1b..06783c8 100644 --- a/app/templates/orbit_bootstrap/modules/journal_paper/show.html.erb +++ b/app/templates/orbit_bootstrap/modules/journal_paper/show.html.erb @@ -1,29 +1,5 @@ -
-

- {{title}} -

- -

 {{journal_title}}

-

 {{year}}

-

 {{authors}}

-

 {{isbn}}

-

 {{vol_no}}

-

 {{form_to_start}}

-

 {{form_to_end}}

-

 {{language}}

-

 {{issue_no}}

-

 {{total_pages}}

-

 {{abstract}}

-

 {{publication_date}}

-

 {{url}}

-

 {{note}}

- - -
+

{{widget-title}}

{{page-title}}

{{th_year}}
+ + + +
{{title}}{{value}}
diff --git a/app/templates/orbit_bootstrap/modules/personal_conference/show.html.erb b/app/templates/orbit_bootstrap/modules/personal_conference/show.html.erb index 9d0a1c1..06783c8 100644 --- a/app/templates/orbit_bootstrap/modules/personal_conference/show.html.erb +++ b/app/templates/orbit_bootstrap/modules/personal_conference/show.html.erb @@ -1,55 +1,5 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
{{td_paper_title}}{{paper_title}}
{{td_authors}}{{authors}}
{{td_paper_type}} -
    -
  • {{paper_type}}
  • -
-
{{td_author_type}} -
    -
  • {{author_type}}
  • -
-
{{td_paper_level}} -
    -
  • {{paper_level}}
  • -
-
{{td_year}}{{year}}
{{td_conference_title}}{{conference_title}}
{{td_sponsor}}{{sponsor}}
{{td_location}}{{location}}
{{td_duration}}{{period_start_date}} ~ {{period_end_date}}
{{td_publication_date}}{{publication_date}}
{{td_language}}{{language}}
{{td_isbn}}{{isbn}}
{{td_isi_number}}{{isi_number}}
{{td_url}}{{url}}
{{td_keywords}}{{keywords}}
{{td_abstract}}{{abstract}}
{{td_note}}{{note}}
{{td_files}} -
-
- - {{file_title}} - {{file_ext}} - {{file_description}} -
-
-
+ +
{{title}}{{value}}
diff --git a/app/templates/orbit_bootstrap/modules/personal_diploma/show.html.erb b/app/templates/orbit_bootstrap/modules/personal_diploma/show.html.erb index dc4c12d..34b30df 100644 --- a/app/templates/orbit_bootstrap/modules/personal_diploma/show.html.erb +++ b/app/templates/orbit_bootstrap/modules/personal_diploma/show.html.erb @@ -1,12 +1,5 @@ - - - - - - - - - - +
{{th_duration}}{{duration}}
{{th_school_name}}{{school_name}}
{{th_country}}{{country}}
{{th_department}}{{department}}
{{th_language}}{{language}}
{{th_keywords}}{{keywords}}
{{th_url}}{{url}}
{{th_note}}{{note}}
+ + -
{{title}}{{value}}
+ \ No newline at end of file diff --git a/app/templates/orbit_bootstrap/modules/personal_experience/show.html.erb b/app/templates/orbit_bootstrap/modules/personal_experience/show.html.erb index a43861f..34b30df 100644 --- a/app/templates/orbit_bootstrap/modules/personal_experience/show.html.erb +++ b/app/templates/orbit_bootstrap/modules/personal_experience/show.html.erb @@ -1,15 +1,5 @@ - - - - - - - - - - - - - +
{{th_organizationt_title}}{{organizationt_title}}
{{th_department}}{{department}}
{{th_job_title}}{{job_title}}
{{th_experience_type}}{{experience_type}}
{{th_language}}{{language}}
{{th_start_date}}{{start_date}}
{{th_end_date}}{{end_date}}
{{th_duration}}{{duration}}
{{th_keywords}}{{keywords}}
{{th_url}}{{url}}
{{th_note}}{{note}}
+ + -
{{title}}{{value}}
+ \ No newline at end of file diff --git a/app/templates/orbit_bootstrap/modules/personal_honor/show.html.erb b/app/templates/orbit_bootstrap/modules/personal_honor/show.html.erb index 52b4ab3..34b30df 100644 --- a/app/templates/orbit_bootstrap/modules/personal_honor/show.html.erb +++ b/app/templates/orbit_bootstrap/modules/personal_honor/show.html.erb @@ -1,12 +1,5 @@ - - - , - - - - - - - +
{{th_year}}{{year}}
{{th_honor_type}}{{honor_type}}
{{th_award_name}}{{award_name}}
{{th_awarding_unit}}{{awarding_unit}}
{{th_language}}{{language}}
{{th_keywords}}{{keywords}}
{{th_url}}{{url}}
{{th_note}}{{note}}
+ + -
{{title}}{{value}}
+ \ No newline at end of file diff --git a/app/templates/orbit_bootstrap/modules/personal_lab/show.html.erb b/app/templates/orbit_bootstrap/modules/personal_lab/show.html.erb index 1b4a941..34b30df 100644 --- a/app/templates/orbit_bootstrap/modules/personal_lab/show.html.erb +++ b/app/templates/orbit_bootstrap/modules/personal_lab/show.html.erb @@ -1,27 +1,5 @@ - - - - - - - - - - - - - - - - - +
{{th_lab_title}}{{lab_title}}
{{th_location}}{{location}}
{{th_participating_professor}}{{participating_professor}}
{{th_participating_student}}{{participating_student}}
{{th_year}}{{year}}
{{th_keywords}}{{keywords}}
{{th_extension_no}}{{extension_no}}
{{th_research_direction}}{{research_direction}}
{{th_facility}}{{facility}}
{{th_url}}{{url}}
{{th_note}}{{note}}
{{td_files}} -
-
- - {{file_title}} - {{file_ext}} - {{file_description}} -
-
-
+ + -
{{title}}{{value}}
+ \ No newline at end of file diff --git a/app/templates/orbit_bootstrap/modules/personal_patent/show.html.erb b/app/templates/orbit_bootstrap/modules/personal_patent/show.html.erb index 2d58c29..34b30df 100644 --- a/app/templates/orbit_bootstrap/modules/personal_patent/show.html.erb +++ b/app/templates/orbit_bootstrap/modules/personal_patent/show.html.erb @@ -1,26 +1,5 @@ - - - - - - - - - - - - - - - - +
{{th_patent_title}}{{patent_title}}
{{th_authors}}{{authors}}
{{th_patent_type}}{{patent_type}}
{{th_year}}{{year}}
{{th_patent_no}}{{patent_no}}
{{th_patent_country}}{{patent_country}}
{{th_publish_date}}{{publish_date}}
{{th_keywords}}{{keywords}}
{{th_url}}{{url}}
{{th_note}}{{note}}
{{th_files}} -
-
- - {{file_title}} - {{file_ext}} - {{file_description}} -
-
-
+ + -
{{title}}{{value}}
+ \ No newline at end of file diff --git a/app/templates/orbit_bootstrap/modules/personal_project/show.html.erb b/app/templates/orbit_bootstrap/modules/personal_project/show.html.erb index 28524c0..34b30df 100644 --- a/app/templates/orbit_bootstrap/modules/personal_project/show.html.erb +++ b/app/templates/orbit_bootstrap/modules/personal_project/show.html.erb @@ -1,27 +1,5 @@ - - - - - - - - - - - - - - - - - +
{{th_project_title}}{{project_title}}
{{th_duration}}{{duration}}
{{th_project_type}}{{project_type}}
{{th_job_title}}{{job_title}}
{{th_participator}}{{participator}}
{{th_unit}}{{unit}}
{{th_year}}{{year}}
{{th_keywords}}{{keywords}}
{{th_url}}{{url}}
{{th_abstract}}{{abstract}}
{{th_note}}{{note}}
{{th_files}} -
-
- - {{file_title}} - {{file_ext}} - {{file_description}} -
-
-
+ + -
{{title}}{{value}}
+ \ No newline at end of file diff --git a/app/templates/orbit_bootstrap/modules/personal_research/show.html.erb b/app/templates/orbit_bootstrap/modules/personal_research/show.html.erb index 37eef7d..34b30df 100644 --- a/app/templates/orbit_bootstrap/modules/personal_research/show.html.erb +++ b/app/templates/orbit_bootstrap/modules/personal_research/show.html.erb @@ -1,25 +1,5 @@ - - - - - - - - - - - - - - - +
{{th_research_title}}{{research_title}}
{{th_authors}}{{authors}}
{{th_extracted_chapters}}{{extracted_chapters}}
{{th_year}}{{year}}
{{th_language}}{{language}}
{{th_publish_date}}{{publish_date}}
{{th_keywords}}{{keywords}}
{{th_url}}{{url}}
{{th_note}}{{note}}
{{th_files}} -
-
- - {{file_title}} - {{file_ext}} - {{file_description}} -
-
-
+ + -
{{title}}{{value}}
+ \ No newline at end of file