Updated func name to get route url in templates.

This commit is contained in:
mikestefanello 2021-12-18 17:02:29 -05:00
parent 5805afe947
commit 3525d5d704
5 changed files with 11 additions and 11 deletions

View file

@ -17,10 +17,10 @@
<button class="button is-primary">Log in</button>
</p>
<p class="control">
<a href="{{call .Reverse "home"}}" class="button is-light">Cancel</a>
<a href="{{call .ToURL "home"}}" class="button is-light">Cancel</a>
</p>
</div>
{{template "csrf" .}}
</form>
<div class="content is-small"><a href="{{call .Reverse "register"}}">Create an account</a> - <a href="{{call .Reverse "forgot_password"}}">Forgot password?</a></div>
<div class="content is-small"><a href="{{call .ToURL "register"}}">Create an account</a> - <a href="{{call .ToURL "forgot_password"}}">Forgot password?</a></div>
{{end}}