Skip to content
Permalink
Browse files

Fixing alignment

  • Loading branch information...
jamesrwhite committed May 26, 2018
1 parent 7d90925 commit 6b0a1330522a8aaabeb390d3530cab2fde5028b3
Showing with 7 additions and 7 deletions.
  1. +5 −5 server/lib/minicron/hub/controllers/hosts.rb
  2. +2 −2 server/lib/minicron/hub/controllers/jobs.rb
@@ -1,8 +1,8 @@
class Minicron::Hub::App
get '/hosts' do
@hosts = Minicron::Hub::Model::Host.belonging_to(current_user)
.all
.order(created_at: :desc)
.all
.order(created_at: :desc)

erb :'hosts/index', layout: :'layouts/app'
end
@@ -47,14 +47,14 @@ class Minicron::Hub::App

get '/host/:id/edit' do
@host = Minicron::Hub::Model::Host.belonging_to(current_user)
.find(params[:id])
.find(params[:id])

erb :'hosts/edit', layout: :'layouts/app'
end

post '/host/:id/edit' do
@host = Minicron::Hub::Model::Host.belonging_to(current_user)
.find(params[:id])
.find(params[:id])

begin
@host.name = params[:name]
@@ -71,7 +71,7 @@ class Minicron::Hub::App

get '/host/:id/delete' do
@host = Minicron::Hub::Model::Host.belonging_to(current_user)
.find(params[:id])
.find(params[:id])

erb :'hosts/delete', layout: :'layouts/app'
end
@@ -260,8 +260,8 @@ class Minicron::Hub::App
get '/job/:id/schedule/:schedule_id/delete' do
# Look up the schedule
@schedule = Minicron::Hub::Model::Schedule.belonging_to(current_user)
.includes(:job)
.find(params[:schedule_id])
.includes(:job)
.find(params[:schedule_id])

erb :'jobs/schedules/delete', layout: :'layouts/app'
end

0 comments on commit 6b0a133

Please sign in to comment.
You can’t perform that action at this time.