From 9eae2e7754667e0f1789c8c9e1b1b6b64961fd69 Mon Sep 17 00:00:00 2001 From: Ian Kent Date: Sun, 27 Apr 2014 18:58:00 +0100 Subject: [PATCH] Web UI message search --- assets/templates/index.html | 4 +- assets/templates/layout.html | 21 ++ bindata.go | 565 ++++++++++++++++++----------------- 3 files changed, 315 insertions(+), 275 deletions(-) diff --git a/assets/templates/index.html b/assets/templates/index.html index a3cc47d..d02ce43 100644 --- a/assets/templates/index.html +++ b/assets/templates/index.html @@ -77,7 +77,7 @@ for(var i in columns) { colWidth[i] = $table.innerWidth() / 100 * columns[i]; } - + $table.find('thead tr').children().each(function(i, v) { $(v).width(colWidth[i]); }); $table.find('tbody tr:first').children().each(function(i, v) { $(v).width(colWidth[i]); }); } @@ -161,7 +161,7 @@ - + {{ message.From.Mailbox }}@{{ message.From.Domain }} diff --git a/assets/templates/layout.html b/assets/templates/layout.html index 1e36362..87aa631 100644 --- a/assets/templates/layout.html +++ b/assets/templates/layout.html @@ -47,6 +47,19 @@ margin: 0; } + /* http://stackoverflow.com/questions/18838964/add-bootstrap-glyphicon-to-input-box */ + .left-inner-addon { + position: relative; + } + .left-inner-addon input { + padding-left: 30px; + } + .left-inner-addon i { + color: #aaa; + position: absolute; + padding: 9px 10px; + pointer-events: none; + } @@ -56,6 +69,14 @@ MailHog