2015-01-26 03:39:16 +00:00
|
|
|
{{define "code"}}
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
|
2015-01-26 05:03:27 +00:00
|
|
|
<title>{{.FolderName}} on {{.Host}}</title>
|
2015-01-26 03:39:16 +00:00
|
|
|
|
|
|
|
<link type="text/css" rel="stylesheet" href="tilde.css" />
|
2015-02-10 04:30:24 +00:00
|
|
|
<style type="text/css">
|
|
|
|
.dir {
|
|
|
|
font-weight: bold;
|
|
|
|
color: #00BFFF;
|
|
|
|
}
|
|
|
|
.file.exec {
|
|
|
|
font-weight: bold;
|
|
|
|
color: #FFD700;
|
|
|
|
}
|
|
|
|
.fullDir {
|
|
|
|
color: #aaa;
|
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
2015-03-08 17:57:13 +00:00
|
|
|
h2 {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
h2 a {
|
|
|
|
padding: 0 10px;
|
|
|
|
color: white;
|
|
|
|
}
|
2015-02-10 04:30:24 +00:00
|
|
|
</style>
|
2015-01-26 03:39:16 +00:00
|
|
|
|
|
|
|
</head>
|
|
|
|
<body id="hello">
|
|
|
|
|
2015-03-08 17:57:13 +00:00
|
|
|
<h1>{{.FolderName}} on {{.Host}}</h1> <span class="updated"><a href="/~bear/">↑ up</a></span>
|
2015-01-26 03:39:16 +00:00
|
|
|
<p>Last Updated: <time datetime="{{.Updated}}">{{.UpdatedForHumans}}</time></p>
|
|
|
|
|
|
|
|
{{range .Users}}
|
|
|
|
<h2><a href="/~{{.Name}}/">~{{.Name}}</a></h2>
|
|
|
|
<div class="links">
|
|
|
|
<ul class="links">
|
|
|
|
{{range .Projects}}
|
2015-02-15 00:57:21 +00:00
|
|
|
<li><span class="{{.CSSClass}}">{{.Name}}</span> <span class="fullDir">· {{.Path}}</span></li>
|
2015-01-26 03:39:16 +00:00
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
2015-03-08 18:01:35 +00:00
|
|
|
{{$arr := Split .FolderName ","}}
|
|
|
|
<p style="margin: 2em 0;">
|
|
|
|
Create a {{ListDirs .Folders}} folder directly under your home directory.
|
|
|
|
<em>Other</em>-readable files in this folder will show up here. Updated every 30 minutes.
|
|
|
|
</p>
|
|
|
|
|
2015-01-26 03:39:16 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
{{end}}
|