Skip to content

Commit 501e39a

Browse files
Merge pull request codebar#1784 from codebar/remove-job-board-code
Remove job board code
2 parents 298b998 + 56923dc commit 501e39a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+4
-1441
lines changed

app/assets/javascripts/application.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ $(function() {
3838
format: 'HH:i'
3939
});
4040

41-
$('#job_expiry_date').pickadate({
42-
format: 'dd/mm/yyyy'
43-
});
44-
4541
$('body').removeClass('no-js');
4642

4743
// Chosen hides inputs and selects, which becomes problematic when they are

app/controllers/admin/jobs_controller.rb

Lines changed: 0 additions & 41 deletions
This file was deleted.

app/controllers/admin/portal_controller.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ class Admin::PortalController < Admin::ApplicationController
22
def index
33
authorize :admin_portal
44

5-
@jobs_pending_approval = Job.where(approved: false, submitted: true).count
65
@chapters = Chapter.active.all.order(name: :asc)
76
@workshops = Workshop.upcoming
87
@groups = Group.joins(:chapter).merge(@chapters)

app/controllers/application_controller.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,10 @@ def user_path
138138
request.referrer || root_path
139139
end
140140

141-
def jobs_pending_approval
142-
@jobs_pending_approval ||= Job.where(approved: false, submitted: true).count
143-
end
144-
145141
def chapters
146142
@chapters ||= Chapter.all
147143
end
148144

149-
helper_method :jobs_pending_approval, :chapters
150-
151145
def redirect_back(fallback_location:, **args)
152146
if referer = request.headers['Referer']
153147
redirect_to referer, **args

app/controllers/jobs_controller.rb

Lines changed: 0 additions & 17 deletions
This file was deleted.

app/controllers/member/jobs_controller.rb

Lines changed: 0 additions & 72 deletions
This file was deleted.

app/mailers/job_mailer.rb

Lines changed: 0 additions & 25 deletions
This file was deleted.

app/models/job.rb

Lines changed: 0 additions & 44 deletions
This file was deleted.

app/models/member.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class Member < ActiveRecord::Base
1010
has_many :invitations
1111
has_many :auth_services
1212
has_many :feedbacks, foreign_key: :coach_id
13-
has_many :jobs, foreign_key: :created_by_id
1413
has_many :subscriptions
1514
has_many :groups, through: :subscriptions
1615
has_many :member_notes

app/policies/job_policy.rb

Lines changed: 0 additions & 17 deletions
This file was deleted.

app/presenters/job_presenter.rb

Lines changed: 0 additions & 17 deletions
This file was deleted.

app/presenters/jobs_presenter.rb

Lines changed: 0 additions & 12 deletions
This file was deleted.

app/views/admin/jobs/_job.html.haml

Lines changed: 0 additions & 19 deletions
This file was deleted.

app/views/admin/jobs/index.html.haml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)