summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2015-01-26 18:04:29 -0600
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:51 +1200
commit0b6ff699b51945a888c1a858560842e8ea0ba002 (patch)
treed10a410d67ca1fa1a385dc0267d3b9d9f31d0d36 /templates
parent4e00337d93827e351dd12d963e6c88e360ecfc2e (diff)
downloadopenembedded-core-contrib-0b6ff699b51945a888c1a858560842e8ea0ba002.tar.gz
rrs: Recipes page improve table display
Improve CSS in order to handle column width better also use styles to display upstream status column. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/rrs/recipes.html24
1 files changed, 16 insertions, 8 deletions
diff --git a/templates/rrs/recipes.html b/templates/rrs/recipes.html
index a236ba149a..c935249966 100644
--- a/templates/rrs/recipes.html
+++ b/templates/rrs/recipes.html
@@ -79,21 +79,29 @@
<tr>
<th class="recipe_column">Recipe</th>
<th class="version_column muted">Version</th>
- <th class="upstream_status_column"><b class="caret"></b>Upstream status</th>
+ <th class="upstream_status_column"><b>Upstream status</b></th>
<th class="upstream_version_column muted">Upstream version</th>
- <th class="maintainer_column"><b class="caret"></b>Maintainer</th>
+ <th class="maintainer_column"><b>Maintainer</b></th>
<th class="summary_column muted span5">Summary</th>
</tr>
</thead>
<tbody>
{% for r in recipe_list %}
<tr>
- <td><a href="{% url "recipedetail" r.pk %}">{{ r.name }}</a></td>
- <td>{{ r.version }}</td>
- <td>{{ r.upstream_status }}</td>
- <td>{{ r.upstream_version }}</td>
- <td>{{ r.maintainer_name }}</td>
- <td>{{ r.summary }}</td>
+ <td class="recipe_column"><a href="{% url "recipedetail" r.pk %}">{{ r.name }}</a></td>
+ <td class="version_column">{{ r.version }}</td>
+ {% if r.upstream_status == "Up-to-date" %}
+ <td class="text-success">
+ {% elif r.upstream_status == "Not updated" %}
+ <td class="text-error">
+ {% else %}
+ <td class="text-warning">
+ {% endif %}
+ {{ r.upstream_status }}
+ </td>
+ <td class="upstream_version_column">{{ r.upstream_version }}</td>
+ <td class="maintainer_column">{{ r.maintainer_name }}</td>
+ <td class="summary_column">{{ r.summary }}</td>
</tr>
{% endfor %}
</tbody>