Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Apr 2016 21:48:43 GMT
From:      kczekirda@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r301797 - soc2015/kczekirda/www/tpl
Message-ID:  <201604262148.u3QLmhH2009023@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604262148.u3QLmhH2009023>