Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
dir-index-html
Commits
5d9b6d54
Unverified
Commit
5d9b6d54
authored
Oct 01, 2021
by
Marcin Rataj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: disable translation of cids
parent
5c6147fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
dir-index.html
dir-index.html
+2
-2
src/dir-index.html
src/dir-index.html
+2
-2
No files found.
dir-index.html
View file @
5d9b6d54
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
{{ end }}
{{ end }}
</strong>
</strong>
{{ if .Hash }}
{{ if .Hash }}
<div
class=
"ipfs-hash"
>
<div
class=
"ipfs-hash"
translate=
"no"
>
{{ .Hash }}
{{ .Hash }}
</div>
</div>
{{ end }}
{{ end }}
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
</td>
</td>
<td
class=
"no-linebreak"
>
<td
class=
"no-linebreak"
>
{{ if .Hash }}
{{ if .Hash }}
<a
class=
"ipfs-hash"
href=
{{
if
$
root.DNSLink
}}"
https:
//
cid.ipfs.io
/
#
{{
.
Hash
|
urlEscape
}}"
target=
"_blank"
rel=
"noreferrer noopener"
{{
else
}}"{{
$
root.GatewayURL
}}/
ipfs
/{{
.
Hash
|
urlEscape
}}?
filename=
{{
.
Name
|
urlEscape
}}"{{
end
}}
>
<a
class=
"ipfs-hash"
translate=
"no"
href=
{{
if
$
root.DNSLink
}}"
https:
//
cid.ipfs.io
/
#
{{
.
Hash
|
urlEscape
}}"
target=
"_blank"
rel=
"noreferrer noopener"
{{
else
}}"{{
$
root.GatewayURL
}}/
ipfs
/{{
.
Hash
|
urlEscape
}}?
filename=
{{
.
Name
|
urlEscape
}}"{{
end
}}
>
{{ .ShortHash }}
{{ .ShortHash }}
</a>
</a>
{{ end }}
{{ end }}
...
...
src/dir-index.html
View file @
5d9b6d54
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
{{ end }}
{{ end }}
</strong>
</strong>
{{ if .Hash }}
{{ if .Hash }}
<div
class=
"ipfs-hash"
>
<div
class=
"ipfs-hash"
translate=
"no"
>
{{ .Hash }}
{{ .Hash }}
</div>
</div>
{{ end }}
{{ end }}
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
</td>
</td>
<td
class=
"no-linebreak"
>
<td
class=
"no-linebreak"
>
{{ if .Hash }}
{{ if .Hash }}
<a
class=
"ipfs-hash"
href=
{{
if
$
root.DNSLink
}}"
https:
//
cid.ipfs.io
/
#
{{
.
Hash
|
urlEscape
}}"
target=
"_blank"
rel=
"noreferrer noopener"
{{
else
}}"{{
$
root.GatewayURL
}}/
ipfs
/{{
.
Hash
|
urlEscape
}}?
filename=
{{
.
Name
|
urlEscape
}}"{{
end
}}
>
<a
class=
"ipfs-hash"
translate=
"no"
href=
{{
if
$
root.DNSLink
}}"
https:
//
cid.ipfs.io
/
#
{{
.
Hash
|
urlEscape
}}"
target=
"_blank"
rel=
"noreferrer noopener"
{{
else
}}"{{
$
root.GatewayURL
}}/
ipfs
/{{
.
Hash
|
urlEscape
}}?
filename=
{{
.
Name
|
urlEscape
}}"{{
end
}}
>
{{ .ShortHash }}
{{ .ShortHash }}
</a>
</a>
{{ end }}
{{ end }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment