mirror of
https://github.com/knadh/listmonk.git
synced 2024-11-15 03:55:06 +08:00
27 lines
758 B
HTML
27 lines
758 B
HTML
{{ define "message" }}
|
|
{{ template "header" .}}
|
|
|
|
<h2>{{ .Data.Title }}</h2>
|
|
<div>
|
|
{{ .Data.Message }}
|
|
</div>
|
|
|
|
<p>
|
|
<a href="" class="button" id="btn-back">{{ L.T "globals.buttons.back" }}</a>
|
|
</p>
|
|
|
|
<script>
|
|
(function() {
|
|
// If there's page history to go back to, show the back button.
|
|
if(history && history.length >= 3) {
|
|
var btn = document.getElementById("btn-back");
|
|
btn.style.display = 'inline-block';
|
|
btn.onclick = function(e) {
|
|
history.go(history.length > 2 ? -2 : -1);
|
|
e.preventDefault();
|
|
};
|
|
}
|
|
})();
|
|
</script>
|
|
{{ template "footer" .}}
|
|
{{ end }}
|