Update of /cvsroot/lxr/lxr/lib/LXR
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv25302/lib/LXR
Modified Files:
Template.pm
Log Message:
Templates.pm, lxr.css, html-head-*.html: make sure the Attic link is hidden when view is not on a directory and tree is not stored in CVS
Index: Template.pm
===================================================================
RCS file: /cvsroot/lxr/lxr/lib/LXR/Template.pm,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- Template.pm 17 Nov 2013 09:08:51 -0000 1.28
+++ Template.pm 2 Dec 2013 17:00:48 -0000 1.29
@@ -1512,10 +1512,10 @@
# and the current page is related to some file activity
# (i.e. displaying a directory or a source file)
return ' ' if !$files->isa('LXR::Files::CVS');
- return ' ' if substr($who, 0, 6) ne 'source';
+ return ' ' if $who ne 'sourcedir';
# Now build the opposite of the current state
if ($HTTP->{'param'}->{'_showattic'}) {
- return ( '<a class="modes" href="'
+ return ( '<div class="cvsattic"><a class="modes" href="'
. $config->{'virtroot'}
. 'source'
. ( exists($config->{'treename'})
@@ -1524,10 +1524,10 @@
)
. $pathname
. &urlargs("_showattic=0")
- . '">Hide attic files</a>'
+ . '">Hide attic files</a></div>'
);
} else {
- return ( '<a class="modes" href="'
+ return ( '<div class="cvsattic"><a class="modes" href="'
. $config->{'virtroot'}
. 'source'
. ( exists($config->{'treename'})
@@ -1536,7 +1536,7 @@
)
. $pathname
. &urlargs('_showattic=1')
- . '">Show attic files</a>'
+ . '">Show attic files</a></div>'
);
}
}
|