Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Handle error loading README
Alexis Sellier committed 4 years ago
commit 8d5429b62c287b357889289c942d269acaf5a7a9
parent 5a7dfe982576bcd88a85b4f9b3f3cbdbf50960f5
1 file changed +8 -2
modified src/base/projects/Browser.svelte
@@ -115,9 +115,15 @@
            <div class="error error-message file-not-found">
              <header>
                <div class="icon">🍂</div>
-
                <div><code>{path}</code></div>
+
                {#if path != "/"}
+
                  <div><code>{path}</code></div>
+
                {/if}
              </header>
-
              This file could not be loaded.
+
              {#if path == "/"}
+
                The README could not be loaded.
+
              {:else}
+
                This path could not be loaded.
+
              {/if}
            </div>
          {/await}
        </div>