<div class="card">
    <div class="card-title">Jobs List</div>
    
    {{if len(error) > 0}}
    <div class="alert alert-error">
        {{error}}
    </div>
    {{end}}
    
    <div class="card-content">
        <table class="table">
            <thead>
                <tr>
                    <th>Job ID</th>
                    <th>Circle ID</th>
                    <th>Topic</th>
                    <th>Status</th>
                    <th>Actions</th>
                </tr>
            </thead>
            <tbody>
                {{if len(jobs) == 0}}
                <tr>
                    <td colspan="5" class="text-center">No jobs found</td>
                </tr>
                {{else}}
                {{range job := jobs}}
                <tr>
                    <td>{{job.JobID}}</td>
                    <td>{{job.CircleID}}</td>
                    <td>{{job.Topic}}</td>
                    <td>
                        <span class="status-badge status-{{job.Status}}">{{job.Status}}</span>
                    </td>
                    <td>
                        <a href="/admin/jobs/get/{{job.JobID}}" class="button button-small" up-target=".main-content">View</a>
                    </td>
                </tr>
                {{end}}
                {{end}}
            </tbody>
        </table>
    </div>
</div>
