fix path for chunk pages
This commit is contained in:
parent
1254018305
commit
dc6cfda291
@ -1,7 +1,7 @@
|
|||||||
use maud::{Markup, html};
|
use maud::{Markup, html};
|
||||||
use rouille::{Request, Response};
|
use rouille::{Request, Response};
|
||||||
use crate::{
|
use crate::{
|
||||||
btrfs_lookup::Tree, btrfs_structs::{self, BlockRef, ItemType, TreeID, Value}, key, main_error::MainError, render_common::{render_page, size_name}
|
btrfs_lookup::Tree, btrfs_structs::{self, BlockRef, ItemType, TreeID, Value}, key, main_error::MainError, render_common::{render_page, size_name, http_path}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ChunkLineDisplay {
|
struct ChunkLineDisplay {
|
||||||
@ -221,8 +221,11 @@ fn render_allchunks(data: Vec<ChunkLineDisplay>) -> Markup {
|
|||||||
}
|
}
|
||||||
span.itemvalue {
|
span.itemvalue {
|
||||||
@if bg.link {
|
@if bg.link {
|
||||||
a href=(format!("/chunk/{:x}", bg.logical_address.unwrap())) { (bg.description) } ", " (size_name(bg.size))
|
a href=(format!("{}/chunk/{:x}", http_path(), bg.logical_address.unwrap())) {
|
||||||
|
(bg.description)
|
||||||
|
}
|
||||||
|
", "
|
||||||
|
(size_name(bg.size))
|
||||||
} @else {
|
} @else {
|
||||||
(bg.description) ", " (size_name(bg.size))
|
(bg.description) ", " (size_name(bg.size))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user