1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2026-01-10 13:15:56 +00:00

Warning: carnage. Hacking in a CSS template.

This commit is contained in:
James Hillyerd
2012-10-10 22:46:59 -07:00
parent 555332c98e
commit 31395891a4
17 changed files with 332 additions and 40 deletions

View File

@@ -1,13 +1,16 @@
{{set "title" "Inbucket" .}}
{{template "header.html" .}}
{{template "menu.html" .}}
<h1>Inbucket</h1>
<div id="colTwo">
<h1>Inbucket</h1>
<form action="/mailbox" method="GET">
<b>Enter a username to view their mailbox</b>
<input type="text" name="name">
<input type=submit value="Go">
</form>
<form action="/mailbox" method="GET">
<b>Enter a username to view their mailbox</b>
<input type="text" name="name">
<input type=submit value="Go">
</form>
</div>
{{template "footer.html" .}}

View File

@@ -1,22 +1,27 @@
{{template "header.html" .}}
<h1>Your Index Is Ready</h1>
{{$name := .name}}
<p>{{.name}} inbox</p>
<div id="colOne">
<div id="logo">
<h1><a href="#">inbucket</a></h1>
<h2>mail for {{.name}}</h2>
</div>
{{if .messages}}
<ul>
{{range .messages}}
<li>
<a href="/mailbox/show/{{$name}}/{{.Id}}">{{.Subject}}</a>
from {{.From}}
({{.Date}})
</li>
{{end}}
</ul>
{{else}}
<p>No messages!</p>
{{end}}
{{range .messages}}
<div class="box listEntry">
<div class="subject">{{/*<a href="/mailbox/show/{{$name}}/{{.Id}}">*/}}{{.Subject}}</div>
<div class="from">{{.From}}</div>
<div class="date">{{.Date}}</div>
</div>
{{else}}
<div class="box">
No messages!
</div>
{{end}}
</div>
<div id="colTwo">
<p>Select a message at left, or enter a different username into the box on upper right.</p>
</div>
{{template "footer.html" .}}

View File

@@ -1,2 +1,8 @@
</body>
</div>
<div id="footer">
<p>Inbucket is an open source project hosted at
<a href="http://github.com/jhillyerd/inbucket/">github</a>.
Design by <a href="http://www.freecsstemplates.org/">FCT</a>.</p>
</div>
</body>
</html>

View File

@@ -1,17 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>{{.title}}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" media="screen" href="/public/stylesheets/main.css">
<link rel="shortcut icon" type="image/png" href="/public/images/favicon.png">
<script src="/public/javascripts/jquery-1.5.2.min.js" type="text/javascript" charset="utf-8"></script>
{{range .moreStyles}}
<link rel="stylesheet" type="text/css" href="/public/{{.}}">
{{end}}
{{range .moreScripts}}
<script src="/public/{{.}}" type="text/javascript" charset="utf-8"></script>
{{end}}
</head>
<body>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{.title}}</title>
<link href="/public/stylesheets/main.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" type="image/png" href="/public/images/favicon.png">
<script src="/public/javascripts/jquery-1.5.2.min.js" type="text/javascript" charset="utf-8"></script>
{{range .moreStyles}}
<link rel="stylesheet" type="text/css" href="/public/{{.}}">
{{end}}
{{range .moreScripts}}
<script src="/public/{{.}}" type="text/javascript" charset="utf-8"></script>
{{end}}
</head>
<body>
<div id="header">
<ul id="menu">
<li><a href="/" accesskey="1" title="">Home</a></li>
<li><a href="/about" accesskey="2" title="">About</a></li>
</ul>
<form id="search" action="/mailbox" method="GET">
<fieldset>
<input name="name" type="text" id="input1" />
<input name="submit" type="submit" id="input2" value="Go" />
</fieldset>
</form>
</div>
<div id="content">

6
app/views/menu.html Normal file
View File

@@ -0,0 +1,6 @@
<div id="colOne">
<div id="logo">
<h1><a href="#">inbucket</a></h1>
<h2>email testing service</h2>
</div>
</div>