There were a lot of repos on shithub (Thanks sigrid), so it was getting harder to scan for a single user. Add usernames when listing user dirs, for simpler scanning of the list.
Unified · Split
| @@ -84,9 +84,14 @@ switch($1){ · 83 unmodified lines | ||
| 84 | 84 | case 'list' |
| 85 | 85 | rfork m |
| 86 | 86 | prelude Repolist |
| 87 | − echo ' <h1>Repos</h1> | |
| 88 | − <dl>' | |
| 87 | + echo ' <h1>Repos</h1>' | |
| 88 | + udir=() | |
| 89 | 89 | for(repo in `$nl{ls */}){ |
| 90 | + ndir=`{basename -d $repo} | |
| 91 | + if(! ~ $udir $ndir){ | |
| 92 | + echo '<h3>'$ndir'</h3>' | |
| 93 | + echo '<dl>' | |
| 94 | + } | |
| 90 | 95 | if(test -e $repo/.git/webpublish){ |
| 91 | 96 | echo '<dt><a href="/git/'$repo'/HEAD/info.html">'$repo'</a></dt>' |
| 92 | 97 | echo '<dd>' |
| @@ -98,6 +103,10 @@ case 'list' · 5 unmodified lines | ||
| 98 | 103 | echo 'code some guy wrote' |
| 99 | 104 | echo '</dd>' |
| 100 | 105 | } |
| 106 | + if(! ~ $udir $ndir){ | |
| 107 | + echo '</dl>' | |
| 108 | + udir=$ndir | |
| 109 | + } | |
| 101 | 110 | } |
| 102 | 111 | echo '</dl>' |
| 103 | 112 | |