Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit bde3b59e authored by echicken's avatar echicken 🐔
Browse files

No functional change.

parent bef27254
......@@ -11,33 +11,33 @@
}
?>
<?xjs function writeMessage(header) { ?>
<li id="li-<?xjs write(header.number); ?>" class="list-group-item mail striped <?xjs write(header.attr&MSG_READ ? 'read' : 'unread'); ?>">
<? function writeMessage(header) { ?>
<li id="li-<? write(header.number); ?>" class="list-group-item mail striped <? write(header.attr&MSG_READ ? 'read' : 'unread'); ?>">
<div class="row">
<div class="col-sm-1">
<div class="checkbox">
<label class="checkbox-inline">
<input id="check-<?xjs write(header.number); ?>" type="checkbox" class="mail-select">
<input id="check-<? write(header.number); ?>" type="checkbox" class="mail-select">
</label>
</div>
</div>
<div class="col-sm-11" style="cursor:pointer;" onclick="getMailBody(<?xjs write(header.number); ?>)">
<?xjs write(_mail_tab == 'sent' ? locale.strings.page_mail.label_message_to : locale.strings.page_mail.label_message_from); ?>:
<strong><?xjs write(_mail_tab == 'sent' ? header.to : header.from); ?></strong>
<?xjs if (header.from_net_type != NET_NONE) { ?>
&lt;<?xjs write(_mail_tab == 'sent' ? (header.to + '@' + header.to_net_addr) : (header.from + '@' + header.from_net_addr)); ?>&gt;
<?xjs } ?>
<?xjs write(locale.strings.page_mail.label_message_date); ?>
<?xjs write((new Date(header.when_written_time * 1000)).toLocaleString()); ?>
<div class="col-sm-11" style="cursor:pointer;" onclick="getMailBody(<? write(header.number); ?>)">
<? write(_mail_tab == 'sent' ? locale.strings.page_mail.label_message_to : locale.strings.page_mail.label_message_from); ?>:
<strong><? write(_mail_tab == 'sent' ? header.to : header.from); ?></strong>
<? if (header.from_net_type != NET_NONE) { ?>
&lt;<? write(_mail_tab == 'sent' ? (header.to + '@' + header.to_net_addr) : (header.from + '@' + header.from_net_addr)); ?>&gt;
<? } ?>
<? write(locale.strings.page_mail.label_message_date); ?>
<? write((new Date(header.when_written_time * 1000)).toLocaleString()); ?>
<p>
<?xjs write(locale.strings.page_mail.label_message_subject); ?>:
<strong><?xjs write(header.subject); ?></strong>
<? write(locale.strings.page_mail.label_message_subject); ?>:
<strong><? write(header.subject); ?></strong>
</p>
</div>
</div>
<div class="message" id="message-<?xjs write(header.number); ?>" hidden></div>
<div class="message" id="message-<? write(header.number); ?>" hidden></div>
</li>
<?xjs } ?>
<? } ?>
<?xjs
function _read_unread(tab) {
......@@ -47,8 +47,7 @@
} else {
write(_mail[tab].unread);
}
write('/' + _mail[tab].read);
write(')');
write('/' + _mail[tab].read + ')');
}
?>
......@@ -74,51 +73,51 @@
</script>
<?xjs if (typeof http_request.query.notice != "undefined") { ?>
<? if (typeof http_request.query.notice != "undefined") { ?>
<div id="noticebox" class="alert alert-warning">
<?xjs write(http_request.query.notice[0]); ?>
<? write(http_request.query.notice[0]); ?>
</div>
<script type="text/javascript">
$("#noticebox").fadeOut(3000, function () {
$("#noticebox").remove();
});
</script>
<?xjs } ?>
<? } ?>
<?xjs if (!(user.security.restrictions&UFLAG_E) && !(user.security.restrictions&UFLAG_M)) { ?>
<button class="btn btn-default icon" aria-label="<?xjs write(locale.strings.page_mail.button_post_new); ?>" title="<?xjs write(locale.strings.page_mail.button_post_new); ?>" onclick="addNew('mail')">
<? if (!(user.security.restrictions&UFLAG_E) && !(user.security.restrictions&UFLAG_M)) { ?>
<button class="btn btn-default icon" aria-label="<? write(locale.strings.page_mail.button_post_new); ?>" title="<? write(locale.strings.page_mail.button_post_new); ?>" onclick="addNew('mail')">
<span class="glyphicon glyphicon-pencil"></span>
</button>
<button class="btn btn-default icon" aria-label="<?xjs write(locale.strings.page_mail.button_select_all); ?>" title="<?xjs write(locale.strings.page_mail.button_select_all); ?>" onclick="selectAllMail()">
<button class="btn btn-default icon" aria-label="<? write(locale.strings.page_mail.button_select_all); ?>" title="<? write(locale.strings.page_mail.button_select_all); ?>" onclick="selectAllMail()">
<span class="glyphicon glyphicon-check"></span>
</button>
<button class="btn btn-default icon" aria-label="<?xjs write(locale.strings.page_mail.button_delete_selected); ?>" title="<?xjs write(locale.strings.page_mail.button_delete_selected); ?>" onclick="deleteSelectedMail()">
<button class="btn btn-default icon" aria-label="<? write(locale.strings.page_mail.button_delete_selected); ?>" title="<? write(locale.strings.page_mail.button_delete_selected); ?>" onclick="deleteSelectedMail()">
<span class="glyphicon glyphicon-trash"></span>
</button>
<?xjs } ?>
<? } ?>
<ul class="nav nav-tabs">
<li role="presentation" class="<?xjs write(_active_tab('inbox')); ?>">
<a href="./?page=<?xjs write(page); ?>&amp;tab=inbox">
<?xjs write(locale.strings.page_mail.label_tab_inbox); ?>
<?xjs _read_unread('inbox'); ?>
<li role="presentation" class="<? write(_active_tab('inbox')); ?>">
<a href="./?page=<? write(page); ?>&amp;tab=inbox">
<? write(locale.strings.page_mail.label_tab_inbox); ?>
<? _read_unread('inbox'); ?>
</a>
</li>
<li role="presentation" class="<?xjs write(_active_tab('spam')); ?>">
<a href="./?page=<?xjs write(page); ?>&amp;tab=spam">
<li role="presentation" class="<? write(_active_tab('spam')); ?>">
<a href="./?page=<? write(page); ?>&amp;tab=spam">
Spam
<?xjs _read_unread('spam'); ?>
<? _read_unread('spam'); ?>
</a>
</li>
<li role="presentation" class="<?xjs write(_active_tab('sent')); ?>">
<a href="./?page=<?xjs write(page); ?>&amp;tab=sent">
<?xjs write(locale.strings.page_mail.label_tab_sent); ?>
<?xjs _read_unread('sent'); ?>
<li role="presentation" class="<? write(_active_tab('sent')); ?>">
<a href="./?page=<? write(page); ?>&amp;tab=sent">
<? write(locale.strings.page_mail.label_tab_sent); ?>
<? _read_unread('sent'); ?>
</a>
</li>
</ul>
<br>
<ul id="forum-list-container" class="list-group">
<?xjs _mail.headers.forEach(writeMessage); ?>
<? _mail.headers.forEach(writeMessage); ?>
</ul>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment