mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
<!-- ko foreach --> to: data-bind=""
This commit is contained in:
parent
14a9f00c6e
commit
ffb2f64170
4 changed files with 23 additions and 40 deletions
|
|
@ -31,14 +31,12 @@
|
||||||
data-bind="text: currentIdentityView, dropdownCloser: true, css: {'multiply': 1 < identitiesOptions().length }">
|
data-bind="text: currentIdentityView, dropdownCloser: true, css: {'multiply': 1 < identitiesOptions().length }">
|
||||||
</a>
|
</a>
|
||||||
<!-- ko if: 1 < identitiesOptions().length -->
|
<!-- ko if: 1 < identitiesOptions().length -->
|
||||||
<ul class="dropdown-menu g-ui-menu" role="menu" aria-labelledby="identity-label-id">
|
<ul class="dropdown-menu g-ui-menu" role="menu" aria-labelledby="identity-label-id" data-bind="foreach: identitiesOptions">
|
||||||
<!-- ko foreach: identitiesOptions -->
|
|
||||||
<li class="e-item" role="presentation">
|
<li class="e-item" role="presentation">
|
||||||
<a class="e-link menuitem" tabindex="-1" href="javascript:void(0);" data-bind="click: function (oIdentity) { $root.selectIdentity(oIdentity); return true; }">
|
<a class="e-link menuitem" tabindex="-1" href="javascript:void(0);" data-bind="click: function (oIdentity) { $root.selectIdentity(oIdentity); return true; }">
|
||||||
<span data-bind="text: optText"></span>
|
<span data-bind="text: optText"></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<!-- /ko -->
|
|
||||||
</ul>
|
</ul>
|
||||||
<!-- /ko -->
|
<!-- /ko -->
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -48,26 +48,22 @@
|
||||||
}"></div>
|
}"></div>
|
||||||
|
|
||||||
<div class="key-list" data-bind="visible: encrypt">
|
<div class="key-list" data-bind="visible: encrypt">
|
||||||
<div class="key-list-wrp empty" data-bind="visible: !encryptKeys() || encryptKeys().length === 0">
|
<div class="key-list-wrp empty" data-bind="visible: encryptKeys().length === 0">
|
||||||
No public keys selected
|
No public keys selected
|
||||||
</div>
|
</div>
|
||||||
<div class="key-list-wrp" data-bind="visible: encryptKeys() && encryptKeys().length > 0">
|
<div class="key-list-wrp" data-bind="visible: encryptKeys().length > 0, foreach: encryptKeys">
|
||||||
<!-- ko foreach: encryptKeys -->
|
|
||||||
<div class="key-list__item">
|
<div class="key-list__item">
|
||||||
<div class="key-list__item-hash" data-bind="visible: !empty">
|
<div class="key-list__item-hash" data-bind="visible: !empty">
|
||||||
(<span data-bind="text: hash"></span>)
|
(<span data-bind="text: hash"></span>)
|
||||||
</div>
|
</div>
|
||||||
<div class="key-list__item-names" data-bind="css: {'empty': empty}">
|
<div class="key-list__item-names" data-bind="css: {'empty': empty}, foreach: users">
|
||||||
<!-- ko foreach: users -->
|
|
||||||
<div class="key-list__item-name" data-bind="text: $data"></div>
|
<div class="key-list__item-name" data-bind="text: $data"></div>
|
||||||
<!-- /ko -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="key-list__item-error" data-bind="visible: empty">
|
<div class="key-list__item-error" data-bind="visible: empty">
|
||||||
(Public key not found)
|
(Public key not found)
|
||||||
</div>
|
</div>
|
||||||
<div class="key-list__item-delete fontastic" data-bind="click: removable() ? $parent.deletePublickKey : null, css: {'disabled': !removable()}">🗑</div>
|
<div class="key-list__item-delete fontastic" data-bind="click: removable() ? $parent.deletePublickKey : null, css: {'disabled': !removable()}">🗑</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /ko -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -33,15 +33,12 @@
|
||||||
<col style="width: 1%" />
|
<col style="width: 1%" />
|
||||||
<col style="width: 1%" />
|
<col style="width: 1%" />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody data-bind="foreach: openpgpkeysPrivate">
|
||||||
<!-- ko foreach: openpgpkeysPrivate -->
|
|
||||||
<tr class="open-pgp-key-item">
|
<tr class="open-pgp-key-item">
|
||||||
<td>
|
<td>
|
||||||
<span class="open-pgp-key-img fontastic" data-i18n="[title]SETTINGS_OPEN_PGP/TITLE_PRIVATE">🔒</span>
|
<span class="open-pgp-key-img fontastic" data-i18n="[title]SETTINGS_OPEN_PGP/TITLE_PRIVATE">🔒</span>
|
||||||
<span class="open-pgp-key-user">
|
<span class="open-pgp-key-user" data-bind="foreach: users">
|
||||||
<!-- ko foreach: users -->
|
|
||||||
<div class="open-pgp-key-user-address" data-bind="text: $data"></div>
|
<div class="open-pgp-key-user-address" data-bind="text: $data"></div>
|
||||||
<!-- /ko -->
|
|
||||||
</span>
|
</span>
|
||||||
<a class="btn btn-small btn-small-small btn-danger pull-right button-confirm-delete button-delete-transitions" data-bind="css: {'delete-access': deleteAccess()}, click: function(openPgpKey) { $root.deleteOpenPgpKey(openPgpKey); }"
|
<a class="btn btn-small btn-small-small btn-danger pull-right button-confirm-delete button-delete-transitions" data-bind="css: {'delete-access': deleteAccess()}, click: function(openPgpKey) { $root.deleteOpenPgpKey(openPgpKey); }"
|
||||||
data-i18n="GLOBAL/ARE_YOU_SURE"></a>
|
data-i18n="GLOBAL/ARE_YOU_SURE"></a>
|
||||||
|
|
@ -53,17 +50,14 @@
|
||||||
<span class="view-open-pgp-key fontastic" data-bind="click: function (openPgpKey) { $root.viewOpenPgpKey(openPgpKey); }">👁</span>
|
<span class="view-open-pgp-key fontastic" data-bind="click: function (openPgpKey) { $root.viewOpenPgpKey(openPgpKey); }">👁</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- /ko -->
|
</tbody><tbody data-bind="foreach: openpgpkeysPublic">
|
||||||
<!-- ko foreach: openpgpkeysPublic -->
|
|
||||||
<tr class="open-pgp-key-item">
|
<tr class="open-pgp-key-item">
|
||||||
<td>
|
<td>
|
||||||
<span class="open-pgp-key-img fontastic" data-i18n="[title]SETTINGS_OPEN_PGP/TITLE_PUBLIC">🔑</span>
|
<span class="open-pgp-key-img fontastic" data-i18n="[title]SETTINGS_OPEN_PGP/TITLE_PUBLIC">🔑</span>
|
||||||
<span class="open-pgp-key-user">
|
<span class="open-pgp-key-user" data-bind="foreach: users">
|
||||||
<!-- ko foreach: users -->
|
|
||||||
<div class="open-pgp-key-user-address">
|
<div class="open-pgp-key-user-address">
|
||||||
<span data-bind="text: $data"></span> (<span class="open-pgp-key-id" data-bind="text: $parent.id"></span>)
|
<span data-bind="text: $data"></span> (<span class="open-pgp-key-id" data-bind="text: $parent.id"></span>)
|
||||||
</div>
|
</div>
|
||||||
<!-- /ko -->
|
|
||||||
</span>
|
</span>
|
||||||
<a class="btn btn-small btn-small-small btn-danger pull-right button-confirm-delete button-delete-transitions" data-bind="css: {'delete-access': deleteAccess()}, click: function(oOpenPGP) { $root.deleteOpenPgpKey(oOpenPGP); }"
|
<a class="btn btn-small btn-small-small btn-danger pull-right button-confirm-delete button-delete-transitions" data-bind="css: {'delete-access': deleteAccess()}, click: function(oOpenPGP) { $root.deleteOpenPgpKey(oOpenPGP); }"
|
||||||
data-i18n="GLOBAL/ARE_YOU_SURE"></a>
|
data-i18n="GLOBAL/ARE_YOU_SURE"></a>
|
||||||
|
|
@ -75,7 +69,6 @@
|
||||||
<span class="view-open-pgp-key fontastic" data-bind="click: function (openPgpKey) { $root.viewOpenPgpKey(openPgpKey); }">👁</span>
|
<span class="view-open-pgp-key fontastic" data-bind="click: function (openPgpKey) { $root.viewOpenPgpKey(openPgpKey); }">👁</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- /ko -->
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
4
vendors/bootstrap/less/tables.less
vendored
4
vendors/bootstrap/less/tables.less
vendored
|
|
@ -43,10 +43,6 @@
|
||||||
thead:first-child tr:first-child td {
|
thead:first-child tr:first-child td {
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
}
|
}
|
||||||
// Account for multiple tbody instances
|
|
||||||
tbody + tbody {
|
|
||||||
border-top: 2px solid @tableBorder;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue