Fork pd_web, remove everything we don't need
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { fs_encode_path } from "./FilesystemAPI";
|
||||
import { fs_encode_path, node_is_shared } from "./FilesystemAPI";
|
||||
import type { FSNavigator } from "./FSNavigator";
|
||||
|
||||
export let nav: FSNavigator
|
||||
@@ -7,7 +7,6 @@ export let nav: FSNavigator
|
||||
|
||||
<div class="breadcrumbs">
|
||||
{#each $nav.path as node, i (node.path)}
|
||||
{@const shared = node.id !== undefined && node.id !== "me"}
|
||||
<a
|
||||
href={"/d"+fs_encode_path(node.path)}
|
||||
class="breadcrumb button"
|
||||
@@ -16,7 +15,7 @@ export let nav: FSNavigator
|
||||
>
|
||||
{#if node.abuse_type !== undefined}
|
||||
<i class="icon small">block</i>
|
||||
{:else if shared}
|
||||
{:else if node_is_shared(node)}
|
||||
<i class="icon small">share</i>
|
||||
{/if}
|
||||
<div class="node_name" class:base={$nav.base_index === i}>
|
||||
|
Reference in New Issue
Block a user