A clean, Markdown-based publishing platform made for writers. Write together, and build a community. https://writefreely.org
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.
 
 
 
 
 

33 lignes
1.5 KiB

  1. {{define "invite-help"}}
  2. {{template "header" .}}
  3. <style>
  4. .copy-link {
  5. width: 100%;
  6. margin: 1rem 0;
  7. text-align: center;
  8. font-size: 1.2em;
  9. color: #555;
  10. }
  11. </style>
  12. <div class="snug content-container">
  13. <h1>Invite to {{.SiteName}}</h1>
  14. {{ if .Expired }}
  15. <p style="font-style: italic">This invite link is expired.</p>
  16. {{ else }}
  17. <p>Copy the link below and send it to anyone that you want to join <em>{{ .SiteName }}</em>. You could paste it into an email, instant message, text message, or write it down on paper. Anyone who navigates to this special page will be able to create an account.</p>
  18. <input class="copy-link" type="text" name="invite-url" value="{{$.Host}}/invite/{{.Invite.ID}}" onfocus="if (this.select) this.select(); else this.setSelectionRange(0, this.value.length);" readonly />
  19. <p>
  20. {{ if gt .Invite.MaxUses.Int64 0 }}
  21. {{if eq .Invite.MaxUses.Int64 1}}Only <strong>one</strong> user{{else}}Up to <strong>{{.Invite.MaxUses.Int64}}</strong> users{{end}} can sign up with this link.
  22. {{if gt .Invite.Uses 0}}So far, <strong>{{.Invite.Uses}}</strong> {{pluralize "person has" "people have" .Invite.Uses}} used it.{{end}}
  23. {{if .Invite.Expires}}It expires on <strong>{{.Invite.ExpiresFriendly}}</strong>.{{end}}
  24. {{ else }}
  25. It can be used as many times as you like{{if .Invite.Expires}} before <strong>{{.Invite.ExpiresFriendly}}</strong>, when it expires{{end}}.
  26. {{ end }}
  27. </p>
  28. {{ end }}
  29. </div>
  30. {{template "footer" .}}
  31. {{end}}