diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/renderer.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/renderer.rs b/src/renderer.rs index 1253bec..3fb992e 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -29,8 +29,9 @@ pub fn page( @if let Some(parent) = page_parent { tr { td { + span.chevron { (chevron_left()) } a.root href=(parent) { - ".." + "Parent directory" } } } @@ -78,6 +79,11 @@ fn build_link( } } +/// Partial: chevron left +fn chevron_left() -> Markup { + (PreEscaped("◂".to_string())) +} + /// Partial: chevron up fn chevron_up() -> Markup { (PreEscaped("▴".to_string())) @@ -237,6 +243,7 @@ fn css() -> Markup { .chevron { margin-right: .5rem; font-size: 1.2em; + font-weight: bold; } th span.active a, th span.active span { color: #444444; |