From ffec7643a4a9ddd49637b671746b732f2d025d4f Mon Sep 17 00:00:00 2001 From: Tobias Eidelpes Date: Fri, 1 May 2020 11:39:57 +0200 Subject: [PATCH] Add skeleton for theses, projects and courses --- app/assets/stylesheets/projects_crawler.scss | 3 +++ app/assets/stylesheets/theses_crawler.scss | 3 +++ app/controllers/courses_crawler_controller.rb | 2 +- app/controllers/projects_crawler_controller.rb | 13 +++++++++++++ app/controllers/theses_crawler_controller.rb | 13 +++++++++++++ app/helpers/projects_crawler_helper.rb | 2 ++ app/helpers/theses_crawler_helper.rb | 2 ++ .../controllers/projects_crawler_controller_test.rb | 7 +++++++ test/controllers/theses_crawler_controller_test.rb | 7 +++++++ 9 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 app/assets/stylesheets/projects_crawler.scss create mode 100644 app/assets/stylesheets/theses_crawler.scss create mode 100644 app/controllers/projects_crawler_controller.rb create mode 100644 app/controllers/theses_crawler_controller.rb create mode 100644 app/helpers/projects_crawler_helper.rb create mode 100644 app/helpers/theses_crawler_helper.rb create mode 100644 test/controllers/projects_crawler_controller_test.rb create mode 100644 test/controllers/theses_crawler_controller_test.rb diff --git a/app/assets/stylesheets/projects_crawler.scss b/app/assets/stylesheets/projects_crawler.scss new file mode 100644 index 0000000..9783c68 --- /dev/null +++ b/app/assets/stylesheets/projects_crawler.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the ProjectsCrawler controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: https://sass-lang.com/ diff --git a/app/assets/stylesheets/theses_crawler.scss b/app/assets/stylesheets/theses_crawler.scss new file mode 100644 index 0000000..25c9a4a --- /dev/null +++ b/app/assets/stylesheets/theses_crawler.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the ThesesCrawler controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: https://sass-lang.com/ diff --git a/app/controllers/courses_crawler_controller.rb b/app/controllers/courses_crawler_controller.rb index 0a594a7..879a596 100644 --- a/app/controllers/courses_crawler_controller.rb +++ b/app/controllers/courses_crawler_controller.rb @@ -1,4 +1,4 @@ -class CoursesCrawlerController < ApplicationController +class CoursesCrawlerController < TissCrawlerController def show_basic end diff --git a/app/controllers/projects_crawler_controller.rb b/app/controllers/projects_crawler_controller.rb new file mode 100644 index 0000000..c090dda --- /dev/null +++ b/app/controllers/projects_crawler_controller.rb @@ -0,0 +1,13 @@ +class ProjectsCrawlerController < TissCrawlerController + def show_basic + + end + + def show_detail + + end + + def add_to_fav + + end +end diff --git a/app/controllers/theses_crawler_controller.rb b/app/controllers/theses_crawler_controller.rb new file mode 100644 index 0000000..600592a --- /dev/null +++ b/app/controllers/theses_crawler_controller.rb @@ -0,0 +1,13 @@ +class ThesesCrawlerController < TissCrawlerController + def show_basic + + end + + def show_detail + + end + + def add_to_fav + + end +end diff --git a/app/helpers/projects_crawler_helper.rb b/app/helpers/projects_crawler_helper.rb new file mode 100644 index 0000000..5c75729 --- /dev/null +++ b/app/helpers/projects_crawler_helper.rb @@ -0,0 +1,2 @@ +module ProjectsCrawlerHelper +end diff --git a/app/helpers/theses_crawler_helper.rb b/app/helpers/theses_crawler_helper.rb new file mode 100644 index 0000000..e2f404e --- /dev/null +++ b/app/helpers/theses_crawler_helper.rb @@ -0,0 +1,2 @@ +module ThesesCrawlerHelper +end diff --git a/test/controllers/projects_crawler_controller_test.rb b/test/controllers/projects_crawler_controller_test.rb new file mode 100644 index 0000000..20f5ab6 --- /dev/null +++ b/test/controllers/projects_crawler_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class ProjectsCrawlerControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/test/controllers/theses_crawler_controller_test.rb b/test/controllers/theses_crawler_controller_test.rb new file mode 100644 index 0000000..748eafb --- /dev/null +++ b/test/controllers/theses_crawler_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class ThesesCrawlerControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end