add most tables

This commit is contained in:
Lunny Xiao
2022-05-05 00:39:20 +08:00
committed by Jason Song
parent 5a479bb034
commit 2c4f6fd42f
25 changed files with 598 additions and 1466 deletions

View File

@ -1,5 +1,5 @@
<div class="issue list">
{{range .Tasks}}
{{range .Builds}}
<li class="item df py-3">
<div class="issue-item-left df">
{{if $.CanWriteIssuesOrPulls}}
@ -8,20 +8,7 @@
<label></label>
</div>
{{end}}
<div class="issue-item-icon">
{{if .IsPending}}
<i class="commit-status circle icon gray"></i>
{{end}}
{{if .IsRunning}}
<i class="commit-status circle icon yellow"></i>
{{end}}
{{if .IsSuccess}}
<i class="commit-status check icon green"></i>
{{end}}
{{if .IsFailed}}
<i class="commit-status warning icon red"></i>
{{end}}
</div>
{{template "repo/builds/status" .Status}}
</div>
<div class="issue-item-main f1 fc df">
<div class="desc issue-item-bottom-row df ac fw my-1">

View File

@ -0,0 +1,14 @@
<div class="issue-item-icon">
{{if .IsPending}}
<i class="commit-status circle icon gray"></i>
{{end}}
{{if .IsRunning}}
<i class="commit-status circle icon yellow"></i>
{{end}}
{{if .IsSuccess}}
<i class="commit-status check icon green"></i>
{{end}}
{{if .IsFailed}}
<i class="commit-status warning icon red"></i>
{{end}}
</div>

View File

@ -10,6 +10,7 @@
</h1>
</div>
</div>
{{template "repo/builds/view_left" .}}
{{template "repo/builds/view_content" .}}
</div>
</div>

View File

@ -1,8 +1,19 @@
<div class="ui stackable grid">
{{if .Flash}}
<div class="sixteen wide column">
{{template "base/alert" .}}
</div>
{{end}}
<div class="ui stackable grid" id="build_log">
<div class="console_wrapper__3ow2p" style="height: 206px;">
<header class="console_header__4K9_D">
<div class="console_header-inner__29khj">
<div class="console_info__1NL_l">
<h3>Console Logs</h3>
</div>
<div class="console_controls__QeCq_">
<button class="button button_theme-plain__2mkOw button_plain__1LweR size-md" type="button">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-download"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg></button></div></div></header><pre class="console_terminal__3DK3w"><code class="ansi-hook console_output__2qZpe">
<div class="console_line__1ir27"><span class="console_line-number__3zolU">1</span><span class="loc-html console_line-content__3xTWR">Initialized empty Git repository in /drone/src/.git/
</span><span class="console_line-time__oQvWj">0s</span></div><div class="console_line__1ir27"><span class="console_line-number__3zolU">2</span><span class="loc-html console_line-content__3xTWR">+ git fetch origin +refs/heads/main:
</span><span class="console_line-time__oQvWj">0s</span></div><div class="console_line__1ir27"><span class="console_line-number__3zolU">3</span><span class="loc-html console_line-content__3xTWR">From https://github.com/go-gitea/gitea
</span><span class="console_line-time__oQvWj">20s</span></div><div class="console_line__1ir27"><span class="console_line-number__3zolU">4</span><span class="loc-html console_line-content__3xTWR"> * branch main -&gt; FETCH_HEAD
</span><span class="console_line-time__oQvWj">20s</span></div><div class="console_line__1ir27"><span class="console_line-number__3zolU">5</span><span class="loc-html console_line-content__3xTWR"> * [new branch] main -&gt; origin/main
</span><span class="console_line-time__oQvWj">20s</span></div><div class="console_line__1ir27"><span class="console_line-number__3zolU">6</span><span class="loc-html console_line-content__3xTWR">+ git checkout c8ec2261a99590f15699e9147a28e4b61c1c2ea5 -b main
</span><span class="console_line-time__oQvWj">20s</span></div><div class="console_line__1ir27"><span class="console_line-number__3zolU">7</span><span class="loc-html console_line-content__3xTWR">Switched to a new branch 'main'
</span><span class="console_line-time__oQvWj">20s</span></div><div></div></code></pre><footer class="console_footer__3xmc8"><div class="console_summary__1762k"><div class="console_summary-info__3mKSP"><div class="status_status__1f9yu status_status-success__2WE4F console_summary-status__2Vetb" title="Status: success"><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="none" d="M0 0h20v20H0z"></path><path d="M14.577 6.23a.887.887 0 0 1 1.17-.019.704.704 0 0 1 .021 1.063l-6.844 6.439-.025.023a1.11 1.11 0 0 1-1.463-.023l-3.204-3.015a.704.704 0 0 1 .021-1.063.887.887 0 0 1 1.17.019l2.757 2.594 6.397-6.018z" fill="currentColor" fill-rule="nonzero"></path></svg></div>Exit Code 0</div><div class="console_summary-controls__Siy-a"></div></div></footer></div>
</div>

View File

@ -0,0 +1,18 @@
<div class="ui dividing left rail">
<div class="ui sticky fixed top" style="width: 283px !important; height: 1002.03px !important; margin-top: 30px; left: 1101px; top: 0px;">
<h4 class="ui header">Menu</h4>
<div class="ui vertical following fluid accordion text menu">
{{range $file, $jobs := .WorkflowsStatuses}}
<div class="item">
<a class="active title"><i class="dropdown icon"></i> <b>{{ $file }}</b></a>
<div class="active content menu">
{{range $jobname, $job := $jobs}}
{{template "repo/builds/status" $job.Status}}
<a class="item" href="#{{$file}}__{{$jobname}}">{{ $jobname }}</a>
{{end}}
</div>
</div>
{{end}}
</div>
</div>
</div>