{{ define "title" }}
dodo app: {{ .Name }}
{{ end }}
{{- define "content" -}}
<h3>Branch: {{- .Branch -}}</h3>
{{ .GitCloneCommand }}<br/>
<form action="/{{ .Name }}/dev-branch/create" method="POST">
	<fieldset class="grid">
		<input type="text" name="branch" placeholder="branch" />
		<button id="create-dev-branch-button" aria-busy="false" type="submit" name="create-dev-branch">create dev branch</button>
	</fieldset>
</form>
{{- if ne .Branch "master" -}}
<form action="/{{ .Name }}/branch/{{ .Branch }}/delete" method="POST" class="app-actions">
	<button aria-busy="false" type="submit" name="delete" class="secondary">delete branch</button>
</form>
{{- end -}}
<form action="/{{ .Name }}/delete" method="POST" class="app-actions">
	<button aria-busy="false" type="submit" name="delete" class="secondary">delete app</button>
</form>
<a href="/{{ .Name }}/logs">Logs</a>
<hr class="divider">
{{- template "resources" .LastCommit -}}
<hr class="divider">
<h3>Commit History</h3>
{{- range .Commits -}}
{{if eq .Status "OK" }}<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="black" d="M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59z"/></svg>{{ else }}<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 48 48"><path fill="black" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 11L11 6L24 19L37 6L42 11L29 24L42 37L37 42L24 29L11 42L6 37L19 24L6 11Z" clip-rule="evenodd"/></svg>{{ end }} <a href="/{{ $.Name }}/{{ .Hash }}">{{ .Hash }}</a> {{ .Message }}<br/>
{{- end -}}
<hr class="divider">
<h3>Branches</h3>
{{- range .Branches -}}
<a href="/{{ $.Name }}/branch/{{ . }}">{{ . }}</a><br/>
{{- end -}}
{{- end -}}
