mirror of
https://github.com/bitwarden/web
synced 2025-12-31 07:33:39 +00:00
61 lines
3.1 KiB
HTML
61 lines
3.1 KiB
HTML
<section class="content-header">
|
|
<h1>
|
|
My Vault
|
|
<small>safe and secure</small>
|
|
</h1>
|
|
</section>
|
|
<section class="content">
|
|
<div ng-show="loadingFolders && !folders.length">
|
|
<p>Loading...</p>
|
|
</div>
|
|
<div class="box" ng-repeat="folder in folders | orderBy: folderSort" ng-show="folders.length">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title"><i class="fa fa-folder-open"></i> {{folder.name}}</h3>
|
|
<div class="box-tools pull-right">
|
|
<button type="button" class="btn btn-box-tool" ng-click="addSite(folder)" uib-tooltip="Add Site">
|
|
<i class="fa fa-plus"></i>
|
|
</button>
|
|
<button type="button" class="btn btn-box-tool" ng-click="deleteFolder(folder)" ng-show="canDeleteFolder(folder)" uib-tooltip="Delete">
|
|
<i class="fa fa-trash"></i>
|
|
</button>
|
|
<button type="button" class="btn btn-box-tool" ng-click="editFolder(folder)" ng-show="folder.id" uib-tooltip="Edit">
|
|
<i class="fa fa-pencil"></i>
|
|
</button>
|
|
<button type="button" class="btn btn-box-tool" data-widget="collapse" uib-tooltip="Collapse">
|
|
<i class="fa fa-minus"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="box-body" ng-class="{'no-padding': folderSites.length}">
|
|
<div ng-show="loadingSites && !folderSites.length">
|
|
<p>Loading sites...</p>
|
|
</div>
|
|
<div ng-show="!loadingSites && !folderSites.length">
|
|
<p>No sites in this folder.</p>
|
|
<button type="button" ng-click="addSite(folder)" class="btn btn-default btn-flat">Add a Site</button>
|
|
</div>
|
|
<div class="table-responsive" ng-show="folderSites.length">
|
|
<table class="table table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 75px; min-width: 75px;"></th>
|
|
<th>Site</th>
|
|
<th style="width: 300px;">Username</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-repeat="site in folderSites = (sites | filter: { folderId: folder.id } | filter: (main.searchVaultText || '') | orderBy: ['name', 'username'])">
|
|
<td>
|
|
<button type="button" ng-click="deleteSite(site)" class="btn btn-link btn-table" uib-tooltip="Delete"><i class="fa fa-lg fa-trash"></i></button>
|
|
<button type="button" ng-click="editSite(site)" class="btn btn-link btn-table" uib-tooltip="View/Edit"><i class="fa fa-lg fa-pencil"></i></button>
|
|
</td>
|
|
<td>{{site.name}} <i class="fa fa-star text-muted" uib-tooltip="Favorite" ng-show="site.favorite"></i></td>
|
|
<td>{{site.username}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|