mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
Replace bootstrap .divider with cleaner .dividerbar which also reduces knockout calls
This commit is contained in:
parent
c2a5d0fda5
commit
527694f361
10 changed files with 30 additions and 83 deletions
|
|
@ -36,14 +36,9 @@
|
|||
<span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu g-ui-menu" role="menu" aria-labelledby="move-dropdown-id" role="menu" data-bind="foreach: folderMenuForMove">
|
||||
<!-- ko if: seporator -->
|
||||
<li class="divider" role="presentation" data-bind="visible: seporator"></li>
|
||||
<!-- /ko -->
|
||||
<!-- ko if: !seporator -->
|
||||
<li class="e-item" role="presentation" data-bind="css: { 'disabled': disabled }, click: function (mdata, oEvent) { if (!disabled) $root.moveSelectedMessagesToFolder(id, oEvent && !!oEvent.ctrlKey); }">
|
||||
<a class="e-link menuitem" href="#" tabindex="-1" data-bind="text: name"></a>
|
||||
</li>
|
||||
<!-- /ko -->
|
||||
<li class="e-item" role="presentation" data-bind="css: { 'disabled': disabled, 'dividerbar': dividerbar }, click: function (mdata, oEvent) { if (!disabled) $root.moveSelectedMessagesToFolder(id, oEvent && !!oEvent.ctrlKey); }">
|
||||
<a class="e-link menuitem" href="#" tabindex="-1" data-bind="text: name"></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /ko -->
|
||||
|
|
@ -120,16 +115,14 @@
|
|||
</a>
|
||||
</li>
|
||||
</div>
|
||||
<li class="divider" role="presentation" data-bind="visible: allowComposer && allowMessageListActions"></li>
|
||||
<li class="e-item" role="presentation" data-bind="visible: allowComposer, command: multyForwardCommand">
|
||||
<li class="e-item dividerbar" role="presentation" data-bind="visible: allowComposer, command: multyForwardCommand">
|
||||
<a class="e-link menuitem" href="#" tabindex="-1">
|
||||
<i class="icon-reply-all"></i>
|
||||
|
||||
<span class="i18n" data-i18n="MESSAGE_LIST/BUTTON_MULTY_FORWARD"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider" role="presentation" data-bind="visible: allowDangerousActions"></li>
|
||||
<li class="e-item" role="presentation" data-bind="visible: allowDangerousActions, command: deleteWithoutMoveCommand">
|
||||
<li class="e-item dividerbar" role="presentation" data-bind="visible: allowDangerousActions, command: deleteWithoutMoveCommand">
|
||||
<a class="e-link menuitem" href="#" tabindex="-1">
|
||||
<i class="icon-trash"></i>
|
||||
|
||||
|
|
|
|||
|
|
@ -121,8 +121,7 @@
|
|||
</a>
|
||||
</li>
|
||||
</div>
|
||||
<div data-bind="visible: allowMessageListActions && usePreviewPane()">
|
||||
<li class="divider" role="presentation" data-bind="visible: allowComposer && !isDraftFolder()"></li>
|
||||
<div data-bind="visible: allowMessageListActions && usePreviewPane()" class="dividerbar">
|
||||
<li class="e-item" role="presentation" data-bind="visible: !isDraftFolder() && !isArchiveFolder() && !isArchiveDisabled()">
|
||||
<a target="_blank" class="e-link menuitem" href="#" tabindex="-1" data-bind="command: archiveCommand">
|
||||
<i class="icon-archive"></i>
|
||||
|
|
@ -159,9 +158,7 @@
|
|||
</a>
|
||||
</li>
|
||||
</div>
|
||||
<div data-bind="visible: allowMessageActions">
|
||||
<li class="divider" role="presentation"
|
||||
data-bind="visible: (allowComposer && !isDraftFolder()) || (allowMessageListActions && usePreviewPane())"></li>
|
||||
<div data-bind="visible: allowMessageActions" class="dividerbar">
|
||||
<li class="e-item" role="presentation">
|
||||
<a target="_blank" class="e-link menuitem" href="#" tabindex="-1" data-bind="click: function () { if (message()) { message().printMessage(); }} ">
|
||||
<i class="icon-print"></i>
|
||||
|
|
@ -176,8 +173,7 @@
|
|||
<span class="i18n" data-i18n="MESSAGE/BUTTON_IN_NEW_WINDOW"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider" role="presentation"></li>
|
||||
<li class="e-item" role="presentation">
|
||||
<li class="e-item dividerbar" role="presentation">
|
||||
<a target="_blank" class="e-link menuitem" href="#" tabindex="-1" data-bind="link: viewViewLink()">
|
||||
<i class="icon-file-code"></i>
|
||||
|
||||
|
|
|
|||
|
|
@ -71,8 +71,7 @@
|
|||
<span class="i18n" data-i18n="COMPOSE/BUTTON_MARK_AS_IMPORTANT"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider" data-bind="visible: capaOpenPGP"></li>
|
||||
<li class="e-item" data-bind="visible: capaOpenPGP, click: openOpenPgpPopup, css: {'disabled': isHtml()}">
|
||||
<li class="e-item dividerbar" data-bind="visible: capaOpenPGP, click: openOpenPgpPopup, css: {'disabled': isHtml()}">
|
||||
<a class="e-link">
|
||||
<i class="icon-key"></i>
|
||||
|
||||
|
|
|
|||
|
|
@ -38,8 +38,7 @@
|
|||
<span class="i18n" data-i18n="CONTACTS/BUTTON_IMPORT"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider hide-mobile" role="presentation"></li>
|
||||
<li class="e-item hide-mobile" role="presentation">
|
||||
<li class="e-item dividerbar hide-mobile" role="presentation">
|
||||
<a class="e-link menuitem" href="#" tabindex="-1" data-bind="click: exportCsv">
|
||||
<i data-bind="css: {'icon-export': !contacts.exportingCsv(), 'icon-spinner animated': contacts.exportingCsv}"></i>
|
||||
|
||||
|
|
@ -53,8 +52,7 @@
|
|||
<span class="i18n" data-i18n="CONTACTS/BUTTON_EXPORT_VCARD"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider" role="presentation" data-bind="visible: enableContactsSync() && allowContactsSync()"></li>
|
||||
<li class="e-item" role="presentation" data-bind="visible: enableContactsSync() && allowContactsSync()">
|
||||
<li class="e-item dividerbar" role="presentation" data-bind="visible: enableContactsSync() && allowContactsSync()">
|
||||
<a class="e-link menuitem" href="#" tabindex="-1" data-bind="command: syncCommand">
|
||||
<i data-bind="css: {'icon-sync': !contacts.syncing(), 'icon-spinner animated': contacts.syncing}"></i>
|
||||
|
||||
|
|
@ -138,8 +136,7 @@
|
|||
<span class="i18n" data-i18n="CONTACTS/ADD_MENU_URL"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider" role="presentation"></li>
|
||||
<li class="e-item" role="presentation">
|
||||
<li class="e-item dividerbar" role="presentation">
|
||||
<a class="e-link menuitem" href="#" tabindex="-1" data-bind="click: addNewNickname">
|
||||
<i class="icon-none"></i>
|
||||
|
||||
|
|
|
|||
|
|
@ -32,8 +32,7 @@
|
|||
<!-- /ko -->
|
||||
|
||||
<!-- ko if: capaAdditionalAccounts -->
|
||||
<li class="divider" role="presentation"></li>
|
||||
<li class="e-item" role="presentation">
|
||||
<li class="e-item dividerbar" role="presentation">
|
||||
<a class="e-link menuitem" href="#" tabindex="-1" data-bind="click: addAccountClick">
|
||||
<i class="icon-plus"></i>
|
||||
|
||||
|
|
@ -55,15 +54,14 @@
|
|||
<span class="i18n" data-i18n="TOP_TOOLBAR/BUTTON_HELP"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider" role="presentation" data-bind="visible: allowSettings || allowHelp"></li>
|
||||
<li class="e-item" role="presentation" data-bind="visible: mobile">
|
||||
<li class="e-item dividerbar" role="presentation" data-bind="visible: mobile">
|
||||
<a class="e-link menuitem" href="./?/DesktopVersion/" tabindex="-1">
|
||||
<i class="icon-laptop"></i>
|
||||
|
||||
<span class="i18n" data-i18n="MOBILE/BUTTON_DESKTOP_VERSION"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="e-item" role="presentation" data-bind="visible: !mobile">
|
||||
<li class="e-item dividerbar" role="presentation" data-bind="visible: !mobile">
|
||||
<a class="e-link menuitem" href="./?/MobileVersion/" tabindex="-1">
|
||||
<i class="icon-mobile"></i>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue