diff --git a/vendor/built_in_modules/announcement/app/models/announcement_tag.rb b/vendor/built_in_modules/announcement/app/models/announcement_tag.rb deleted file mode 100644 index a23e74bf5..000000000 --- a/vendor/built_in_modules/announcement/app/models/announcement_tag.rb +++ /dev/null @@ -1,15 +0,0 @@ -class AnnouncementTag < Tag - - has_and_belongs_to_many :bulletins - field :order,:default => 0 - - def get_visible_bulletins(sort = :title) - date_now = Time.now - self.bulletins.where(:is_hidden => false).any_of( {deadline: nil,:postdate.lte => date_now} , {:deadline.gte => date_now,:postdate.lte => date_now} ).desc(:is_top, sort) - end - - def bulletins - Bulletin.all.any_in(:_id => bulletin_ids) - end - -end \ No newline at end of file diff --git a/vendor/built_in_modules/archive/app/controllers/panel/archive/back_end/tags_controller.rb b/vendor/built_in_modules/archive/app/controllers/panel/archive/back_end/tags_controller.rb deleted file mode 100644 index 8dc1d4f3d..000000000 --- a/vendor/built_in_modules/archive/app/controllers/panel/archive/back_end/tags_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Panel::Archive::BackEnd::TagsController < Admin::TagsController - - def initialize - super - @app_title = 'archive' - end - -end diff --git a/vendor/built_in_modules/archive/app/models/archive_tag.rb b/vendor/built_in_modules/archive/app/models/archive_tag.rb deleted file mode 100644 index 48aedc30f..000000000 --- a/vendor/built_in_modules/archive/app/models/archive_tag.rb +++ /dev/null @@ -1,10 +0,0 @@ -class ArchiveTag < Tag - - has_and_belongs_to_many :archive_files - - - def get_visible_links(sort = :name) - self.archive_files.where(:is_hidden => false).desc(:is_top, sort) - end - -end \ No newline at end of file diff --git a/vendor/built_in_modules/calendar/app/controllers/panel/calendar/back_end/tags_controller.rb b/vendor/built_in_modules/calendar/app/controllers/panel/calendar/back_end/tags_controller.rb deleted file mode 100644 index 46596250c..000000000 --- a/vendor/built_in_modules/calendar/app/controllers/panel/calendar/back_end/tags_controller.rb +++ /dev/null @@ -1,6 +0,0 @@ -class Panel::Calendar::BackEnd::TagsController < Admin::TagsController - def initialize - super - @app_title = 'calendar' - end -end \ No newline at end of file diff --git a/vendor/built_in_modules/faq/app/controllers/panel/faq/back_end/tags_controller.rb b/vendor/built_in_modules/faq/app/controllers/panel/faq/back_end/tags_controller.rb deleted file mode 100644 index 88126401a..000000000 --- a/vendor/built_in_modules/faq/app/controllers/panel/faq/back_end/tags_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Panel::Faq::BackEnd::TagsController < Admin::TagsController - - def initialize - super - @app_title = 'faq' - end - -end diff --git a/vendor/built_in_modules/faq/app/models/faq_tag.rb b/vendor/built_in_modules/faq/app/models/faq_tag.rb deleted file mode 100644 index a3e64a521..000000000 --- a/vendor/built_in_modules/faq/app/models/faq_tag.rb +++ /dev/null @@ -1,10 +0,0 @@ -class FaqTag < Tag - - has_and_belongs_to_many :qas - - - def get_visible_links(sort = :title) - self.qas.where(:is_hidden => false).desc(:is_top, sort) - end - -end \ No newline at end of file diff --git a/vendor/built_in_modules/gallery/app/models/gallery_tag.rb b/vendor/built_in_modules/gallery/app/models/gallery_tag.rb deleted file mode 100644 index bc5e45352..000000000 --- a/vendor/built_in_modules/gallery/app/models/gallery_tag.rb +++ /dev/null @@ -1,6 +0,0 @@ -class GalleryTag < Tag - - has_and_belongs_to_many :gallery_albums - has_and_belongs_to_many :gallery_images - -end \ No newline at end of file diff --git a/vendor/built_in_modules/personal_book/app/controllers/panel/personal_book/back_end/tags_controller.rb b/vendor/built_in_modules/personal_book/app/controllers/panel/personal_book/back_end/tags_controller.rb deleted file mode 100644 index b1aee2517..000000000 --- a/vendor/built_in_modules/personal_book/app/controllers/panel/personal_book/back_end/tags_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Panel::PersonalBook::BackEnd::TagsController < Admin::TagsController - - def initialize - super - @app_title = 'personal_book' - end - -end diff --git a/vendor/built_in_modules/personal_book/app/models/personal_book_tag.rb b/vendor/built_in_modules/personal_book/app/models/personal_book_tag.rb deleted file mode 100644 index 2b77f56e0..000000000 --- a/vendor/built_in_modules/personal_book/app/models/personal_book_tag.rb +++ /dev/null @@ -1,9 +0,0 @@ -class PersonalBookTag < Tag - - has_and_belongs_to_many :writing_books - - def get_visible_links(sort = :title) - self.writing_books.where(:is_hidden => false).desc(:is_top, sort) - end - -end \ No newline at end of file diff --git a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/tags_controller.rb b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/tags_controller.rb deleted file mode 100644 index 296d6086e..000000000 --- a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/back_end/tags_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Panel::PersonalConference::BackEnd::TagsController < Admin::TagsController - - def initialize - super - @app_title = 'personal_conference' - end - -end diff --git a/vendor/built_in_modules/personal_conference/app/models/personal_conference_tag.rb b/vendor/built_in_modules/personal_conference/app/models/personal_conference_tag.rb deleted file mode 100644 index bdcfc948f..000000000 --- a/vendor/built_in_modules/personal_conference/app/models/personal_conference_tag.rb +++ /dev/null @@ -1,9 +0,0 @@ -class PersonalConferenceTag < Tag - - has_and_belongs_to_many :writing_conferences - - def get_visible_links(sort = :title) - self.writing_conferences.where(:is_hidden => false).desc(:is_top, sort) - end - -end diff --git a/vendor/built_in_modules/personal_diploma/app/controllers/panel/personal_diploma/back_end/tags_controller.rb b/vendor/built_in_modules/personal_diploma/app/controllers/panel/personal_diploma/back_end/tags_controller.rb deleted file mode 100644 index 1a092339f..000000000 --- a/vendor/built_in_modules/personal_diploma/app/controllers/panel/personal_diploma/back_end/tags_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Panel::PersonalDiploma::BackEnd::TagsController < Admin::TagsController - - def initialize - super - @app_title = 'personal_diploma' - end - -end diff --git a/vendor/built_in_modules/personal_diploma/app/models/personal_diploma_tag.rb b/vendor/built_in_modules/personal_diploma/app/models/personal_diploma_tag.rb deleted file mode 100644 index 35f6c17f6..000000000 --- a/vendor/built_in_modules/personal_diploma/app/models/personal_diploma_tag.rb +++ /dev/null @@ -1,9 +0,0 @@ -class PersonalDiplomaTag < Tag - - has_and_belongs_to_many :diplomas - - def get_visible_links(sort = :title) - self.diplomas.where(:is_hidden => false).desc(:is_top, sort) - end - -end \ No newline at end of file diff --git a/vendor/built_in_modules/personal_experience/app/controllers/panel/personal_experience/back_end/tags_controller.rb b/vendor/built_in_modules/personal_experience/app/controllers/panel/personal_experience/back_end/tags_controller.rb deleted file mode 100644 index 9e58b3d4e..000000000 --- a/vendor/built_in_modules/personal_experience/app/controllers/panel/personal_experience/back_end/tags_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Panel::PersonalExperience::BackEnd::TagsController < Admin::TagsController - - def initialize - super - @app_title = 'personal_experience' - end - -end diff --git a/vendor/built_in_modules/personal_experience/app/models/personal_experience_tag.rb b/vendor/built_in_modules/personal_experience/app/models/personal_experience_tag.rb deleted file mode 100644 index 815a0a583..000000000 --- a/vendor/built_in_modules/personal_experience/app/models/personal_experience_tag.rb +++ /dev/null @@ -1,9 +0,0 @@ -class PersonalExperienceTag < Tag - - has_and_belongs_to_many :experiences - - def get_visible_links(sort = :title) - self.experiences.where(:is_hidden => false).desc(:is_top, sort) - end - -end \ No newline at end of file diff --git a/vendor/built_in_modules/personal_honor/app/controllers/panel/personal_honor/back_end/tags_controller.rb b/vendor/built_in_modules/personal_honor/app/controllers/panel/personal_honor/back_end/tags_controller.rb deleted file mode 100644 index 7665d103a..000000000 --- a/vendor/built_in_modules/personal_honor/app/controllers/panel/personal_honor/back_end/tags_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Panel::PersonalHonor::BackEnd::TagsController < Admin::TagsController - - def initialize - super - @app_title = 'personal_honor' - end - -end diff --git a/vendor/built_in_modules/personal_honor/app/models/personal_honor_tag.rb b/vendor/built_in_modules/personal_honor/app/models/personal_honor_tag.rb deleted file mode 100644 index 399f8c199..000000000 --- a/vendor/built_in_modules/personal_honor/app/models/personal_honor_tag.rb +++ /dev/null @@ -1,9 +0,0 @@ -class PersonalHonorTag < Tag - - has_and_belongs_to_many :honors - - def get_visible_links(sort = :title) - self.honors.where(:is_hidden => false).desc(:is_top, sort) - end - -end \ No newline at end of file diff --git a/vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/back_end/tags_controller.rb b/vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/back_end/tags_controller.rb deleted file mode 100644 index aee889c61..000000000 --- a/vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/back_end/tags_controller.rb +++ /dev/null @@ -1,10 +0,0 @@ -class Panel::PersonalJournal::BackEnd::TagsController < Admin::TagsController - - include OrbitControllerLib::DivisionForDisable - - def initialize - super - @app_title = 'personal_journal' - end - -end diff --git a/vendor/built_in_modules/personal_journal/app/models/personal_journal_tag.rb b/vendor/built_in_modules/personal_journal/app/models/personal_journal_tag.rb deleted file mode 100644 index eb85e89fa..000000000 --- a/vendor/built_in_modules/personal_journal/app/models/personal_journal_tag.rb +++ /dev/null @@ -1,7 +0,0 @@ -class PersonalJournalTag < Tag - has_and_belongs_to_many :writing_journals - - def get_visible_links(sort = :title) - self.writing_journals.where(:is_hidden => false).desc(:is_top, sort) - end -end diff --git a/vendor/built_in_modules/personal_lab/app/controllers/panel/personal_lab/back_end/tags_controller.rb b/vendor/built_in_modules/personal_lab/app/controllers/panel/personal_lab/back_end/tags_controller.rb deleted file mode 100644 index 638edc95a..000000000 --- a/vendor/built_in_modules/personal_lab/app/controllers/panel/personal_lab/back_end/tags_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Panel::PersonalLab::BackEnd::TagsController < Admin::TagsController - - def initialize - super - @app_title = 'personal_lab' - end - -end diff --git a/vendor/built_in_modules/personal_lab/app/models/personal_lab_tag.rb b/vendor/built_in_modules/personal_lab/app/models/personal_lab_tag.rb deleted file mode 100644 index ae3aab2cf..000000000 --- a/vendor/built_in_modules/personal_lab/app/models/personal_lab_tag.rb +++ /dev/null @@ -1,9 +0,0 @@ -class PersonalLabTag < Tag - - has_and_belongs_to_many :labs - - def get_visible_links(sort = :title) - self.labs.where(:is_hidden => false).desc(:is_top, sort) - end - -end \ No newline at end of file diff --git a/vendor/built_in_modules/personal_patent/app/controllers/panel/personal_patent/back_end/tags_controller.rb b/vendor/built_in_modules/personal_patent/app/controllers/panel/personal_patent/back_end/tags_controller.rb deleted file mode 100644 index b7479e8c9..000000000 --- a/vendor/built_in_modules/personal_patent/app/controllers/panel/personal_patent/back_end/tags_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Panel::PersonalPatent::BackEnd::TagsController < Admin::TagsController - - def initialize - super - @app_title = 'personal_patent' - end - -end diff --git a/vendor/built_in_modules/personal_patent/app/models/personal_patent_tag.rb b/vendor/built_in_modules/personal_patent/app/models/personal_patent_tag.rb deleted file mode 100644 index 752e62e6b..000000000 --- a/vendor/built_in_modules/personal_patent/app/models/personal_patent_tag.rb +++ /dev/null @@ -1,9 +0,0 @@ -class PersonalPatentTag < Tag - - has_and_belongs_to_many :writing_patents - - def get_visible_links(sort = :title) - self.writing_patents.where(:is_hidden => false).desc(:is_top, sort) - end - -end \ No newline at end of file diff --git a/vendor/built_in_modules/personal_project/app/controllers/panel/personal_project/back_end/tags_controller.rb b/vendor/built_in_modules/personal_project/app/controllers/panel/personal_project/back_end/tags_controller.rb deleted file mode 100644 index cffca49e6..000000000 --- a/vendor/built_in_modules/personal_project/app/controllers/panel/personal_project/back_end/tags_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Panel::PersonalProject::BackEnd::TagsController < Admin::TagsController - - def initialize - super - @app_title = 'personal_project' - end - -end diff --git a/vendor/built_in_modules/personal_project/app/models/personal_project_tag.rb b/vendor/built_in_modules/personal_project/app/models/personal_project_tag.rb deleted file mode 100644 index 7be73667a..000000000 --- a/vendor/built_in_modules/personal_project/app/models/personal_project_tag.rb +++ /dev/null @@ -1,9 +0,0 @@ -class PersonalProjectTag < Tag - - has_and_belongs_to_many :projects - - def get_visible_links(sort = :title) - self.projects.where(:is_hidden => false).desc(:is_top, sort) - end - -end \ No newline at end of file diff --git a/vendor/built_in_modules/personal_research/app/controllers/panel/personal_research/back_end/tags_controller.rb b/vendor/built_in_modules/personal_research/app/controllers/panel/personal_research/back_end/tags_controller.rb deleted file mode 100644 index b4e821627..000000000 --- a/vendor/built_in_modules/personal_research/app/controllers/panel/personal_research/back_end/tags_controller.rb +++ /dev/null @@ -1,10 +0,0 @@ -class Panel::PersonalResearch::BackEnd::TagsController < Admin::TagsController - - include OrbitControllerLib::DivisionForDisable - - def initialize - super - @app_title = 'personal_research' - end - -end diff --git a/vendor/built_in_modules/personal_research/app/models/personal_research_tag.rb b/vendor/built_in_modules/personal_research/app/models/personal_research_tag.rb deleted file mode 100644 index 56ddb4bff..000000000 --- a/vendor/built_in_modules/personal_research/app/models/personal_research_tag.rb +++ /dev/null @@ -1,9 +0,0 @@ -class PersonalResearchTag < Tag - - has_and_belongs_to_many :researchs - - def get_visible_links(sort = :title) - self.researchs.where(:is_hidden => false).desc(:is_top, sort) - end - -end \ No newline at end of file diff --git a/vendor/built_in_modules/web_resource/app/controllers/panel/web_resource/back_end/tags_controller.rb b/vendor/built_in_modules/web_resource/app/controllers/panel/web_resource/back_end/tags_controller.rb deleted file mode 100644 index 5ea3562ac..000000000 --- a/vendor/built_in_modules/web_resource/app/controllers/panel/web_resource/back_end/tags_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Panel::WebResource::BackEnd::TagsController < Admin::TagsController - - def initialize - super - @app_title = 'web_resource' - end - -end diff --git a/vendor/built_in_modules/web_resource/app/models/web_resource_tag.rb b/vendor/built_in_modules/web_resource/app/models/web_resource_tag.rb deleted file mode 100644 index 9a7f35624..000000000 --- a/vendor/built_in_modules/web_resource/app/models/web_resource_tag.rb +++ /dev/null @@ -1,10 +0,0 @@ -class WebResourceTag < Tag - - has_and_belongs_to_many :web_links - - - def get_visible_links(sort = :title) - self.web_links.where(:is_hidden => false).desc(:is_top, sort) - end - -end \ No newline at end of file