Skip to content

Commit

Permalink
Display the whole date and time hovering over the date (#206)
Browse files Browse the repository at this point in the history
Signed-off-by: Janos SUTO <[email protected]>
  • Loading branch information
jsuto authored Nov 30, 2024
1 parent d36c74c commit 0a468c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions webui/model/search/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ private function get_meta_data($ids = array(), $sortorder = '') {
$m['shortsubject'] = make_short_string($m['subject'], MAX_CGI_FROM_SUBJ_LEN);

$m['date'] = date(DATE_TEMPLATE, $m['sent']);
$m['preview_date'] = date(DATE_PREVIEW_TEMPLATE, $m['sent']);
$m['size'] = nice_size($m['size']);

in_array($m['from'], $session->get("emails")) ? $m['yousent'] = 1 : $m['yousent'] = 0;
Expand Down
2 changes: 1 addition & 1 deletion webui/templates/search/helper.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<?php } ?>
<td id="c2_r<?php print $i; ?>" class="auto-width"><?php print ($page*$page_len) + $i + 1; ?></td>
<?php if(FULL_GUI) { ?>
<td id="c3_r<?php print $i; ?>"><?php print $message['date']; ?></td>
<td id="c3_r<?php print $i; ?>"><span title="<?php print $message['preview_date']; ?>"><?php print $message['date']; ?></span></td>
<td id="c4_r<?php print $i; ?>"><?php if($message['from'] != $message['shortfrom']) { ?><span title="<?php print $message['from']; ?>"><?php print $message['shortfrom']; ?></span><?php } else { print $message['from']; } ?></td>
<td id="c5_r<?php print $i; ?>"><?php if(count($message['to']) > 1) { ?><span title="<?php print implode("\n", $message['to']); ?>"><?php print $message['shortto']; ?>&nbsp;<i class="muted icon-group"></i></span><?php } else { print $message['shortto']; } ?></td>

Expand Down

0 comments on commit 0a468c9

Please sign in to comment.