Refactor web build process and update documentation
- Removed Node.js build artifacts from .gitignore and adjusted Makefile to reflect changes in web UI build process, now using server-rendered Go templates instead of React. - Updated README to clarify the new web UI architecture and output formats, emphasizing the removal of the Node.js build step. - Added a command to set the number of frames per render task in manager configuration, enhancing user control over rendering settings. - Improved Gitea workflow by removing unnecessary npm install step, streamlining the CI process.
This commit is contained in:
37
web/templates/partials/job_tasks.html
Normal file
37
web/templates/partials/job_tasks.html
Normal file
@@ -0,0 +1,37 @@
|
||||
{{ define "partial_job_tasks" }}
|
||||
{{ $tasks := index . "tasks" }}
|
||||
{{ if not $tasks }}
|
||||
<p>No tasks yet.</p>
|
||||
{{ else }}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Type</th>
|
||||
<th>Status</th>
|
||||
<th>Frame(s)</th>
|
||||
<th>Step</th>
|
||||
<th>Retries</th>
|
||||
<th>Error</th>
|
||||
<th>Logs</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ range $task := $tasks }}
|
||||
<tr>
|
||||
<td>{{ $task.ID }}</td>
|
||||
<td>{{ $task.TaskType }}</td>
|
||||
<td><span class="status {{ statusClass $task.Status }}">{{ $task.Status }}</span></td>
|
||||
<td>{{ $task.Frame }}{{ if $task.FrameEnd }}-{{ derefInt $task.FrameEnd }}{{ end }}</td>
|
||||
<td>{{ if $task.CurrentStep }}{{ $task.CurrentStep }}{{ else }}-{{ end }}</td>
|
||||
<td>{{ $task.RetryCount }}</td>
|
||||
<td>{{ if $task.Error }}{{ $task.Error }}{{ else }}-{{ end }}</td>
|
||||
<td>
|
||||
<button class="btn tiny" data-view-logs-task-id="{{ $task.ID }}">View logs</button>
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user