]> iEval git - gruntmaster-page.git/blobdiff - tmpl/pb.en
From Redis to Postgres - Part 2 (Better routes)
[gruntmaster-page.git] / tmpl / pb.en
index 3a8194f6c0115b9bc46cc3d614a21bc22e6430d4..fcb23b07547986f459a0ad2b11c71394dc69d2f2 100644 (file)
@@ -1,26 +1,39 @@
-<tmpl_if levels>
+<tmpl_if beginner>
 <h2>Beginner</h2>
-<div class="list-group">
-<tmpl_loop beginner><a class="list-group-item" href="<tmpl_var id>"><tmpl_var name></a>
-</tmpl_loop></div>
+<table border class="table table-bordered table-striped table-fixed">
+<thead><tr><th>Name<th>Author<th>Owner
+<tbody>
+<tmpl_loop beginner><tr><td><a href="/pb/<tmpl_var id>"><tmpl_var name></a><td><tmpl_var author><td><a href="/us/<tmpl_var owner>"><tmpl_if owner_name><tmpl_var owner_name><tmpl_else><tmpl_var owner></tmpl_if></a>
+</tmpl_loop>
+</table>
+</tmpl_if>
 
+<tmpl_if easy>
 <h2>Easy</h2>
-<div class="list-group">
-<tmpl_loop easy><a class="list-group-item" href="<tmpl_var id>"><tmpl_var name></a>
-</tmpl_loop></div>
+<table border class="table table-bordered table-striped table-fixed">
+<thead><tr><th>Name<th>Author<th>Owner
+<tbody>
+<tmpl_loop easy><tr><td><a href="/pb/<tmpl_var id>"><tmpl_var name></a><td><tmpl_var author><td><a href="/us/<tmpl_var owner>"><tmpl_if owner_name><tmpl_var owner_name><tmpl_else><tmpl_var owner></tmpl_if></a>
+</tmpl_loop>
+</table>
+</tmpl_if>
 
+<tmpl_if medium>
 <h2>Medium</h2>
-<div class="list-group">
-<tmpl_loop medium><a class="list-group-item" href="<tmpl_var id>"><tmpl_var name></a>
-</tmpl_loop></div>
+<table border class="table table-bordered table-striped table-fixed">
+<thead><tr><th>Name<th>Author<th>Owner
+<tbody>
+<tmpl_loop medium><tr><td><a href="/pb/<tmpl_var id>"><tmpl_var name></a><td><tmpl_var author><td><a href="/us/<tmpl_var owner>"><tmpl_if owner_name><tmpl_var owner_name><tmpl_else><tmpl_var owner></tmpl_if></a>
+</tmpl_loop>
+</table>
+</tmpl_if>
 
+<tmpl_if hard>
 <h2>Hard</h2>
-<div class="list-group">
-<tmpl_loop hard><a class="list-group-item" href="<tmpl_var id>"><tmpl_var name></a>
-</tmpl_loop></div>
-
-<tmpl_else>
-<div class="list-group">
-<tmpl_loop problems><a class="list-group-item" href="<tmpl_var id>"><tmpl_var name></a>
-</tmpl_loop></div>
+<table border class="table table-bordered table-striped table-fixed">
+<thead><tr><th>Name<th>Author<th>Owner
+<tbody>
+<tmpl_loop hard><tr><td><a href="/pb/<tmpl_var id>"><tmpl_var name></a><td><tmpl_var author><td><a href="/us/<tmpl_var owner>"><tmpl_if owner_name><tmpl_var owner_name><tmpl_else><tmpl_var owner></tmpl_if></a>
+</tmpl_loop>
+</table>
 </tmpl_if>
This page took 0.025881 seconds and 4 git commands to generate.