Spaces:
Running
Running
Commit
·
300df58
1
Parent(s):
8929a2a
gh
Browse files
viewer/src/routes/+page.svelte
CHANGED
@@ -155,7 +155,7 @@
|
|
155 |
if (v.Code) {
|
156 |
codeUrl = v.Code;
|
157 |
if (v.Code.includes("github.com")) {
|
158 |
-
codeDisplay = `
|
159 |
} else {
|
160 |
codeDisplay = v.Code.slice(0, 16) + "...";
|
161 |
}
|
@@ -229,7 +229,7 @@
|
|
229 |
"drive.google.com/"
|
230 |
)[1].slice(0, 16)}</a>`;
|
231 |
} else if (v.Dataset.includes("github.com")) {
|
232 |
-
return `<a href="${v.Dataset}" target="_blank">
|
233 |
0,
|
234 |
16
|
235 |
)}</a>`;
|
|
|
155 |
if (v.Code) {
|
156 |
codeUrl = v.Code;
|
157 |
if (v.Code.includes("github.com")) {
|
158 |
+
codeDisplay = `gh/${v.Code.split("github.com/")[1].slice(0, 16)}`;
|
159 |
} else {
|
160 |
codeDisplay = v.Code.slice(0, 16) + "...";
|
161 |
}
|
|
|
229 |
"drive.google.com/"
|
230 |
)[1].slice(0, 16)}</a>`;
|
231 |
} else if (v.Dataset.includes("github.com")) {
|
232 |
+
return `<a href="${v.Dataset}" target="_blank">gh/${v.Dataset.split("github.com/")[1].slice(
|
233 |
0,
|
234 |
16
|
235 |
)}</a>`;
|