mirror of
https://github.com/plashchynski/crono.git
synced 2026-07-09 22:32:41 +02:00
Add layout for the web dashboard
This commit is contained in:
+14
-29
@@ -1,29 +1,14 @@
|
|||||||
!!! 5
|
.page-header
|
||||||
%html{lang: "en"}
|
%h1 Crono Dashboard
|
||||||
%head
|
%h3 Running Jobs
|
||||||
%meta{charset: "utf-8"}
|
%table.table
|
||||||
%meta{"http-equiv" => "X-UA-Compatible", content: "IE=edge"}
|
%tr
|
||||||
%meta{name: "viewport", content: "width=device-width, initial-scale=1"}
|
%th Job
|
||||||
|
%th Last performed at
|
||||||
%title Crono Dashboard
|
%th
|
||||||
|
- for job in @jobs
|
||||||
%link{href: "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css", rel: "stylesheet"}/
|
%tr
|
||||||
%link{href: "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css", rel: "stylesheet"}/
|
%td= job.job_id
|
||||||
|
%td= job.last_performed_at
|
||||||
%body
|
%td
|
||||||
.container
|
%a{href: url("/jobs/#{job.id}")} Log
|
||||||
%h2 Crono Jobs
|
|
||||||
%table.table
|
|
||||||
%tr
|
|
||||||
%th Job
|
|
||||||
%th Last performed at
|
|
||||||
%th
|
|
||||||
- for job in @jobs
|
|
||||||
%tr
|
|
||||||
%td= job.job_id
|
|
||||||
%td= job.last_performed_at
|
|
||||||
%td
|
|
||||||
%a{href: url("/jobs/#{job.id}")} Log
|
|
||||||
|
|
||||||
%script{src: "https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"}
|
|
||||||
%script{src: "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"}
|
|
||||||
|
|||||||
+7
-24
@@ -1,24 +1,7 @@
|
|||||||
!!! 5
|
%ol.breadcrumb
|
||||||
%html{lang: "en"}
|
%li
|
||||||
%head
|
%a{href: url("/")} Home
|
||||||
%meta{charset: "utf-8"}
|
%li.active= @job.job_id
|
||||||
%meta{"http-equiv" => "X-UA-Compatible", content: "IE=edge"}
|
%h2
|
||||||
%meta{name: "viewport", content: "width=device-width, initial-scale=1"}
|
"#{@job.job_id}" Log:
|
||||||
|
%pre= @job.log
|
||||||
%title Crono Job #{@job.job_id}
|
|
||||||
|
|
||||||
%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"}/
|
|
||||||
|
|
||||||
%body
|
|
||||||
.container
|
|
||||||
%ol.breadcrumb
|
|
||||||
%li
|
|
||||||
%a{href: url("/")} Home
|
|
||||||
%li.active= @job.job_id
|
|
||||||
%h2
|
|
||||||
"#{@job.job_id}" Log:
|
|
||||||
%pre= @job.log
|
|
||||||
|
|
||||||
%script{src: "https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"}
|
|
||||||
%script{src: "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"}
|
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
!!! 5
|
||||||
|
%html{lang: "en"}
|
||||||
|
%head
|
||||||
|
%meta{charset: "utf-8"}
|
||||||
|
%meta{"http-equiv" => "X-UA-Compatible", content: "IE=edge"}
|
||||||
|
%meta{name: "viewport", content: "width=device-width, initial-scale=1"}
|
||||||
|
|
||||||
|
%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-theme.min.css", rel: "stylesheet"}/
|
||||||
|
|
||||||
|
%body
|
||||||
|
.container
|
||||||
|
= yield
|
||||||
|
|
||||||
|
%script{src: "https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"}
|
||||||
|
%script{src: "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"}
|
||||||
Reference in New Issue
Block a user