mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-24 01:38:37 +02:00
Add background for web
This commit is contained in:
@@ -3,9 +3,6 @@ require 'sinatra/base'
|
|||||||
|
|
||||||
module Crono
|
module Crono
|
||||||
class Web < Sinatra::Base
|
class Web < Sinatra::Base
|
||||||
def app
|
|
||||||
Sinatra::Application
|
|
||||||
end
|
|
||||||
set :root, File.expand_path(File.dirname(__FILE__) + "/../../web")
|
set :root, File.expand_path(File.dirname(__FILE__) + "/../../web")
|
||||||
set :public_folder, Proc.new { "#{root}/assets" }
|
set :public_folder, Proc.new { "#{root}/assets" }
|
||||||
set :views, Proc.new { "#{root}/views" }
|
set :views, Proc.new { "#{root}/views" }
|
||||||
|
|||||||
20
web/assets/custom.css
Normal file
20
web/assets/custom.css
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
.container {
|
||||||
|
background-color: #CFD8DC;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #455A64;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-header {
|
||||||
|
border-bottom: 1px solid #B6B6B6;
|
||||||
|
}
|
||||||
|
|
||||||
|
#job_list td,#job_list th {
|
||||||
|
border-top: 1px solid #B6B6B6;
|
||||||
|
color: #212121;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb {
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
}
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
.page-header
|
%ol.breadcrumb
|
||||||
%h1 Crono Dashboard
|
%li.active Home
|
||||||
|
|
||||||
%h3 Running Jobs
|
%h3 Running Jobs
|
||||||
%table.table
|
%table.table#job_list
|
||||||
%tr
|
%tr
|
||||||
%th Job
|
%th Job
|
||||||
%th Last performed at
|
%th Last performed at
|
||||||
@@ -9,6 +10,8 @@
|
|||||||
- for job in @jobs
|
- for job in @jobs
|
||||||
%tr
|
%tr
|
||||||
%td= job.job_id
|
%td= job.job_id
|
||||||
%td= job.last_performed_at
|
%td= job.last_performed_at || "—"
|
||||||
%td
|
%td
|
||||||
%a{href: url("/jobs/#{job.id}")} Log
|
%a{href: url("/jobs/#{job.id}")}
|
||||||
|
Log
|
||||||
|
%span.glyphicon.glyphicon-menu-right
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
%li
|
%li
|
||||||
%a{href: url("/")} Home
|
%a{href: url("/")} Home
|
||||||
%li.active= @job.job_id
|
%li.active= @job.job_id
|
||||||
|
|
||||||
%h2
|
%h2
|
||||||
"#{@job.job_id}" Log:
|
"#{@job.job_id}" Log:
|
||||||
%pre= @job.log
|
%pre= @job.log
|
||||||
|
|||||||
@@ -7,11 +7,18 @@
|
|||||||
|
|
||||||
%title Crono Dashboard
|
%title Crono Dashboard
|
||||||
|
|
||||||
%link{href: "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css", rel: "stylesheet"}/
|
%link{href: "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css", rel: "stylesheet"}
|
||||||
%link{href: "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css", rel: "stylesheet"}/
|
%link{href: "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css", rel: "stylesheet"}
|
||||||
|
%link{href: "#{env['SCRIPT_NAME']}/custom.css", rel: "stylesheet"}
|
||||||
|
|
||||||
%body
|
%body
|
||||||
|
%br
|
||||||
|
%br
|
||||||
.container
|
.container
|
||||||
|
.page-header
|
||||||
|
%h1
|
||||||
|
Crono #{Crono::VERSION}
|
||||||
|
%small Dashboard
|
||||||
= yield
|
= yield
|
||||||
|
|
||||||
%script{src: "https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"}
|
%script{src: "https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"}
|
||||||
|
|||||||
Reference in New Issue
Block a user