diff options
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 | 
