diff options
author | 2018-04-14 20:51:58 +0200 | |
---|---|---|
committer | 2018-04-14 23:04:08 +0200 | |
commit | a5b5890de8757931f645cfcf8c48d3d71d3e817b (patch) | |
tree | affe9a2c163f7f25999bc61a9342d08ac878256e /inside-gentoo | |
parent | developers: Note repo/gentoo.git commit access (diff) | |
download | www-a5b5890de8757931f645cfcf8c48d3d71d3e817b.tar.gz www-a5b5890de8757931f645cfcf8c48d3d71d3e817b.tar.bz2 www-a5b5890de8757931f645cfcf8c48d3d71d3e817b.zip |
unavailable-developers: Use bg colors to indicate length of away
Use background colors to indicate how long the developer is away.
Diffstat (limited to 'inside-gentoo')
-rw-r--r-- | inside-gentoo/developers/unavailable-developers.html | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/inside-gentoo/developers/unavailable-developers.html b/inside-gentoo/developers/unavailable-developers.html index 164268a..e03a186 100644 --- a/inside-gentoo/developers/unavailable-developers.html +++ b/inside-gentoo/developers/unavailable-developers.html @@ -18,15 +18,32 @@ layout: page-nav3 Data updated at {{ 'now' | date: "%c" }}. </p> -<table class="table table-striped"> +<p> + Colors indicate how long since the devaway was set: + <span class="bg-success">up to 14 days</span>; + <span class="bg-info">up to 2 months</span>; + <span class="bg-warning">up to 6 months</span>; + <span class="bg-danger">more than 6 months</span>. +</p> + +<table class="table"> <tr> <th>Developer</th> <th>Message and timestamp</th> </tr> {% for entry in site.data.devaway %} - <tr> + <tr class=" + {% if entry[1].away_days < 14 %} + bg-success + {% elsif entry[1].away_days < 60 %} + bg-info + {% elsif entry[1].away_days < 180 %} + bg-warning + {% else %} + bg-danger + {% endif %}"> <th id="{{ entry[0] | strip_html }}">{{ entry[0] | strip_html }}</th> - <td>{{ entry[1] | strip_html }}</td> + <td>{{ entry[1].reason | strip_html }}</td> </tr> {% endfor %} </table> |