Color agenda/documents rows with position taken when viewing as an AD. Fixes bug #1679. Commit ready for merge.

- Legacy-Id: 9637
This commit is contained in:
Robert Sparks 2015-05-13 18:00:09 +00:00
parent 8887466231
commit edcaf46138
3 changed files with 16 additions and 2 deletions

View file

@ -1,8 +1,15 @@
{# Copyright The IETF Trust 2015, All Rights Reserved #}{% load origin %}{% origin %} {# Copyright The IETF Trust 2015, All Rights Reserved #}{% load origin %}{% origin %}
{% load widget_tweaks %} {% load widget_tweaks %}
{% load ietf_filters %} {% load ietf_filters %}
{% load ballot_icon %}
<tr> <tr {% spaceless %}
{% if color_row_positions %}
{% with doc|ballotposition:user as pos %}
{% if pos %}class="position-{{pos.slug}}-row"{% endif %}
{% endwith %}
{% endif %}
{% endspaceless %}>
<td> <td>
{% if user.is_authenticated %} {% if user.is_authenticated %}

View file

@ -60,7 +60,7 @@
</thead> </thead>
<tbody> <tbody>
{% for doc in section.docs %} {% for doc in section.docs %}
{% include "doc/search/search_result_row.html" %} {% include "doc/search/search_result_row.html" with color_row_positions=True %}
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>

View file

@ -125,6 +125,13 @@ label.required:after { content: "\2217"; color: #a94442; font-weight: bold; }
.position-abstain { background-color: #f69f74; } /* @brand-warning */ .position-abstain { background-color: #f69f74; } /* @brand-warning */
.position-recuse { background-color: #808080; } .position-recuse { background-color: #808080; }
.position-norecord { background-color: inherit; } .position-norecord { background-color: inherit; }
.position-discuss-row,
.position-block-row { background-color: #F1CBC8 !important ; } /* lighter variants of above */
.position-yes-row { background-color: #E1FDD6 !important ; }
.position-noobj-row { background-color: #F2FCEE !important ; }
.position-abstain-row { background-color: #FAD0BB !important ; }
.position-recuse-row { background-color: #D9D9D9 !important ; }
.position-norecord-row { background-color: inherit; }
.ballot-icon table td { border: 1px solid #ddd; height: 10px; width: 8px; } .ballot-icon table td { border: 1px solid #ddd; height: 10px; width: 8px; }
.ballot-icon table .my { border: 2px solid #000;} .ballot-icon table .my { border: 2px solid #000;}
.ballot-icon table { margin: 0 0 10px 10px; } .ballot-icon table { margin: 0 0 10px 10px; }