Various helpers for the tildeverse.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
808 B

  1. {{define "code"}}
  2. <html>
  3. <head>
  4. <title>{{.FolderName}} on {{.Host}}</title>
  5. <link type="text/css" rel="stylesheet" href="tilde.css" />
  6. <style type="text/css">
  7. .dir {
  8. font-weight: bold;
  9. color: #00BFFF;
  10. }
  11. .file.exec {
  12. font-weight: bold;
  13. color: #FFD700;
  14. }
  15. .fullDir {
  16. color: #aaa;
  17. font-size: 0.9em;
  18. }
  19. </style>
  20. </head>
  21. <body id="hello">
  22. <h1>{{.FolderName}} on {{.Host}}</h1>
  23. <p>Last Updated: <time datetime="{{.Updated}}">{{.UpdatedForHumans}}</time></p>
  24. {{range .Users}}
  25. <h2><a href="/~{{.Name}}/">~{{.Name}}</a></h2>
  26. <div class="links">
  27. <ul class="links">
  28. {{range .Projects}}
  29. <li><span class="{{.CSSClass}}">{{.Name}}</span> <span class="fullDir">&middot; {{.Path}}</span></li>
  30. {{end}}
  31. </ul>
  32. </div>
  33. {{end}}
  34. </body>
  35. </html>
  36. {{end}}