# HG changeset patch # User Steve Losh # Date 1276909976 14400 # Node ID 802d01307f7774eb35fd50b7de1a226dfaeba70e # Parent 78d9f73badd9a17cc18ada861385203ad5c9ef9a web: add a bit of context for colorboxes diff -r 78d9f73badd9 -r 802d01307f77 review/static/style.css --- a/review/static/style.css Fri Jun 18 20:57:12 2010 -0400 +++ b/review/static/style.css Fri Jun 18 21:12:56 2010 -0400 @@ -687,3 +687,9 @@ font-family: Monaco, Consolas, "Courier New", monospace; white-space: pre; } +#colorbox .context .context-head { + color: #888888; + font-size: 20px; + margin-top: -16px; + margin-bottom: 18px; +} diff -r 78d9f73badd9 -r 802d01307f77 review/static/style.less --- a/review/static/style.less Fri Jun 18 20:57:12 2010 -0400 +++ b/review/static/style.less Fri Jun 18 21:12:56 2010 -0400 @@ -656,4 +656,12 @@ font-family: @font-mono; white-space: pre; } + .context { + .context-head { + color: @c-light; + font-size: 20px; + margin-top: -16px; + margin-bottom: 18px; + } + } } diff -r 78d9f73badd9 -r 802d01307f77 review/templates/pieces/comment.html --- a/review/templates/pieces/comment.html Fri Jun 18 20:57:12 2010 -0400 +++ b/review/templates/pieces/comment.html Fri Jun 18 21:12:56 2010 -0400 @@ -26,6 +26,13 @@ {{ utils['templatefilters'].person(comment.author) }} said: +
+ {% if comment.filename %} +
on {{ comment.filename }}
+ {% else %} +
on changeset {{ rev.rev() }}:{{ utils['node_short'](rev.node()) }}
+ {% endif %} +
{{ comment.message }}
diff -r 78d9f73badd9 -r 802d01307f77 review/templates/pieces/linecomment.html --- a/review/templates/pieces/linecomment.html Fri Jun 18 20:57:12 2010 -0400 +++ b/review/templates/pieces/linecomment.html Fri Jun 18 21:12:56 2010 -0400 @@ -31,6 +31,9 @@ {{ utils['templatefilters'].person(comment.author) }} said: +
+
in {{ comment.filename }}
+
{{ comment.message }}