]> git.plutz.net Git - busy/commitdiff
beautyfication of svn change log
authorpaul <paul@plutz.net>
Wed, 2 Nov 2011 19:09:31 +0000 (19:09 +0000)
committerpaul <paul@plutz.net>
Wed, 2 Nov 2011 19:09:31 +0000 (19:09 +0000)
svn path=/trunk/; revision=29

Subversion.css [new file with mode: 0644]
Subversion.page
busy.css

diff --git a/Subversion.css b/Subversion.css
new file mode 100644 (file)
index 0000000..c362338
--- /dev/null
@@ -0,0 +1,19 @@
+.changelog {
+  background-color: #FFF;
+  border-color: #AAF;
+  border-style: solid;
+  border-width: 1px;
+  margin: .6em 0em;
+  padding: .2em .5em .5em .5em;
+  border-radius: 8px;
+  -moz-border-radius: 8px;
+}
+.changelog h2{
+  font: normal bold 1em sans-serif;
+  text-align: center;
+  color: #66F;
+  margin: 0em 0em .3em 0em;
+  border-style: none none solid none;
+  border-width: 1px;
+  border-color: #AAF;
+}
index bc56b1e867d7d57bc6c074d2786d531688026bca..07a783aef51e0b453a4928c20ef106530364f1e8 100755 (executable)
@@ -26,7 +26,10 @@ cat <<SVNEND
   </div>
 
   <div id="RIGHT">
   </div>
 
   <div id="RIGHT">
-    $(svn log "${baseuri}/${url}" |sed -r 's:^-+$:<hr>:g;s:^r([0-9]+) \| ([a-zA-Z0-9]+) \| ([0-9: -]+) .+$:Revision \1 by \2<br>at \3<br>:g;')
+    <h1>Changelog:</h1><hr>
+    $(svn log $(egrep -q '^(.*/|)$' <<<"$url" && echo '') "${baseuri}/${url}" |\
+sed -rn '2,${s:^-+$:</div>:g;
+s:^r([0-9]+) \| ([a-zA-Z0-9]+) \| ([0-9: -]+) .+$:<div class="changelog"><h2>Revision \1 by \2<br>at \3</h2>:g;p}')
   </div>
 
   <div id="MAIN">
   </div>
 
   <div id="MAIN">
index 1abcc6f98372313a8ecd64a58ec46cbef8d53f11..059791d78b24e01a5064e6e33ac83ba4614e01da 100644 (file)
--- a/busy.css
+++ b/busy.css
@@ -114,6 +114,11 @@ div#LEFT h1{
   text-decoration: none;
   margin: 0em 0em .5em 0em;
 }
   text-decoration: none;
   margin: 0em 0em .5em 0em;
 }
+div#RIGHT h1{
+  font: normal bold 1.2em sans-serif;
+  text-decoration: none;
+  margin: 0em 0em .5em 0em;
+}
 
 .search {
   background-color: #FFF;
 
 .search {
   background-color: #FFF;