Skip to content

Commit

Permalink
Restored the restore message feature for mobile view (#181)
Browse files Browse the repository at this point in the history
Signed-off-by: Janos SUTO <[email protected]>
  • Loading branch information
jsuto authored Sep 9, 2024
1 parent 1651c21 commit d5edf67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webui/templates/message/view.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div class="container-fluid text-start">
<div class="row">
<div class="col-8 text-start">
<div class="<?php if(FULL_GUI) { ?>col-8<?php } else { ?>col-12<?php } ?> text-start">

<div id="notesbox" class="row g-3 align-items-center">
<div class="col">
Expand Down Expand Up @@ -40,6 +40,10 @@
<?php } else { // full gui ?>
<a class="messagelink" href="#" onclick="Piler.view_headers(<?php print $id; ?>);"><i class="bi bi-envelope"></i>&nbsp;<?php print $text_view_headers; ?></a>
<?php if($can_restore == 1) { ?>
<a class="messagelink" href="#" onclick="Piler.restore_message(<?php print $id; ?>);"><i class="bi bi-arrow-90deg-right"></i>&nbsp;<?php print $text_restore_to_mailbox; ?></a>
<?php } ?>

<?php if ($message['verification'] == 1) { ?><i class="verified bi bi-check-circle-fill text-success"></i><?php } else { ?><i class="unverified bi bi-x-square-fill text-danger"></i><?php } ?>

<?php } ?>
Expand Down
4 changes: 4 additions & 0 deletions webui/templates/search/helper.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<table id="results" class="table table-striped mt-0">
<thead class="table-secondary">
<tr>
<?php if(FULL_GUI) { ?>
<th id="restore-header" class="auto-width"><input type="checkbox" id="bulkcheck" name="bulkcheck" value="1" <?php if(SEARCH_RESULT_CHECKBOX_CHECKED == 1) { ?>checked="checked"<?php } ?> class="restorebox" onclick="Piler.toggle_bulk_check('');" /></th>
<?php } ?>
<th id="id-header" class="auto-width">&nbsp;</th>
<?php if(FULL_GUI) { ?>
<th id="date-header">
Expand Down Expand Up @@ -54,7 +56,9 @@
<?php $i=0; foreach ($messages as $message) { ?>
<tr onmouseover="Piler.current_message_id = <?php print $message['id']; ?>; return false;" id="e_<?php print $message['id']; ?>" class="resultrow new <?php if($message['deleted'] == 1) { ?>xxx<?php } ?>" onclick="Piler.view_message_by_pos(<?php print $i; ?>);">
<?php if(FULL_GUI) { ?>
<td id="c1_r<?php print $i; ?>" class="auto-width" onclick="Piler.stop_propagation(event);"><input type="checkbox" id="r_<?php print $message['id']; ?>" name="r_<?php print $message['id']; ?>" value="iiii" <?php if(SEARCH_RESULT_CHECKBOX_CHECKED == 1) { ?>checked="checked"<?php } ?> class="restorebox" /></td>
<?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>
Expand Down

0 comments on commit d5edf67

Please sign in to comment.