blob: 9240f952ca55674c732377c920cadb84221e2365 [file] [log] [blame]
<!--
Copyright 2020 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
-->
{{define "content"}}
<section class="Workflows">
<div class="Workflows-header">
<h2>Workflows</h2>
<a href="/workflows/new" class="Button">New</a>
</div>
<ul class="WorkflowList">
{{range $workflow := .Workflows}}
<li class="WorkflowList-item">
<h3>{{$workflow.Name}} - {{index $workflow.GitSource}}</h3>
<h4 class="WorkflowList-sectionTitle">Tasks</h4>
<ul class="TaskList">
{{range $task := $workflow.BuildableTasks}}
<li class="TaskList-item">
<span class="TaskList-itemTitle">{{$task.Name}}</span>
Status: {{$task.Status}}
ID: {{$task.Id}}
</li>
{{end}}
<li class="TaskList-item">
<span class="TaskList-itemTitle">Sample Task</span>
Status: created
</li>
</ul>
</li>
{{end}}
</ul>
</section>
{{end}}