]> git.ipfire.org Git - people/jschlag/pbs.git/blame - src/templates/modules/changelog/entry.html
Use autotools
[people/jschlag/pbs.git] / src / templates / modules / changelog / entry.html
CommitLineData
4b1e87c4
MT
1<li class="media">
2 <div class="media-body">
e66bf18c 3 <div class="well {% if build.type == "release" and build.repo %}well-build-state-{{ build.repo.type }}{% elif build.type == "scratch" %}well-build-type-scratch{% end %}">
b9d096e0
MT
4 <h4>
5 <a class="{% if build.is_broken() %}line-through{% end %}" href="/build/{{ build.uuid }}">{{ build.name }}</a>
4b1e87c4 6
a15d6139 7 {% if build.type == "release" and build.repo %}
b9d096e0
MT
8 <small class="pull-right">
9 <a href="/distro/{{ build.repo.distro.identifier }}/repo/{{ build.repo.name }}">
10 {{ build.repo.distro.name }} &dash;
11 {% if build.repo.type == "stable" %}
12 <span class="text-success">{{ build.repo.name }}</span>
13 {% elif build.repo.type == "unstable" %}
14 <span class="text-warning">{{ build.repo.name }}</span>
15 {% elif build.repo.type == "testing" %}
16 <span class="text-error">{{ build.repo.name }}</span>
17 {% end %}
18 </a>
19 </small>
a15d6139
MT
20 {% elif build.type == "scratch" %}
21 <span class="label label-important pull-right">
22 {{ _("Scratch build") }}
23 </span>
4b1e87c4 24 {% end %}
b9d096e0
MT
25 </h4>
26
27 <hr>
28
a15d6139
MT
29 {% if build.type == "release" %}
30 {% if build.commit %}
31 {% module CommitMessage(build.commit) %}
b9d096e0 32
a15d6139 33 <hr>
4b1e87c4 34
a15d6139
MT
35 <p class="muted">
36 {{ _("Author") }} {% module Maintainer(build.commit.author) %}
37 <span class="pull-right">{{ locale.format_date(build.created, shorter=True) }}</span>
38 </p>
39 {% else %}
40 <p class="muted">
41 {{ _("No commit message.") }}
42 <span class="pull-right">{{ locale.format_date(build.created, shorter=True) }}</span>
43 </p>
44 {% end %}
4b1e87c4 45
a15d6139 46 {% elif build.type == "scratch" %}
b9d096e0 47 <p class="muted">
a15d6139
MT
48 {{ _("Owner") }} {% module Maintainer(build.owner) %}
49
b9d096e0
MT
50 <span class="pull-right">{{ locale.format_date(build.created, shorter=True) }}</span>
51 </p>
52 {% end %}
53 </div>
4b1e87c4
MT
54 </div>
55</li>