mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-28 22:28:25 +00:00
* set version in one place * rename ExecutionContext to CommandContext * delete unneeded PullRequestContext since it just duplicated what is in CommandContext * split fields inside CommandContext into Repo, PullRequest, and User models * clean up unused fields * remove base_executor stuff which was trying to do inheritance in go and didn't get us anywhere * clean up unused code and assets * created a locking.Client that creates the Keys that are used on the front-end. This allows the backends to store the locks any way they like as long as they support the interface
52 lines
1.7 KiB
Go
52 lines
1.7 KiB
Go
package server
|
|
|
|
import (
|
|
"html/template"
|
|
)
|
|
|
|
var indexTemplate = template.Must(template.New("index.html.tmpl").Parse(`
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>atlantis</title>
|
|
<meta name="description" content="">
|
|
<meta name="author" content="">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="/static/css/normalize.css">
|
|
<link rel="stylesheet" href="/static/css/skeleton.css">
|
|
<link rel="stylesheet" href="/static/css/custom.css">
|
|
<link rel="icon" type="image/png" href="/static/images/atlantis-icon.png">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<section class="header">
|
|
<a title="atlantis" href="/"><img src="/static/images/atlantis-icon.png"/></a>
|
|
<p style="font-family: monospace, monospace; font-size: 1.1em; text-align: center;">atlantis</p>
|
|
</section>
|
|
<nav class="navbar">
|
|
<div class="container">
|
|
</div>
|
|
</nav>
|
|
<div class="navbar-spacer"></div>
|
|
<br>
|
|
<section>
|
|
<p style="font-family: monospace, monospace; font-size: 1.0em; text-align: center;"><strong>Environments</strong></p>
|
|
{{ if . }}
|
|
{{ range . }}
|
|
<div class="twelve columns button content lock-row">
|
|
<div class="list-title">{{.RepoFullName}} - <span class="heading-font-size">#{{.PullNum}}</span></div>
|
|
<div class="list-unlock"><button class="unlock"><a class="unlock-link" href="{{.UnlockURL}}">Unlock</a></button></div>
|
|
<div class="list-status"><code>Locked</code></div>
|
|
<div class="list-timestamp"><span class="heading-font-size">{{.Time}}</span></div>
|
|
</div>
|
|
{{ end }}
|
|
{{ else }}
|
|
<p class="placeholder">No environments found.</p>
|
|
{{ end }}
|
|
</section>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
`))
|