2019-05-20 10:39:48 +01:00
|
|
|
<div class="navbar">
|
|
|
|
<div class="container">
|
2019-05-29 12:49:20 +01:00
|
|
|
{{#unless hideNavigation}}
|
|
|
|
<div class="options">
|
2019-01-04 16:33:30 +00:00
|
|
|
{{#link-to "folders" class=(if (eq selectedItem "spaces") "option selected" "option")}}
|
2022-01-11 12:40:52 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.Grid}} title="Spaces" tabindex="0" role="button" />
|
2019-01-04 16:33:30 +00:00
|
|
|
{{/link-to}}
|
|
|
|
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
|
|
|
|
{{#if session.viewDashboard}}
|
|
|
|
{{#link-to "action" class=(if (eq selectedItem "actions") "option selected" "option")}}
|
2022-01-11 12:40:52 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.ListBullet}} title="Actions" tabindex="0" role="button" />
|
2019-01-04 16:33:30 +00:00
|
|
|
{{/link-to}}
|
|
|
|
{{#link-to "activity" class=(if (eq selectedItem "activity") "option selected" "option")}}
|
2022-01-11 12:40:52 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.Pulse}} title="Activity" tabindex="0" role="button" />
|
2019-01-04 16:33:30 +00:00
|
|
|
{{/link-to}}
|
|
|
|
{{/if}}
|
|
|
|
{{#if session.viewAnalytics}}
|
|
|
|
{{#link-to "analytics" class=(if (eq selectedItem "analytics") "option selected" "option")}}
|
2022-01-11 12:40:52 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.BarChart}} title="Reports" tabindex="0" role="button" />
|
2019-01-04 16:33:30 +00:00
|
|
|
{{/link-to}}
|
|
|
|
{{/if}}
|
2018-12-03 19:51:34 +00:00
|
|
|
{{/if}}
|
2019-01-04 16:33:30 +00:00
|
|
|
{{#link-to "search" class=(if (eq selectedItem "search") "option selected" "option")}}
|
2022-01-11 12:40:52 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.Search}} title="Search" role="search" tabindex="0" />
|
2018-12-16 17:21:43 +00:00
|
|
|
{{/link-to}}
|
2019-05-29 12:49:20 +01:00
|
|
|
</div>
|
2018-12-03 19:51:34 +00:00
|
|
|
|
2019-05-29 12:49:20 +01:00
|
|
|
<div class="options">
|
|
|
|
{{#if session.isAdmin}}
|
|
|
|
{{#unless appMeta.valid}}
|
|
|
|
<div class="option invalid-plan" {{action "onBilling"}}>
|
2022-01-11 12:40:52 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.Announce}} title="Missing activation key" tabindex="0" role="button" />
|
2019-06-19 13:39:36 +01:00
|
|
|
</div>
|
|
|
|
{{/unless}}
|
|
|
|
{{#unless appMeta.configured}}
|
|
|
|
<div class="option invalid-plan" {{action "onConfigured"}}>
|
2022-01-11 12:40:52 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.Announce}} title="Missing mail server settings" tabindex="0" role="button" />
|
2019-05-29 12:49:20 +01:00
|
|
|
</div>
|
|
|
|
{{/unless}}
|
2018-12-03 19:51:34 +00:00
|
|
|
{{/if}}
|
2019-05-29 12:49:20 +01:00
|
|
|
{{#if session.authenticated}}
|
|
|
|
{{#if hasPins}}
|
|
|
|
<div class="option" id="user-pins-button">
|
2022-01-11 12:40:52 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.BookmarkSolid}} aria-haspopup="menu" tabindex="0" role="button" title="Bookmarked content"></i>
|
2019-05-29 12:49:20 +01:00
|
|
|
{{#attach-popover class="ember-attacher-popper" hideOn="clickout click" showOn="click" isShown=false}}
|
|
|
|
<div class="menu">
|
|
|
|
{{#if hasSpacePins}}
|
|
|
|
<li class="item header">Spaces</li>
|
|
|
|
{{#each spacePins as |pin|}}
|
2022-01-11 12:40:52 -05:00
|
|
|
<a class="item" href="#" {{action "jumpToPin" pin}} data-id= {{pin.id}} id="pin-{{pin.id}}" tabindex="0" role="button">{{pin.pin}}</a>
|
2019-05-29 12:49:20 +01:00
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
|
|
|
{{#if hasDocumentPins}}
|
|
|
|
<li class="item header">Content</li>
|
|
|
|
{{#each documentPins as |pin|}}
|
2022-01-11 12:40:52 -05:00
|
|
|
<a class="item" href="#" {{action "jumpToPin" pin}} data-id= {{pin.id}} id="pin-{{pin.id}}" tabindex="0" role="button">{{pin.pin}}</a>
|
2019-05-29 12:49:20 +01:00
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{/attach-popover}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<div class="user-gravatar-container">
|
2022-01-11 12:40:52 -05:00
|
|
|
<div class="user-gravatar" id="profile-button" tabindex="0" role="button" aria-haspopup="menu">
|
2019-05-29 12:49:20 +01:00
|
|
|
{{session.user.initials}}
|
|
|
|
{{#if hasWhatsNew}}
|
|
|
|
<div class="whats-new-dot" />
|
2018-12-03 19:51:34 +00:00
|
|
|
{{/if}}
|
2019-05-29 12:49:20 +01:00
|
|
|
{{#if session.isGlobalAdmin}}
|
|
|
|
{{#if appMeta.updateAvailable}}
|
|
|
|
<div class="update-available-dot" />
|
2018-12-05 13:44:10 +00:00
|
|
|
{{/if}}
|
2019-05-29 12:49:20 +01:00
|
|
|
{{/if}}
|
|
|
|
{{#attach-popover class="ember-attacher-popper" hideOn="clickout click" showOn="click" isShown=false}}
|
|
|
|
<div class="menu">
|
|
|
|
{{#link-to "profile" class="item"}}Profile{{/link-to}}
|
|
|
|
{{#if session.isAdmin}}
|
|
|
|
<div class="divider"></div>
|
|
|
|
{{#link-to "customize.general" class="item"}}Settings{{/link-to}}
|
|
|
|
{{#unless appMeta.valid}}
|
|
|
|
{{#link-to "customize.billing" class="item bold red"}}Update Billing{{/link-to}}
|
|
|
|
{{/unless}}
|
|
|
|
{{/if}}
|
|
|
|
{{#if session.isGlobalAdmin}}
|
|
|
|
{{#if appMeta.updateAvailable}}
|
|
|
|
{{#link-to "customize.product" class="item bold yellow"}}Update available{{/link-to}}
|
|
|
|
{{/if}}
|
2018-12-05 13:44:10 +00:00
|
|
|
{{/if}}
|
|
|
|
<div class="divider"></div>
|
2019-05-29 12:49:20 +01:00
|
|
|
<a class={{if hasWhatsNew "item bold red" "item"}} href="#" {{action "onNew"}}>What's New</a>
|
|
|
|
<a href="https://docs.documize.com" target="_blank" class="item">Help</a>
|
|
|
|
{{#if enableLogout}}
|
|
|
|
<div class="divider"></div>
|
|
|
|
{{#link-to "auth.logout" class="item"}}Logout{{/link-to}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{/attach-popover}}
|
|
|
|
</div>
|
2018-12-03 19:51:34 +00:00
|
|
|
</div>
|
2019-05-29 12:49:20 +01:00
|
|
|
{{else}}
|
|
|
|
{{#link-to "auth.login" class="option"}}
|
|
|
|
{{constants.Label.Login}}
|
|
|
|
{{/link-to}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{/unless}}
|
2018-12-03 19:51:34 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-05-20 10:39:48 +01:00
|
|
|
|