cvs: php-gcov-web / sidebar.inc style.css
| From: | Marcus Boerger | Date: | Sat, 27 May 2006 21:47:32 +0000 |
| Subject: | cvs: php-gcov-web / sidebar.inc style.css | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-31635@lists.php.net to get a copy of this message | ||
helly Sat May 27 21:47:32 2006 UTC
Modified files:
/php-gcov-web sidebar.inc style.css
Log:
- Improve sidebar by integrating sub item
http://cvs.php.net/viewcvs.cgi/php-gcov-web/sidebar.inc?r1=1.1.1.1&r2=1.2&diff_format=u
Index: php-gcov-web/sidebar.inc
diff -u php-gcov-web/sidebar.inc:1.1.1.1 php-gcov-web/sidebar.inc:1.2
--- php-gcov-web/sidebar.inc:1.1.1.1 Sun Mar 12 19:52:45 2006
+++ php-gcov-web/sidebar.inc Sat May 27 21:47:32 2006
@@ -3,10 +3,44 @@
<ul id="sidebartoc">
<li class="header home"><a
href="/">PHP GCOV</a></li>
<?php
+
+$cnt = count($tags);
foreach($tags as $tag)
{
- $cls = ($tag == $mytag) ? " class='active'" : "";
+ $cls = '';
+ if (!--$cnt && isset($mytag))
+ {
+ $cls = 'last';
+ }
+ if ($tag == $mytag)
+ {
+ if (strlen($cls))
+ {
+ $cls .= ' ';
+ }
+ $cls .= 'active';
+ }
+ if (strlen($cls))
+ {
+ $cls = " class='$cls'";
+ }
echo "<li$cls><a href='/$tag'>$tag</a></li>\n";
}
+
+if (isset($mytag))
+{
+ $subitems = array(
+ 'coverage' => 'lcov/',
+ 'run-tests' => 'run-tests.log.php',
+ 'make log' => 'make.log.php',
+ 'build.sh' => 'build.php',
+ );
+ foreach($subitems as $item => $href)
+ {
+ $cls = " class='small'";
+ echo "<li$cls><a
href='/$tag/$href'>$item</a></li>\n";
+ }
+}
+
?>
</ul></td></tr></table><!-- sidebar -->
http://cvs.php.net/viewcvs.cgi/php-gcov-web/style.css?r1=1.2&r2=1.3&diff_format=u
Index: php-gcov-web/style.css
diff -u php-gcov-web/style.css:1.2 php-gcov-web/style.css:1.3
--- php-gcov-web/style.css:1.2 Mon Mar 13 21:01:51 2006
+++ php-gcov-web/style.css Sat May 27 21:47:32 2006
@@ -269,6 +269,14 @@
background-image: url(/images/box-1.gif);
font-weight: bold;
}
+ul#sidebartoc li.last {
+ padding: 5px 0px 5px 11px;
+ border-bottom: 1px solid #cccccc;
+ margin-bottom: 5px;
+}
+ul#sidebartoc li.small {
+ font-size: 90%;
+}
ul#sidebartoc li a {
color: #000066;
text-decoration: none;