GUACAMOLE-5: Display share links within Guacamole menu. Persist within ManagedClient.

This commit is contained in:
Michael Jumper
2016-08-02 13:08:04 -07:00
parent e1cf5821fc
commit 73c2e68922
6 changed files with 246 additions and 14 deletions

View File

@@ -44,7 +44,7 @@
<div class="header">
<h2>{{client.name}}</h2>
<div class="share-menu" ng-show="canShareConnection()">
<guac-menu title="'CLIENT.ACTION_SHARE' | translate">
<guac-menu menu-title="'CLIENT.ACTION_SHARE' | translate">
<ul ng-repeat="sharingProfile in sharingProfiles">
<li><a ng-click="share(sharingProfile)">{{sharingProfile.name}}</a></li>
</ul>
@@ -56,6 +56,22 @@
<!-- Scrollable body -->
<div class="menu-body" guac-touch-drag="menuDrag" guac-scroll="menu.scrollState">
<!-- Connection sharing -->
<div class="menu-section" id="share-links" ng-show="isShared()">
<div class="content">
<h3>{{'CLIENT.INFO_CONNECTION_SHARED' | translate}}</h3>
<p class="description"
translate="CLIENT.HELP_SHARE_LINK"
translate-values="{LINKS : getShareLinkCount()}"></p>
<table>
<tr ng-repeat="link in client.shareLinks | orderBy: name">
<th>{{link.name}}</th>
<td><a href="{{link.href}}" target="_blank">{{link.href}}</a></td>
</tr>
</table>
</div>
</div>
<!-- Clipboard -->
<div class="menu-section" id="clipboard-settings">
<h3>{{'CLIENT.SECTION_HEADER_CLIPBOARD' | translate}}</h3>