]> Cypherpunks.ru repositories - gocheese.git/blobdiff - hr-pkg.tmpl
Move templates to external files
[gocheese.git] / hr-pkg.tmpl
diff --git a/hr-pkg.tmpl b/hr-pkg.tmpl
new file mode 100644 (file)
index 0000000..2f1590d
--- /dev/null
@@ -0,0 +1,77 @@
+`<!DOCTYPE html>
+<html>
+  <head>
+    <title>{{.Version}}: package {{.PkgName}}</title>
+  </head>
+  <body>
+    <dl>
+      {{with .Info.Name}}<dt>Name</dt><dd>{{.}}</dd>{{end}}
+      {{with .Info.Version}}<dt>Version</dt><dd>{{.}}</dd>{{end}}
+
+      {{with .Info.Platform}}<dt>Platform</dt><dd><ul>
+      {{range .}}<li>{{.}}</li>
+      {{end}}</ul></dd>{{end}}
+
+      {{with .Info.SupportedPlatform}}<dt>SupportedPlatform</dt><dd><ul>
+      {{range .}}<li>{{.}}</li>
+      {{end}}</ul></dd>{{end}}
+
+      <dt>Summary</dt><dd>{{.Info.Summary}}</dd>
+      <dt>Description</dt><dd><pre>
+{{.Info.Description}}
+      </pre></dd>
+
+      {{with .Info.DescriptionContentType}}<dt>DescriptionContentType</dt><dd>{{.}}</dd>{{end}}
+      {{with .Info.Keywords}}<dt>Keywords</dt><dd>{{.}}</dd>{{end}}
+      {{with .Info.HomePage}}<dt>HomePage</dt><dd>{{.}}</dd>{{end}}
+      {{with .Info.Author}}<dt>Author</dt><dd>{{.}}</dd>{{end}}
+      {{with .Info.AuthorEmail}}<dt>AuthorEmail</dt><dd>{{.}}</dd>{{end}}
+      {{with .Info.Maintainer}}<dt>Maintainer</dt><dd>{{.}}</dd>{{end}}
+      {{with .Info.MaintainerEmail}}<dt>MaintainerEmail</dt><dd>{{.}}</dd>{{end}}
+      {{with .Info.License}}<dt>License</dt><dd>{{.}}</dd>{{end}}
+
+      {{with .Info.Classifier}}<dt>Classifier</dt><dd><ul>
+      {{range .}}<li>{{.}}</li>
+      {{end}}</ul></dd>{{end}}
+
+      {{with .Info.RequiresDist}}<dt>RequiresDist</dt><dd><ul>
+      {{range .}}<li>{{.}}</li>
+      {{end}}</ul></dd>{{end}}
+
+      {{with .Info.RequiresPython}}<dt>RequiresPython</dt><dd>{{.}}</dd>{{end}}
+
+      {{with .Info.RequiresExternal}}<dt>RequiresExternal</dt><dd><ul>
+      {{range .}}<li>{{.}}</li>
+      {{end}}</ul></dd>{{end}}
+
+      {{with .Info.ProjectURL}}<dt>ProjectURL</dt><dd><ul>
+      {{range .}}<li>{{.}}</li>
+      {{end}}</ul></dd>{{end}}
+
+      {{with .Info.ProvidesExtra}}<dt>ProvidesExtra</dt><dd><ul>
+      {{range .}}<li>{{.}}</li>
+      {{end}}</ul></dd>{{end}}
+    </dl>
+
+    <h2>Releases</h2>
+    <table border=1>
+    <tr>
+      <th>Filename</th>
+      <th>Version</th>
+      <th>Uploaded</th>
+      <th>Size</th>
+      <th>Digests</th>
+    </tr>
+    {{range .Releases}}{{if .Size}}
+    <tr>
+      <td>{{.Filename}}</th>
+      <td>{{.Version}}</th>
+      <td>{{.UploadTimeISO8601}}</th>
+      <td>{{.Size}}</th>
+      <td><ul>{{range $a, $d := .Digests}}
+        <li>{{$a}}: <tt>{{$d}}</tt></li>
+      {{end}}</ul></td>
+    </tr>{{end}}{{end}}
+    </table>
+  </body>
+</html>