forked from hummypkg/sweeper
use breadcrumb path from browse.class
This commit is contained in:
parent
1feb44b8ab
commit
f05dab6acc
@ -1,7 +1,7 @@
|
||||
Package: sweeper
|
||||
Priority: optional
|
||||
Section: misc
|
||||
Version: 2.0.15-1
|
||||
Version: 2.0.15-2
|
||||
Architecture: mipsel
|
||||
Maintainer: af123@hummypkg.org.uk
|
||||
Depends: webif(>=1.2.5-10)
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
package require cgi
|
||||
source /mod/webif/lib/setup
|
||||
require system.class plugin
|
||||
require system.class browse.class plugin
|
||||
|
||||
set dir [cgi_get dir ""]
|
||||
set root [system mediaroot]
|
||||
@ -27,12 +27,7 @@ puts "
|
||||
<span class=\"root hidden\">$root</span>
|
||||
"
|
||||
# Breadcrumb path
|
||||
set stub ""
|
||||
foreach part [split $dir /] {
|
||||
if {$stub eq "/"} { set name $part } else { set name "/$part" }
|
||||
append stub $name
|
||||
puts "<a href=\"/browse?dir=[cgi_quote_url $stub]\">$name</a>"
|
||||
}
|
||||
browse breadcrumb $dir
|
||||
puts {
|
||||
<span id=pendingnote class="blood hidden">
|
||||
(changes pending, not yet saved.)
|
||||
|
Loading…
Reference in New Issue
Block a user