Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
web view: Implement show page
Browse files Browse the repository at this point in the history
  • Loading branch information
apostergiou committed Apr 6, 2018
1 parent 5895f66 commit ff75cdc
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions templates/show.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Job Logs</title>
<link rel="stylesheet" href="css/foundation.min.css">
</head>

<body>
<div class="grid-container">
<div class="grid-x grid-padding-x">
<div class="large-12 cell">
<h1>Job {{.ID}} Logs</h1>
</div>
<div class="large-12 cell">
<div class="jumbotron">
<h4>{{.Output}}</h4>
</div>
</div>
<div class="large-12 cell">
<div class="jumbotron">
<div>{{.Log}}</div>
</div>
</div>
</div>
</div>

<script type="text/javascript">
const source = new EventSource('/j/{{.Project}}/{{.ID}}');
source.onmessage = function(e) {
document.body.innerHTML += e.data + '<br>';
};
</script>
</body>
</html>

0 comments on commit ff75cdc

Please sign in to comment.