Show "closed registration" message on landing page

pull/24/head
Matt Baer 6 years ago
parent 2ea10939f2
commit 5614bb448a
  1. 7
      pages/landing.tmpl

@ -64,7 +64,8 @@ form dd {
<p><a href="{{if .Federation}}#more{{else}}/about{{end}}">Learn more...</a></p> <p><a href="{{if .Federation}}#more{{else}}/about{{end}}">Learn more...</a></p>
</div> </div>
<div> <div{{if not .OpenRegistration}} style="padding: 2em 0;"{{end}}>
{{ if .OpenRegistration }}
{{if .Flashes}}<ul class="errors"> {{if .Flashes}}<ul class="errors">
{{range .Flashes}}<li class="urgent">{{.}}</li>{{end}} {{range .Flashes}}<li class="urgent">{{.}}</li>{{end}}
</ul>{{end}} </ul>{{end}}
@ -93,6 +94,10 @@ form dd {
</dl> </dl>
</form> </form>
</div> </div>
{{ else }}
<p style="font-size: 1.3em; margin: 1rem 0;">Registration is currently closed.</p>
<p>You can always sign up on <a href="https://writefreely.org/instances">another instance</a>.</p>
{{ end }}
</div> </div>
</div> </div>

Loading…
Cancel
Save