Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Video AG Infrastruktur
website
Merge requests
!14
Jobmanagement
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Merged
Jobmanagement
jobmanagement
into
master
Overview
0
Commits
7
Pipelines
0
Changes
4
Merged
Andreas Valder
requested to merge
jobmanagement
into
master
7 years ago
Overview
0
Commits
7
Pipelines
0
Changes
4
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
d0afba04
7 commits,
7 years ago
4 files
+
93
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
templates/jobs_overview.html
+
69
−
3
Options
{% extends "base.html" %}
{% block modals %}
{{ super() }}
<div
class=
"modal fade"
id=
"modal_addjob"
role=
"dialog"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
>
×
</button>
Neue(n) Job(s) erzeugen
</div>
<div
class=
"modal-body"
>
<ul
class=
"nav nav-tabs"
role=
"tablist"
>
<li
role=
"presentation"
class=
"active"
><a
href=
"#add_thtumbnail"
aria-controls=
"thumbnail"
role=
"tab"
data-toggle=
"tab"
>
Thumbnaile
</a></li>
</ul>
<div
class=
"tab-content"
style=
"margin-top: 10px;"
>
<div
role=
"tabpanel"
class=
"tab-pane active"
id=
"add_thumbnail"
>
<form
class=
"form-inline"
action=
"{{url_for('jobs_action', action='add', ref=request.url)}}"
method=
"post"
>
<div
class=
"form-group"
>
<input
type=
"hidden"
name=
"type"
value=
"thumbnail"
>
<input
type=
"text"
class=
"form-control"
id=
"thumbnail_lectureid"
placeholder=
"Lecture ID"
name=
"lecture_id"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
Hinzufügen
</button>
</div>
</form>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
</div>
</div>
</div>
</div>
{% endblock %}
{% block content %}
<div
class=
"panel-group"
>
<div
class=
"panel panel-default"
>
@@ -34,9 +69,12 @@
</div>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h1
class=
"panel-title"
>
Jobs
</h1>
<h1
class=
"panel-title"
>
Jobs
<a
class=
"btn btn-default"
href=
"javascript:$('#modal_addjob').modal()"
>
Job(s) erzeugen
</a>
<a
class=
"btn btn-default"
href=
"{{url_for('jobs_action', action='clear_failed', ref=request.url)}}"
>
Alle fehlgeschlagenen Jobs löschen
</a>
<a
class=
"btn btn-default"
href=
"{{url_for('jobs_action', action='retry_failed', ref=request.url)}}"
>
Alle fehlgeschlagenen Jobs neustarten
</a>
</h1>
</div>
<div
class=
"panel-collapse collapse in"
>
<div
class=
"panel-body"
>
@@ -109,6 +147,7 @@
<th>
Gescheduled am
</th>
<th>
Daten
</th>
<th>
Status
</th>
<th></th>
</tr>
{% for i in jobs %}
{% if i.last_ping %}
@@ -137,6 +176,33 @@
<td>
{{i.time_scheduled}}
</td>
<td>
{{i.data}}
</td>
<td>
{{i.status}}
</td>
<td>
<ul
class=
"list-inline"
style=
"white-space: nowrap;"
>
{% if i.state == "failed" %}
<li>
<a
class=
"btn btn-default"
href=
"{{url_for('jobs_action', action='clear_failed', jobid=i.id, ref=request.url)}}"
title=
"Löschen"
style=
"background-color: red;"
>
<span
class=
"glyphicon glyphicon-trash"
aria-hidden=
"true"
></span>
</a>
</li>
<li>
<a
class=
"btn btn-default"
href=
"{{url_for('jobs_action', action='retry_failed', jobid=i.id, ref=request.url)}}"
title=
"Neustarten"
>
<span
class=
"fa fa-refresh"
aria-hidden=
"true"
></span>
</a>
</li>
{% else %}
<li>
<a
class=
"btn btn-default"
href=
"{{url_for('jobs_action', action='delete', jobid=i.id, ref=request.url)}}"
title=
"Löschen"
style=
"background-color: red;"
>
<span
class=
"glyphicon glyphicon-trash"
aria-hidden=
"true"
></span>
</a>
</li>
<li>
<a
class=
"btn btn-default"
href=
"{{url_for('jobs_action', action='copy', jobid=i.id, ref=request.url)}}"
title=
"Kopie neu einreihen"
>
<span
class=
"fa fa-refresh"
aria-hidden=
"true"
></span>
</a>
</li>
{% endif %}
</ul>
</td>
</tr>
{% endfor %}
</table>
Loading