f305fba940c0

Add a blue border on draft rev in the index
[view raw] [browse files]
author Christophe de Vienne <cdevienne@gmail.com>
date Tue, 28 Oct 2014 11:16:39 +0100
parents 0dc141617716
children 354188b0eca0
branches/tags (none)
files review/static/styles/style.less review/templates/index.html

Changes

--- a/review/static/styles/style.less	Tue Oct 28 00:28:05 2014 +0100
+++ b/review/static/styles/style.less	Tue Oct 28 11:16:39 2014 +0100
@@ -251,6 +251,12 @@
                 background-color: lighten(@c-cream, 8%);
             }
 
+            &.draft {
+                .rev {
+                    border: 1px solid blue;
+                }
+            }
+
             td {
                 border: none;
                 line-height: 26px;
--- a/review/templates/index.html	Tue Oct 28 00:28:05 2014 +0100
+++ b/review/templates/index.html	Tue Oct 28 11:16:39 2014 +0100
@@ -8,10 +8,11 @@
     <table>
         {% for rcset in rcsets %}
             {% set rev = rcset.target[rcset.node] %}
+            {% set phase = rev.phasestr() %}
             {% set node_short = utils['node_short'](rev.node()) %}
             {% set link = "/changeset/" + node_short + "/" %}
 
-            <tr>
+            <tr class="{{ phase }}">
                 <td class="node"><span class="rev">{{ rev.rev() }}</span><span class="sep">:</span><span class="hash">{{ node_short }}</span></td>
                 <td class="desc">
                     <a class="changeset-link" href="{{ link }}">{{  rev.description().splitlines()[0] }}</a>