diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-08-29 22:42:14 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-08-29 22:42:14 +0200 |
commit | 231ad8195ca2dde0bf560a188614bcdcc26398cc (patch) | |
tree | c5798865ebb19a8b092256bc493184d0f5613fd6 /tpls | |
parent | 61f137d2cc8ae0199c99493701023b4d862a34ad (diff) | |
download | mailremind-231ad8195ca2dde0bf560a188614bcdcc26398cc.tar.gz mailremind-231ad8195ca2dde0bf560a188614bcdcc26398cc.tar.bz2 mailremind-231ad8195ca2dde0bf560a188614bcdcc26398cc.zip |
Account activation done
Diffstat (limited to 'tpls')
-rw-r--r-- | tpls/master.tpl | 4 | ||||
-rw-r--r-- | tpls/msg.tpl | 9 |
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 |