diff --git a/src/views/projects/Browser.svelte b/src/views/projects/Browser.svelte index a21513a65..9a9da10cd 100644 --- a/src/views/projects/Browser.svelte +++ b/src/views/projects/Browser.svelte @@ -7,6 +7,7 @@ import { HttpdClient } from "@httpd-client"; import Button from "@app/components/Button.svelte"; + import Layout from "./Layout.svelte"; import Placeholder from "@app/components/Placeholder.svelte"; import SourceBrowsingHeader from "./SourceBrowsingHeader.svelte"; @@ -14,6 +15,7 @@ import TreeComponent from "./Tree.svelte"; export let baseUrl: BaseUrl; + export let blobResult: BlobResult; export let branches: string[]; export let path: string; export let peer: string | undefined; @@ -21,7 +23,6 @@ export let project: Project; export let revision: string | undefined; export let tree: Tree; - export let blobResult: BlobResult; // Whether the mobile file tree is visible. let mobileFileTree = false; @@ -145,81 +146,85 @@ } - + + -
- - {#if tree.entries.length > 0} - - {/if} - -
+
+ {#if tree.entries.length > 0} -
-
- { - // Close mobile tree if user navigates to other file. - mobileFileTree = false; - }} /> + + {/if} + +
+ {#if tree.entries.length > 0} +
+
+ { + // Close mobile tree if user navigates to other file. + mobileFileTree = false; + }} /> +
-
-
- {#if blobResult.ok} - - {:else} - - -
{blobResult.error.path}
-
+
+ {#if blobResult.ok} + + {:else} + + +
{blobResult.error.path}
+
+ + {blobResult.error.message} + +
+ {/if} +
+ {:else} +
+ + Nothing to show - {blobResult.error.message} + We couldn't find any files at this revision. - {/if} -
- {:else} -
- - Nothing to show - We couldn't find any files at this revision. - -
- {/if} -
-
+
+ {/if} + +
+
diff --git a/src/views/projects/Commit.svelte b/src/views/projects/Commit.svelte index 532930fbe..59608c8f5 100644 --- a/src/views/projects/Commit.svelte +++ b/src/views/projects/Commit.svelte @@ -7,6 +7,7 @@ import Clipboard from "@app/components/Clipboard.svelte"; import CommitAuthorship from "@app/views/projects/Commit/CommitAuthorship.svelte"; import InlineMarkdown from "@app/components/InlineMarkdown.svelte"; + import Layout from "./Layout.svelte"; export let baseUrl: BaseUrl; export let commit: Commit; @@ -49,27 +50,29 @@ } -
-
-
-
- -
-
- {header.id} - -
-
- {formatCommit(header.id)} - + +
+
+
+
+ +
+
+ {header.id} + +
+
+ {formatCommit(header.id)} + +
+
{header.description}
+
-
{header.description}
- +
- -
+ diff --git a/src/views/projects/Header.svelte b/src/views/projects/Header.svelte index 8c58d796f..c30f33980 100644 --- a/src/views/projects/Header.svelte +++ b/src/views/projects/Header.svelte @@ -1,6 +1,9 @@ + + + + + +
+ +
+
+ +
+ +
diff --git a/src/views/projects/Patch.svelte b/src/views/projects/Patch.svelte index f678ce219..e575a5c6d 100644 --- a/src/views/projects/Patch.svelte +++ b/src/views/projects/Patch.svelte @@ -29,9 +29,9 @@ - - -
- -
-
- -
- {#if view.resource === "tree"} - - {:else if view.resource === "history"} - - {:else if view.resource === "commit"} - - {:else if view.resource === "issues"} - - {:else if view.resource === "newIssue"} - - {:else if view.resource === "issue"} - - {:else if view.resource === "patches"} - - {:else if view.resource === "patch"} - - {:else} - {unreachable(view)} - {/if} -
+{#if view.resource === "tree"} + +{:else if view.resource === "history"} + +{:else if view.resource === "commit"} + +{:else if view.resource === "issues"} + +{:else if view.resource === "newIssue"} + +{:else if view.resource === "issue"} + +{:else if view.resource === "patches"} + +{:else if view.resource === "patch"} + +{:else} + {unreachable(view)} +{/if}