summaryrefslogtreecommitdiff
path: root/tpls
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-08-29 22:42:14 +0200
committerKevin Chabowski <kevin@kch42.de>2013-08-29 22:42:14 +0200
commit231ad8195ca2dde0bf560a188614bcdcc26398cc (patch)
treec5798865ebb19a8b092256bc493184d0f5613fd6 /tpls
parent61f137d2cc8ae0199c99493701023b4d862a34ad (diff)
downloadmailremind-231ad8195ca2dde0bf560a188614bcdcc26398cc.tar.gz
mailremind-231ad8195ca2dde0bf560a188614bcdcc26398cc.tar.bz2
mailremind-231ad8195ca2dde0bf560a188614bcdcc26398cc.zip
Account activation done
Diffstat (limited to 'tpls')
-rw-r--r--tpls/master.tpl4
-rw-r--r--tpls/msg.tpl9
2 files changed, 11 insertions, 2 deletions
diff --git a/tpls/master.tpl b/tpls/master.tpl
index b675598..4e2b90f 100644
--- a/tpls/master.tpl
+++ b/tpls/master.tpl
@@ -1,9 +1,9 @@
<html>
<head>
- <title>{{template "title"}} – mailremind</title>
+ <title>{{template "title" .}} – mailremind</title>
</head>
<body>
- <h1>{{template "title"}}</h1>
+ <h1>{{template "title" .}}</h1>
<div class="content">
{{template "content" .}}
diff --git a/tpls/msg.tpl b/tpls/msg.tpl
new file mode 100644
index 0000000..f7e75f3
--- /dev/null
+++ b/tpls/msg.tpl
@@ -0,0 +1,9 @@
+{{define "title"}}{{.Title}}{{end}}
+
+{{define "content"}}
+ {{if .Class}}
+ <div class="{{.Class}}">{{.Msg}}</div>
+ {{else}}
+ <div>{{.Msg}}</div>
+ {{end}}
+{{end}} \ No newline at end of file