Debian Codegraph @

src/webdash/templates/default/osimages/index.html

raw
1 {% extends 'layouts/base.html' %}
2
3 {% set active_menu = 'osimages' %}
4 {% set page_title = 'OS Image Recipes' %}
5
6 {% block body_header %}
7 <h1 class="title mb-4">OS Image Recipes</h1>
8 {% endblock %}
9
10 {% block body %}
11 <div class="columns is-multiline is-mobile">
12 <div class="column is-8">
13
14 {% for recipe in recipes %}
15 <nav class="panel">
16 <p class="panel-heading">
17 <i class="fas {{ 'fa-compact-disc' if recipe.format == ImageFormat.ISO else 'fa-sd-card' }}"></i>
18 &nbsp;{{recipe.distribution}} {{recipe.suite}} {{recipe.environment}} ({{recipe.style}})
19 </p>
20 <div class="panel-block">
21 <p>
22 <b>ID:</b> {{recipe.name}}<br/>
23 <b>Architectures:</b> {{' ,'.join(recipe.architectures)}}<br/>
24 <b>Host Architecture:</b> {{recipe.host_architecture}}<br/>
25 <b>Source:</b> {{recipe.git_url}}<br/>
26 </p>
27 </div>
28
29 {% for job in last_jobs_for_recipe(session, recipe) %}
30 {% if job.result == JobResult.SUCCESS %}
31 {% set item_style = 'has-background-success-light' %}
32 {% elif job.result == JobResult.FAILURE %}
33 {% set item_style = 'has-background-danger-light' %}
34 {% endif %}
35 <a class="panel-block {{item_style}}" href="{{ url_for('jobs.job', uuid=job.uuid) }}">
36 [{{job.architecture}}] - {{humanized_timediff(job.time_created)}}
37 </a>
38 {% endfor %}
39 </nav>
40 {% endfor %}
41
42 </div>
43 </div>
44 {% endblock %}