Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Link to project root
Alexis Sellier committed 4 years ago
commit 9f58c304ba25dcb4777a52f6fabd2720daad7346
parent a600f041074eaca3690223b08a30c643e6f57625
1 file changed +7 -2
modified src/base/projects/View.svelte
@@ -1,6 +1,6 @@
<script lang="typescript">
  import { onMount } from 'svelte';
-
  import { navigate } from 'svelte-routing';
+
  import { Link, navigate } from 'svelte-routing';
  import type { Config } from '@app/config';
  import * as proj from '@app/project';
  import Loading from '@app/Loading.svelte';
@@ -17,6 +17,9 @@
  export let path: string;

  let project: State.Loading | proj.Info | null = null;
+
  let projectRoot = commit
+
    ? `/projects/${urn}/${commit}`
+
    : `/projects/${urn}`;

  const onSelect = ({ detail: path }: { detail: string }) => {
    if (commit) {
@@ -61,7 +64,9 @@
    </header>
  {:else if project}
    <header>
-
      <div class="title bold">{project.meta.name}</div>
+
      <div class="title bold">
+
        <Link to={projectRoot}>{project.meta.name}</Link>
+
      </div>
      <div class="urn">{urn}</div>
      <div class="description">{project.meta.description}</div>
    </header>