socsvn commit: r301797 - soc2015/kczekirda/www/tpl
kczekirda at FreeBSD.org
kczekirda at FreeBSD.org
Tue Apr 26 21:48:44 UTC 2016
Author: kczekirda
Date: Tue Apr 26 21:48:42 2016
New Revision: 301797
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=301797
Log:
add some colors
Modified:
soc2015/kczekirda/www/tpl/main.tpl
Modified: soc2015/kczekirda/www/tpl/main.tpl
==============================================================================
--- soc2015/kczekirda/www/tpl/main.tpl Tue Apr 26 20:59:21 2016 (r301796)
+++ soc2015/kczekirda/www/tpl/main.tpl Tue Apr 26 21:48:42 2016 (r301797)
@@ -56,7 +56,7 @@
<div class="container theme-showcase" role="main">
<div class="page-header">
- <table class="table table-striped">
+ <table class="table table-condensed">
<tr><h2>Tasks</h2></tr>
<tr><th>ID</th><th>revision</th><th>host</th><th>status</th> <th> </th></tr>
%for row in reversed(rows_tasks):
@@ -64,11 +64,11 @@
%revision = row[1]
%host = row[2]
%status = row[3]
- <tr>
+ <tr {{!'class="danger"' if 'failed' in row[3] else ""}} {{!'class="success"' if 'finish' in row[3] else ""}} {{!'class="info"' if 'build' in row[3] else ""}}>
<td>{{id}}</td>
<td>{{revision}}</td>
<td>{{host}}</td>
- <td>{{status}}</td>
+ <td>{{status}} <span {{!'class="glyphicon glyphicon-remove' if 'failed' in row[3] else ""}} {{!'class="glyphicon glyphicon-refresh' if 'build' in row[3] else ""}} {{!'class="glyphicon glyphicon-ok' if 'finish' in row[3] else ""}}" aria-hidden="true"></span></td>
<td><a class="btn btn-sm btn-danger" href="/admin/delete_task/{{id}}">Delete</a></td>
</tr>
%end
More information about the svn-soc-all
mailing list