From fbf5bc8b2cc44bdbd1edd8b397a86652d5d016ff Mon Sep 17 00:00:00 2001 From: SJ Date: Sat, 29 Jun 2013 17:03:23 +0200 Subject: [PATCH] added blue background for messages you sent --- webui/index.php | 1 - webui/model/search/search.php | 2 ++ webui/view/theme/orig/stylesheet/style-orig.css | 1 + webui/view/theme/orig/templates/search/helper.tpl | 6 +++--- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/webui/index.php b/webui/index.php index f6085296..1d2a0c5a 100644 --- a/webui/index.php +++ b/webui/index.php @@ -15,7 +15,6 @@ require_once("config.php"); require(DIR_SYSTEM . "/startup.php"); - $request = new Request(); Registry::set("request", $request); diff --git a/webui/model/search/search.php b/webui/model/search/search.php index 9cabb827..4a7619e1 100644 --- a/webui/model/search/search.php +++ b/webui/model/search/search.php @@ -513,6 +513,8 @@ class ModelSearchSearch extends Model { $m['date'] = date(SEARCH_HIT_DATE_FORMAT, $m['sent']); $m['size'] = nice_size($m['size']); + in_array($m['from'], $_SESSION['emails']) ? $m['yousent'] = 1 : $m['yousent'] = 0; + /* * verifying 20 messages takes some time, still it's useful */ diff --git a/webui/view/theme/orig/stylesheet/style-orig.css b/webui/view/theme/orig/stylesheet/style-orig.css index 55411212..154e2571 100644 --- a/webui/view/theme/orig/stylesheet/style-orig.css +++ b/webui/view/theme/orig/stylesheet/style-orig.css @@ -73,6 +73,7 @@ .resultrow.new a.spam { color: #aaa; } .resultrow.selected { border: 2px solid black; } .resultrow.spam { color: #aaa; } + .resultrow.sent { background: lightblue; } .tcell { display: table-cell; } diff --git a/webui/view/theme/orig/templates/search/helper.tpl b/webui/view/theme/orig/templates/search/helper.tpl index ca7213aa..4afd9a18 100644 --- a/webui/view/theme/orig/templates/search/helper.tpl +++ b/webui/view/theme/orig/templates/search/helper.tpl @@ -4,7 +4,7 @@
0) { ?> - +
@@ -45,13 +45,13 @@ - + - +
checked="checked" /> . title="" onclick="Piler.view_message_by_pos();"> [+]class="spam" title="" onclick="Piler.view_message_by_pos();"> [+] 0) { ?>