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