# HG changeset patch # User Steve Losh # Date 1276448808 14400 # Node ID ed09b19b1ba7534eabb2f4ed27094cd2ed90b93c # Parent cec804c971653ddc0bd7337d98706898dabc996e web: style changes, minor fixes diff -r cec804c97165 -r ed09b19b1ba7 review/static/style.css --- a/review/static/style.css Sun Jun 13 12:50:19 2010 -0400 +++ b/review/static/style.css Sun Jun 13 13:06:48 2010 -0400 @@ -192,7 +192,8 @@ #index .content table tr td { border: none; } -#index .content table tr td a { +#index .content table tr td a.changeset-link { + display: block; width: 100%; white-space: nowrap; overflow: hidden; @@ -214,6 +215,7 @@ text-align: right; } #index .content table tr td.stats .badge { + cursor: pointer; color: white; font-weight: bold; display: inline-block; @@ -236,6 +238,9 @@ #index .content table tr td.stats .badge.comments { background-color: #ff5700; } +#index .content table tr td.stats .badge:hover { + text-decoration: none; +} #changeset .content .fulldesc { font-size: 18px; line-height: 1.25; diff -r cec804c97165 -r ed09b19b1ba7 review/static/style.less --- a/review/static/style.less Sun Jun 13 12:50:19 2010 -0400 +++ b/review/static/style.less Sun Jun 13 13:06:48 2010 -0400 @@ -229,7 +229,8 @@ td { border: none; - a { + a.changeset-link { + display: block; width: 100%; white-space: nowrap; overflow: hidden; @@ -253,6 +254,7 @@ text-align: right; .badge { + cursor: pointer; color: white; font-weight: bold; display: inline-block; @@ -274,6 +276,9 @@ &.comments { background-color: @c-orange-light; } + &:hover { + text-decoration: none; + } } } } diff -r cec804c97165 -r ed09b19b1ba7 review/templates/changeset.html --- a/review/templates/changeset.html Sun Jun 13 12:50:19 2010 -0400 +++ b/review/templates/changeset.html Sun Jun 13 13:06:48 2010 -0400 @@ -61,7 +61,7 @@
- {{ utils['templatefilters'].person(signoff.author) }} + {{ utils['templatefilters'].person(signoff.author) }} signed off as {{ signoff.opinion or "neutral" }} on this changeset, saying:
{{ signoff.message }}
diff -r cec804c97165 -r ed09b19b1ba7 review/templates/index.html --- a/review/templates/index.html Sun Jun 13 12:50:19 2010 -0400 +++ b/review/templates/index.html Sun Jun 13 13:06:48 2010 -0400 @@ -9,10 +9,12 @@ {% for rcset in rcsets %} {% set rev = rcset.target[rcset.node] %} {% set node_short = utils['node_short'](rev.node()) %} + {% set link = "/changeset/" + node_short %} + {{ rev.rev() }}:{{ node_short }} - {{ rev.description().splitlines()[0] }} + {{ rev.description().splitlines()[0] }} {% with %} @@ -20,17 +22,17 @@ {% set signoffs = utils['categorize_signoffs'](rcset.signoffs) %} {% if comments %} - {{ utils['len'](comments) }} comment{% if utils['len'](comments) > 1 %}s{% endif %} + {{ utils['len'](comments) }} comment{% if utils['len'](comments) > 1 %}s{% endif %} {% endif %} {% if signoffs['yes'] %} - {{ signoffs['yes'] }} yes + {{ signoffs['yes'] }} yes {% endif %} {% if signoffs['neutral'] %} - {{ signoffs['neutral'] }} neutral + {{ signoffs['neutral'] }} neutral {% endif %} {% if signoffs['no'] %} - {{ signoffs['no'] }} no + {{ signoffs['no'] }} no {% endif %} {% endwith %}