diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-09-01 13:58:22 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-09-01 13:58:22 +0200 |
commit | 0829fda06733674abdc340ec17c0fbfb4fd778ae (patch) | |
tree | 13bb6ba85f89b59d9bd1abbbb9757010213e4f79 /tpls | |
parent | ef002c79acbade33272cf9b524ce561d990df2bf (diff) | |
download | mailremind-0829fda06733674abdc340ec17c0fbfb4fd778ae.tar.gz mailremind-0829fda06733674abdc340ec17c0fbfb4fd778ae.tar.bz2 mailremind-0829fda06733674abdc340ec17c0fbfb4fd778ae.zip |
Began designing the interface.
* A simple stylesheet added
* Templates modified
Diffstat (limited to 'tpls')
-rw-r--r-- | tpls/jobs.tpl | 3 | ||||
-rw-r--r-- | tpls/master.tpl | 31 |
2 files changed, 29 insertions, 5 deletions
diff --git a/tpls/jobs.tpl b/tpls/jobs.tpl index 9408e48..60d17f4 100644 --- a/tpls/jobs.tpl +++ b/tpls/jobs.tpl @@ -26,6 +26,9 @@ <td><a href="/jobedit/{{.ID}}">{{.Subject}}</a></td> <td>{{.Excerpt}}</td> <td>{{.Next}}</td> + </tr> + {{else}}<tr> + <td colspan="4" class="emptytab">No jobs found</td> </tr>{{end}} </tbody> </table> diff --git a/tpls/master.tpl b/tpls/master.tpl index 4e2b90f..54098e9 100644 --- a/tpls/master.tpl +++ b/tpls/master.tpl @@ -1,12 +1,33 @@ <html> <head> - <title>{{template "title" .}} – mailremind</title> + <title>{{template "title" .Data}} – mailremind</title> + <link rel="stylesheet" type="text/css" href="/static/style.css" /> </head> <body> - <h1>{{template "title" .}}</h1> - - <div class="content"> - {{template "content" .}} + <div id="main"> + <div id="nav"> + <a href="/" class="apptitle">mailremind</a> + <ul> + {{if .Mail}} + <li><a href="/jobedit">new job</a></li> + <li><a href="/jobs">list jobs</a></li> + <li><a href="/logout">logout</a></li> + {{else}} + <li><a href="/register">register</a></li> + <li><a href="/login">login</a></li> + {{end}} + </ul> + </div> + + <div id="content"> + <h1>{{template "title" .Data}}</h1> + {{template "content" .Data}} + </div> + + <div id="footer"> + © 2013 Bla bla....<br /> + Foo! + </div> </div> </body> </html>
\ No newline at end of file |