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
63f5015f
Commit
63f5015f
authored
Sep 04, 2015
by
rht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Embed directory-listing styles
parent
9fa10e51
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
3 deletions
+63
-3
dir-index-uncat.html
dir-index-uncat.html
+62
-0
dir-index.html
dir-index.html
+1
-3
No files found.
dir-index-uncat.html
0 → 100644
View file @
63f5015f
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<!-- TODO: seed these - maybe like the starter ex or the webui? -->
<link
rel=
"stylesheet"
href=
"/ipfs/QmXB7PLRWH6bCiwrGh2MrBBjNkLv3mY3JdYXCikYZSwLED/bootstrap.min.css"
/>
<!-- helper to construct this is here: https://github.com/cryptix/exp/blob/master/imgesToCSSData/convert.go -->
<link
rel=
"stylesheet"
href=
"/ipfs/QmXB7PLRWH6bCiwrGh2MrBBjNkLv3mY3JdYXCikYZSwLED/icons.css"
>
<style>
.narrow
{
width
:
0px
;}
.padding
{
margin
:
100px
;}
#header
{
background
:
#000
;
}
#logo
{
height
:
25px
;
margin
:
10px
;
}
.ipfs-icon
{
width
:
16px
;
}
</style>
<title>
{{ .Path }}
</title>
</head>
<body>
<div
id=
"header"
class=
"row"
>
<div
class=
"col-xs-2"
>
<div
id=
"logo"
class=
"ipfs-logo"
>
</div>
</div>
</div>
<br/>
<div
class=
"col-xs-12"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<strong>
Index of {{ .Path }}
</strong>
</div>
<table
class=
"table table-striped"
>
<tr>
<td
class=
"narrow"
>
<div
class=
"ipfs-icon ipfs-_blank"
>
</div>
</td>
<td
class=
"padding"
>
<a
href=
"{{.BackLink}}"
>
..
</a>
</td>
<td></td>
</tr>
{{ range .Listing }}
<tr>
<td>
<div
class=
"ipfs-icon {{iconFromExt .Name}}"
>
</div>
</td>
<td>
<a
href=
"{{ .Path }}"
>
{{ .Name }}
</a>
</td>
<td>
{{ .Size }}
</td>
</tr>
{{ end }}
</table>
</div>
</div>
</body>
</html>
dir-index.html
View file @
63f5015f
This diff is collapsed.
Click to expand it.
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