Various helpers for the tildeverse.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

56 lignes
1.2 KiB

  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. h2 {
  20. padding: 0;
  21. }
  22. h2 a {
  23. padding: 0 10px;
  24. color: white;
  25. }
  26. </style>
  27. </head>
  28. <body id="hello">
  29. <h1>{{.FolderName}} on {{.Host}}</h1> <span class="updated"><a href="/~bear/">&uarr; up</a></span>
  30. <p>Last Updated: <time datetime="{{.Updated}}">{{.UpdatedForHumans}}</time></p>
  31. {{range .Users}}
  32. <h2><a href="/~{{.Name}}/">~{{.Name}}</a></h2>
  33. <div class="links">
  34. <ul class="links">
  35. {{range .Projects}}
  36. <li><span class="{{.CSSClass}}">{{.Name}}</span> <span class="fullDir">&middot; {{.Path}}</span></li>
  37. {{end}}
  38. </ul>
  39. </div>
  40. {{end}}
  41. {{$arr := Split .FolderName ","}}
  42. <p style="margin: 2em 0;">
  43. Create a {{ListDirs .Folders}} folder directly under your home directory.
  44. <em>Other</em>-readable files in this folder will show up here. Updated every 30 minutes.
  45. </p>
  46. </body>
  47. </html>
  48. {{end}}