HTML as footer

pull/116/head v0.80.0
Hunter Long 2018-12-12 09:52:20 -08:00
parent f4092bc198
commit 350579074c
3 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{{ define "footer"}}
<div class="footer text-center mb-4 p-2">
{{ if CoreApp.Footer.String }}
{{ CoreApp.Footer.String }}
{{ safe CoreApp.Footer.String }}
{{ else }}
<a href="https://github.com/hunterlong/statping" target="_blank">Statping {{VERSION}} made with <i class="text-danger fas fa-heart"></i></a> | <a href="/dashboard">Dashboard</a>
{{ end }}

View File

@ -60,6 +60,7 @@
<div class="form-group">
<label for="footer">Custom Footer</label>
<textarea rows="4" name="footer" class="form-control" id="footer">{{ .Footer.String }}</textarea>
<small class="form-text text-muted">HTML is allowed inside the footer</small>
</div>
<div class="form-group">

View File

@ -1 +1 @@
0.79.99
0.80.0