]> git.ipfire.org Git - people/jschlag/pbs.git/blob - src/templates/modules/changelog/entry.html
Drop dependency on textile
[people/jschlag/pbs.git] / src / templates / modules / changelog / entry.html
1 <li class="media">
2 <div class="media-body">
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 %}">
4 <h4>
5 <a class="{% if build.is_broken() %}line-through{% end %}" href="/build/{{ build.uuid }}">{{ build.name }}</a>
6
7 {% if build.type == "release" and build.repo %}
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>
20 {% elif build.type == "scratch" %}
21 <span class="label label-important pull-right">
22 {{ _("Scratch build") }}
23 </span>
24 {% end %}
25 </h4>
26
27 <hr>
28
29 {% if build.type == "release" %}
30 {% if build.commit %}
31 {% module CommitMessage(build.commit) %}
32
33 <hr>
34
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 %}
45
46 {% elif build.type == "scratch" %}
47 <p class="muted">
48 {{ _("Owner") }} {% module Maintainer(build.owner) %}
49
50 <span class="pull-right">{{ locale.format_date(build.created, shorter=True) }}</span>
51 </p>
52 {% end %}
53 </div>
54 </div>
55 </li>