summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Granberg <zorry@gentoo.org>2015-07-22 23:24:44 +0200
committerMagnus Granberg <zorry@gentoo.org>2015-07-22 23:24:44 +0200
commitf66e4386ffe1b5f48a8f7986d6cc4371d7862b85 (patch)
tree1abc8528969a5a57719656d1312743879c129d5e /python/templates
parentinclude all repos in packages (diff)
downloadtinderbox-cluster-www-f66e4386ffe1b5f48a8f7986d6cc4371d7862b85.tar.gz
tinderbox-cluster-www-f66e4386ffe1b5f48a8f7986d6cc4371d7862b85.tar.bz2
tinderbox-cluster-www-f66e4386ffe1b5f48a8f7986d6cc4371d7862b85.zip
add keywords to version view
Diffstat (limited to 'python/templates')
-rw-r--r--python/templates/pages/packages/ebuilds/index.html20
1 files changed, 16 insertions, 4 deletions
diff --git a/python/templates/pages/packages/ebuilds/index.html b/python/templates/pages/packages/ebuilds/index.html
index 73f45f2..1e034d4 100644
--- a/python/templates/pages/packages/ebuilds/index.html
+++ b/python/templates/pages/packages/ebuilds/index.html
@@ -1,14 +1,26 @@
{% extends "layout/base.html" %}
{% block content %}
<div class="row">
- <div class="col-xs-12 col-md-6">
- <h2>{{ P.CategoryId.Category }}/{{ P.Package }}</h2>
+ <div class="col-xs-12 col-md-9">
+ <h2>{{ P.PackageId.CategoryId.Category }}/{{ P.PackageId.Package }}</h2>
+ <p>Changlog</p>
+ <p>{{ P.Changlog|linebreaksbr }}</p>
<table class="table table-striped frontpage-table">
{% for E in EM_tmp %}
<tr>
<td class="frontpage-table-package-atom">
- <a href="/ebuild/{{ E.EbuildId.EbuildId }}/" title="{{ P.CategoryId.Category }}/{{ P.Package }}-{{ E.EbuildId.Version }}::{{ E.EbuildId.PackageId.RepoId.Repo }}">{{ P.Package }}-{{ E.EbuildId.Version }}::{{ E.EbuildId.PackageId.RepoId.Repo }}</a></td>
- <td><p></p></td>
+ <a href="/ebuild/{{ E.EbuildId.EbuildId }}/" title="{{ P.PackageId.CategoryId.Category }}/{{ P.PackageId.Package }}-{{ E.EbuildId.Version }}::{{ E.EbuildId.PackageId.RepoId.Repo }}">{{ P.PackageId.Package }}-{{ E.EbuildId.Version }}::{{ E.EbuildId.PackageId.RepoId.Repo }}</a></td>
+ <td>
+ <td class="text-right">
+ {% for K in EK_tmp %}
+ {% if K.EbuildId.EbuildId == E.EbuildId.EbuildId and K.KeywordId.Keyword != '*' %}
+ {% if K.Status == 'Stable' %}<span class="label label-success">{{ K.KeywordId.Keyword }}</span>{% endif %}
+ {% if K.Status == 'Unstable' %}<span class="label label-warning">{{ K.KeywordId.Keyword }}</span>{% endif %}
+ {% if K.Status == 'Negative' %}{{ K.KeywordId.Keyword }}{% endif %}
+ {% endif %}
+ {% endfor %}
+ </td>
+ </td>
</tr>
{% endfor %}
</table>