# HG changeset patch # User Christophe de Vienne # Date 1414452485 -3600 # Node ID 0dc141617716dd39c1a99378f344082bec97e9b1 # Parent 9ee9ef21460ca6bdc203ab2e87e5ab5fec5e8c3b Display obsolete comments/signoff with lower opacity. Add a obsolete class on comments and signoff messages, which sets the opacity to 0.6 diff -r 9ee9ef21460c -r 0dc141617716 review/static/styles/style.less --- a/review/static/styles/style.less Mon Oct 27 22:40:30 2014 +0100 +++ b/review/static/styles/style.less Tue Oct 28 00:28:05 2014 +0100 @@ -451,6 +451,10 @@ border-bottom: 1px solid #ddd; position: relative; min-height: 41px; + + &.obsolete { + opacity: 0.6; + } &:first-child { border-top: none; @@ -630,6 +634,10 @@ border-top: 1px solid #ddd; background-color: #f4f4f4; + &.obsolete { + opacity: 0.6; + } + .avatar { float: right; margin-top: 2px; diff -r 9ee9ef21460c -r 0dc141617716 review/templates/pieces/comment.html --- a/review/templates/pieces/comment.html Mon Oct 27 22:40:30 2014 +0100 +++ b/review/templates/pieces/comment.html Tue Oct 28 00:28:05 2014 +0100 @@ -1,8 +1,12 @@ {% if comment.style == 'markdown' %} {% set rendered = utils['markdown'](comment.message) %} {% endif %} +{% if comment.node != rev.hex() %} + {% set obsolete = True %} + {% set obsclass = ' obsolete' %} +{% endif %} -
+