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-03-04 18:31:23 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.Grid}} title={{localize '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-03-04 18:31:23 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.ListBullet}} title={{localize '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-03-04 18:31:23 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.Pulse}} title={{localize '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-03-04 18:31:23 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.BarChart}} title={{localize '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-03-04 18:31:23 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.Search}} title={{localize '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-03-04 18:31:23 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.Announce}} title={{localize 'product_activation_key_missing'}} 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-03-04 18:31:23 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.Announce}} title={{localize 'smtp_missing'}} 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-03-04 18:31:23 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.BookmarkSolid}} aria-haspopup="menu" tabindex="0" role="button" title={{localize 'bookmarks'}}></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}}
|
2022-03-04 18:31:23 -05:00
|
|
|
<li class="item header">{{localize 'spaces'}}</li>
|
2019-05-29 12:49:20 +01:00
|
|
|
{{#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}}
|
2022-03-04 18:31:23 -05:00
|
|
|
<li class="item header">{{localize 'content'}}</li>
|
2019-05-29 12:49:20 +01:00
|
|
|
{{#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">
|
2022-03-04 18:31:23 -05:00
|
|
|
{{#link-to "profile" class="item"}}{{localize 'profile'}}{{/link-to}}
|
2019-05-29 12:49:20 +01:00
|
|
|
{{#if session.isAdmin}}
|
|
|
|
<div class="divider"></div>
|
2022-03-04 18:31:23 -05:00
|
|
|
{{#link-to "customize.general" class="item"}}{{localize 'settings'}}{{/link-to}}
|
2019-05-29 12:49:20 +01:00
|
|
|
{{#unless appMeta.valid}}
|
2022-03-04 18:31:23 -05:00
|
|
|
{{#link-to "customize.billing" class="item bold red"}}{{localize 'account_update'}}{{/link-to}}
|
2019-05-29 12:49:20 +01:00
|
|
|
{{/unless}}
|
|
|
|
{{/if}}
|
|
|
|
{{#if session.isGlobalAdmin}}
|
|
|
|
{{#if appMeta.updateAvailable}}
|
2022-03-04 18:31:23 -05:00
|
|
|
{{#link-to "customize.product" class="item bold yellow"}}{{localize 'product_update'}}{{/link-to}}
|
2019-05-29 12:49:20 +01:00
|
|
|
{{/if}}
|
2018-12-05 13:44:10 +00:00
|
|
|
{{/if}}
|
|
|
|
<div class="divider"></div>
|
2022-03-04 18:31:23 -05:00
|
|
|
<a class={{if hasWhatsNew "item bold red" "item"}} href="#" {{action "onNew"}}>{{localize 'product_whats_new'}}</a>
|
|
|
|
<a href="https://docs.documize.com" target="_blank" class="item">{{localize 'help'}}</a>
|
2019-05-29 12:49:20 +01:00
|
|
|
{{#if enableLogout}}
|
|
|
|
<div class="divider"></div>
|
2022-03-04 18:31:23 -05:00
|
|
|
{{#link-to "auth.logout" class="item"}}{{localize 'logout'}}{{/link-to}}
|
2019-05-29 12:49:20 +01:00
|
|
|
{{/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"}}
|
2022-03-01 22:40:51 -05:00
|
|
|
{{localize 'login'}}
|
2019-05-29 12:49:20 +01:00
|
|
|
{{/link-to}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{/unless}}
|
2018-12-03 19:51:34 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-05-20 10:39:48 +01:00
|
|
|
|