# HG changeset patch # User Christophe Lincoln # Date 1305031941 -7200 # Node ID 7704053dce6e8d33fa2d99eddbf5146271665a89 # Parent 2a0945d5554a04a76704f91b3ce78ff3c38b8071 web: improvment and add link to last instelled.diff diff -r 2a0945d5554a -r 7704053dce6e web/cooker.cgi --- a/web/cooker.cgi Tue May 10 12:30:11 2011 +0200 +++ b/web/cooker.cgi Tue May 10 14:52:21 2011 +0200 @@ -32,9 +32,9 @@ sed -e 's#OK$#OK#g' \ -e 's#yes$#yes#g' \ -e 's#no$#no#g' \ - -e 's#error$#error#g' \ - -e 's#ERROR:#ERROR:#g' \ - -e 's#WARNING:#WARNING:#g' \ + -e 's#error$#error#g' \ + -e 's#ERROR:#ERROR:#g' \ + -e 's#WARNING:#WARNING:#g' \ -e s"#^Executing:\([^']*\).#\0#"g \ -e s"#^====\([^']*\).#\0#"g \ -e s"#^[a-zA-Z0-9]\([^']*\) :: #\0#"g \ @@ -43,6 +43,13 @@ receipt) sed -e s"#^\#\([^']*\)#\0#"g \ -e s"#\"\([^']*\)\"#\0#"g ;; + diff) + sed -e 's|&|\&|g' -e 's|<|\<|g' -e 's|>|\>|g' \ + -e s"#^-\([^']*\).#\0#"g \ + -e s"#^+\([^']*\).#\0#"g \ + -e s"#@@\([^']*\)@@#@@\1@@#"g ;; + activity) + sed s"#^\([^']* : \)#\0#"g ;; esac } @@ -130,16 +137,24 @@ nb="- Packages: $(cat $cooklist | wc -l)" echo "

DB: $file $nb

" echo '
'
-				tac $CACHE/$file | \
-					sed s"#^\([^']* : \)#\0#"g
+				tac $CACHE/$file | syntax_highlighter activity
 				echo '
' ;; broken) nb=$(cat $broken | wc -l) echo "

DB: broken - Packages: $nb

" echo '
'
-				tac $CACHE/$file | \
+				cat $CACHE/$file | sort | \
 					sed s"#^[^']*#\0#"g
 				echo '
' ;; + *.diff) + diff=$CACHE/$file + echo "

Diff for: ${file%.diff}

" + [ "$file" == "installed.diff" ] && echo \ + "

This is the latest diff between installed packages \ + and build dependencies installed to cook.

" + echo '
'
+				cat $diff | syntax_highlighter diff
+				echo '
' ;; *.log) log=$LOGS/$file name=$(basename $log) @@ -204,22 +219,21 @@

- Latest logs: - cookorder - commits + Latest: + cookorder.log + commits.log + installed.diff

Activity

-$(tac $CACHE/activity | head -n 12 | \
-	sed s"#^\([^']* : \)#\0#"g)
+$(tac $CACHE/activity | head -n 12 | syntax_highlighter activity)
 
More activity

Cooknotes

-$(tac $cooknotes | head -n 12 | \
-	sed s"#^\([^']* : \)#\0#"g)
+$(tac $cooknotes | head -n 12 | syntax_highlighter activity)
 
More notes diff -r 2a0945d5554a -r 7704053dce6e web/style.css --- a/web/style.css Tue May 10 12:30:11 2011 +0200 +++ b/web/style.css Tue May 10 14:52:21 2011 +0200 @@ -4,6 +4,7 @@ h1 { margin: 0; padding: 8px; color: #fff; font-size: 20px; } h1 a { color: #fff; text-decoration: none; } h2 { color: #444; } h3 { color: #666; font-size: 140%; } +a { text-decoration: underline; color: #215090; } a:hover { text-decoration: none; } pre { background-color: #f8f8f8; @@ -46,7 +47,7 @@ } .span-ok { color: green; } -.span-error { color: red; } +.span-red { color: red; } .span-sky { color: blue; } .span-no { color: orange; } .span-line { color: #888; }