2016-09-27 06:50:34 -04:00
|
|
|
div(ng-if="!shouldABTestHeaderLabels")
|
2016-09-26 10:02:54 -04:00
|
|
|
header.toolbar.toolbar-header(
|
|
|
|
ng-cloak,
|
|
|
|
ng-hide="state.loading"
|
2014-07-15 15:44:13 -04:00
|
|
|
)
|
2016-09-26 10:02:54 -04:00
|
|
|
a.btn.btn-full-height(
|
2014-08-12 08:18:22 -04:00
|
|
|
href,
|
2016-09-26 10:02:54 -04:00
|
|
|
ng-click="ui.leftMenuShown = true"
|
|
|
|
tooltip='#{translate("menu")}',
|
2014-08-12 08:18:22 -04:00
|
|
|
tooltip-placement="bottom",
|
2016-09-26 11:18:37 -04:00
|
|
|
tooltip-append-to-body="true",
|
2014-08-12 08:18:22 -04:00
|
|
|
)
|
2016-09-26 10:02:54 -04:00
|
|
|
i.fa.fa-fw.fa-bars
|
|
|
|
a(
|
|
|
|
href="/project"
|
|
|
|
tooltip="#{translate('back_to_projects')}",
|
|
|
|
tooltip-placement="bottom",
|
|
|
|
tooltip-append-to-body="true"
|
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-level-up
|
|
|
|
|
|
|
|
span(ng-controller="PdfViewToggleController")
|
|
|
|
a(
|
|
|
|
href,
|
|
|
|
ng-show="ui.pdfLayout == 'flat' && fileTreeClosed",
|
|
|
|
tooltip="PDF",
|
|
|
|
tooltip-placement="bottom",
|
|
|
|
tooltip-append-to-body="true",
|
|
|
|
ng-click="togglePdfView()",
|
|
|
|
ng-class="{ 'active': ui.view == 'pdf' }"
|
|
|
|
)
|
|
|
|
i.fa.fa-file-pdf-o
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2016-09-26 10:02:54 -04:00
|
|
|
.toolbar-center.project-name(ng-controller="ProjectNameController")
|
|
|
|
span.name(
|
|
|
|
ng-dblclick="!permissions.admin || startRenaming()",
|
|
|
|
ng-show="!state.renaming"
|
|
|
|
) {{ project.name }}
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2016-09-26 10:02:54 -04:00
|
|
|
input.form-control(
|
|
|
|
type="text"
|
|
|
|
ng-model="inputs.name",
|
|
|
|
ng-show="state.renaming",
|
|
|
|
on-enter="finishRenaming()",
|
|
|
|
ng-blur="finishRenaming()",
|
|
|
|
select-name-when="state.renaming"
|
|
|
|
)
|
2014-07-03 11:18:49 -04:00
|
|
|
|
2016-09-26 10:02:54 -04:00
|
|
|
a.rename(
|
|
|
|
ng-if="permissions.admin",
|
|
|
|
href='#',
|
|
|
|
tooltip-placement="bottom",
|
|
|
|
tooltip="#{translate('rename')}",
|
|
|
|
tooltip-append-to-body="true",
|
|
|
|
ng-click="startRenaming()",
|
|
|
|
ng-show="!state.renaming"
|
|
|
|
)
|
|
|
|
i.fa.fa-pencil
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2016-09-26 10:02:54 -04:00
|
|
|
.toolbar-right
|
|
|
|
span.online-users(
|
|
|
|
ng-show="onlineUsersArray.length > 0"
|
|
|
|
ng-controller="OnlineUsersController"
|
|
|
|
)
|
|
|
|
span(ng-if="onlineUsersArray.length < 4")
|
|
|
|
span.online-user(
|
|
|
|
ng-repeat="user in onlineUsersArray",
|
|
|
|
ng-style="{ 'background-color': 'hsl({{ getHueForUserId(user.user_id) }}, 70%, 50%)' }",
|
|
|
|
popover="{{ user.name }}"
|
|
|
|
popover-placement="bottom"
|
|
|
|
popover-append-to-body="true"
|
|
|
|
popover-trigger="mouseenter"
|
|
|
|
ng-click="gotoUser(user)"
|
|
|
|
) {{ user.name.slice(0,1) }}
|
|
|
|
|
|
|
|
span.dropdown(dropdown, ng-if="onlineUsersArray.length >= 4")
|
|
|
|
span.online-user.online-user-multi(
|
|
|
|
dropdown-toggle,
|
|
|
|
tooltip="#{translate('connected_users')}",
|
|
|
|
tooltip-placement="left"
|
|
|
|
)
|
|
|
|
strong {{ onlineUsersArray.length }}
|
|
|
|
i.fa.fa-fw.fa-user
|
|
|
|
ul.dropdown-menu.pull-right
|
|
|
|
li.dropdown-header #{translate('connected_users')}
|
|
|
|
li(ng-repeat="user in onlineUsersArray")
|
|
|
|
a(href, ng-click="gotoUser(user)")
|
|
|
|
span.online-user(
|
|
|
|
ng-style="{ 'background-color': 'hsl({{ getHueForUserId(user.user_id) }}, 70%, 50%)' }"
|
|
|
|
) {{ user.name.slice(0,1) }}
|
|
|
|
| {{ user.name }}
|
|
|
|
|
|
|
|
|
|
|
|
a.btn.btn-full-height(
|
|
|
|
href,
|
|
|
|
ng-if="permissions.admin",
|
|
|
|
tooltip="#{translate('share')}",
|
|
|
|
tooltip-placement="bottom",
|
|
|
|
ng-mouseenter="trackHover('share')"
|
|
|
|
ng-click="openShareProjectModal()",
|
2016-09-26 11:18:37 -04:00
|
|
|
ng-controller="ShareController",
|
2016-09-26 10:02:54 -04:00
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-group
|
|
|
|
a.btn.btn-full-height(
|
|
|
|
href,
|
|
|
|
ng-mouseenter="trackHover('track-changes')"
|
|
|
|
ng-click="toggleTrackChanges()",
|
|
|
|
ng-class="{ active: (ui.view == 'track-changes') }"
|
|
|
|
tooltip="#{translate('recent_changes')}",
|
2016-09-26 11:18:37 -04:00
|
|
|
tooltip-placement="bottom",
|
2016-09-26 10:02:54 -04:00
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-history
|
|
|
|
a.btn.btn-full-height(
|
|
|
|
href,
|
|
|
|
tooltip="#{translate('chat')}",
|
|
|
|
tooltip-placement="bottom",
|
|
|
|
ng-class="{ active: ui.chatOpen }",
|
|
|
|
ng-mouseenter="trackHover('chat')"
|
|
|
|
ng-click="toggleChat()",
|
|
|
|
ng-controller="ChatButtonController",
|
2016-09-26 11:18:37 -04:00
|
|
|
ng-show="!anonymous",
|
2016-09-26 10:02:54 -04:00
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-comment(
|
|
|
|
ng-class="{ 'bounce': unreadMessages > 0 }"
|
2015-09-02 09:31:52 -04:00
|
|
|
)
|
2016-09-26 10:02:54 -04:00
|
|
|
span.label.label-info(
|
|
|
|
ng-show="unreadMessages > 0"
|
|
|
|
) {{ unreadMessages }}
|
2015-09-02 09:31:52 -04:00
|
|
|
|
2016-09-27 06:50:34 -04:00
|
|
|
div(ng-if="shouldABTestHeaderLabels")
|
|
|
|
div(sixpack-switch="editor-header")
|
|
|
|
header.toolbar.toolbar-header(
|
|
|
|
ng-cloak,
|
|
|
|
ng-hide="state.loading"
|
|
|
|
sixpack-default
|
|
|
|
)
|
2016-09-26 11:09:27 -04:00
|
|
|
a.btn.btn-full-height(
|
|
|
|
href,
|
2016-09-27 11:01:56 -04:00
|
|
|
ng-click="ui.leftMenuShown = true; trackABTestConversion('menu');"
|
2016-09-27 06:50:34 -04:00
|
|
|
tooltip='#{translate("menu")}',
|
|
|
|
tooltip-placement="bottom",
|
|
|
|
tooltip-append-to-body="true",
|
2016-09-26 11:18:37 -04:00
|
|
|
sixpack-convert="editor-header"
|
2016-09-26 11:09:27 -04:00
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-bars
|
|
|
|
a(
|
|
|
|
href="/project"
|
2016-09-27 06:50:34 -04:00
|
|
|
tooltip="#{translate('back_to_projects')}",
|
|
|
|
tooltip-placement="bottom",
|
|
|
|
tooltip-append-to-body="true"
|
2016-09-26 11:09:27 -04:00
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-level-up
|
2016-09-27 06:50:34 -04:00
|
|
|
|
|
|
|
span(ng-controller="PdfViewToggleController")
|
|
|
|
a(
|
|
|
|
href,
|
|
|
|
ng-show="ui.pdfLayout == 'flat' && fileTreeClosed",
|
|
|
|
tooltip="PDF",
|
|
|
|
tooltip-placement="bottom",
|
|
|
|
tooltip-append-to-body="true",
|
|
|
|
ng-click="togglePdfView()",
|
|
|
|
ng-class="{ 'active': ui.view == 'pdf' }"
|
|
|
|
)
|
|
|
|
i.fa.fa-file-pdf-o
|
2016-09-26 10:02:54 -04:00
|
|
|
|
2016-09-27 06:50:34 -04:00
|
|
|
.toolbar-center.project-name(ng-controller="ProjectNameController")
|
|
|
|
span.name(
|
|
|
|
ng-dblclick="!permissions.admin || startRenaming()",
|
|
|
|
ng-show="!state.renaming"
|
|
|
|
) {{ project.name }}
|
2016-09-26 10:02:54 -04:00
|
|
|
|
2016-09-27 06:50:34 -04:00
|
|
|
input.form-control(
|
|
|
|
type="text"
|
|
|
|
ng-model="inputs.name",
|
|
|
|
ng-show="state.renaming",
|
|
|
|
on-enter="finishRenaming()",
|
|
|
|
ng-blur="finishRenaming()",
|
|
|
|
select-name-when="state.renaming"
|
|
|
|
)
|
2016-09-26 10:02:54 -04:00
|
|
|
|
2016-09-27 06:50:34 -04:00
|
|
|
a.rename(
|
|
|
|
ng-if="permissions.admin",
|
|
|
|
href='#',
|
|
|
|
tooltip-placement="bottom",
|
|
|
|
tooltip="#{translate('rename')}",
|
|
|
|
tooltip-append-to-body="true",
|
|
|
|
ng-click="startRenaming()",
|
|
|
|
ng-show="!state.renaming"
|
|
|
|
)
|
|
|
|
i.fa.fa-pencil
|
2016-09-26 10:02:54 -04:00
|
|
|
|
2016-09-27 06:50:34 -04:00
|
|
|
.toolbar-right
|
|
|
|
span.online-users(
|
|
|
|
ng-show="onlineUsersArray.length > 0"
|
|
|
|
ng-controller="OnlineUsersController"
|
|
|
|
)
|
|
|
|
span(ng-if="onlineUsersArray.length < 4")
|
|
|
|
span.online-user(
|
|
|
|
ng-repeat="user in onlineUsersArray",
|
|
|
|
ng-style="{ 'background-color': 'hsl({{ getHueForUserId(user.user_id) }}, 70%, 50%)' }",
|
|
|
|
popover="{{ user.name }}"
|
|
|
|
popover-placement="bottom"
|
|
|
|
popover-append-to-body="true"
|
|
|
|
popover-trigger="mouseenter"
|
|
|
|
ng-click="gotoUser(user)"
|
|
|
|
) {{ user.name.slice(0,1) }}
|
|
|
|
|
|
|
|
span.dropdown(dropdown, ng-if="onlineUsersArray.length >= 4")
|
|
|
|
span.online-user.online-user-multi(
|
|
|
|
dropdown-toggle,
|
|
|
|
tooltip="#{translate('connected_users')}",
|
|
|
|
tooltip-placement="left"
|
|
|
|
)
|
|
|
|
strong {{ onlineUsersArray.length }}
|
|
|
|
i.fa.fa-fw.fa-user
|
|
|
|
ul.dropdown-menu.pull-right
|
|
|
|
li.dropdown-header #{translate('connected_users')}
|
|
|
|
li(ng-repeat="user in onlineUsersArray")
|
|
|
|
a(href, ng-click="gotoUser(user)")
|
|
|
|
span.online-user(
|
|
|
|
ng-style="{ 'background-color': 'hsl({{ getHueForUserId(user.user_id) }}, 70%, 50%)' }"
|
|
|
|
) {{ user.name.slice(0,1) }}
|
|
|
|
| {{ user.name }}
|
2016-09-26 10:02:54 -04:00
|
|
|
|
2016-09-27 06:50:34 -04:00
|
|
|
|
|
|
|
a.btn.btn-full-height(
|
|
|
|
href,
|
|
|
|
ng-if="permissions.admin",
|
|
|
|
tooltip="#{translate('share')}",
|
|
|
|
tooltip-placement="bottom",
|
|
|
|
ng-mouseenter="trackHover('share')"
|
2016-09-27 11:01:56 -04:00
|
|
|
ng-click="openShareProjectModal(); trackABTestConversion('share');",
|
2016-09-27 06:50:34 -04:00
|
|
|
ng-controller="ShareController",
|
|
|
|
sixpack-convert="editor-header"
|
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-group
|
|
|
|
a.btn.btn-full-height(
|
|
|
|
href,
|
|
|
|
ng-mouseenter="trackHover('track-changes')"
|
2016-09-27 11:01:56 -04:00
|
|
|
ng-click="toggleTrackChanges(); trackABTestConversion('history');",
|
2016-09-27 06:50:34 -04:00
|
|
|
ng-class="{ active: (ui.view == 'track-changes') }"
|
|
|
|
tooltip="#{translate('recent_changes')}",
|
|
|
|
tooltip-placement="bottom",
|
|
|
|
sixpack-convert="editor-header"
|
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-history
|
|
|
|
a.btn.btn-full-height(
|
|
|
|
href,
|
|
|
|
tooltip="#{translate('chat')}",
|
|
|
|
tooltip-placement="bottom",
|
|
|
|
ng-class="{ active: ui.chatOpen }",
|
|
|
|
ng-mouseenter="trackHover('chat')"
|
2016-09-27 11:01:56 -04:00
|
|
|
ng-click="toggleChat(); trackABTestConversion('chat');",
|
2016-09-27 06:50:34 -04:00
|
|
|
ng-controller="ChatButtonController",
|
|
|
|
ng-show="!anonymous",
|
|
|
|
sixpack-convert="editor-header"
|
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-comment(
|
|
|
|
ng-class="{ 'bounce': unreadMessages > 0 }"
|
2016-09-26 10:02:54 -04:00
|
|
|
)
|
2016-09-27 06:50:34 -04:00
|
|
|
span.label.label-info(
|
|
|
|
ng-show="unreadMessages > 0"
|
|
|
|
) {{ unreadMessages }}
|
2016-09-26 10:02:54 -04:00
|
|
|
|
2016-09-27 06:50:34 -04:00
|
|
|
header.toolbar.toolbar-header.toolbar-with-labels(
|
|
|
|
ng-cloak,
|
|
|
|
ng-hide="state.loading"
|
|
|
|
sixpack-when="labels"
|
|
|
|
)
|
|
|
|
.toolbar-left
|
|
|
|
a.btn.btn-full-height(
|
|
|
|
href,
|
2016-09-27 11:01:56 -04:00
|
|
|
ng-click="ui.leftMenuShown = true; trackABTestConversion('menu');",
|
2016-09-27 06:50:34 -04:00
|
|
|
sixpack-convert="editor-header"
|
2016-09-26 10:02:54 -04:00
|
|
|
)
|
2016-09-27 06:50:34 -04:00
|
|
|
i.fa.fa-fw.fa-bars
|
|
|
|
p.toolbar-label #{translate("menu")}
|
|
|
|
a(
|
|
|
|
href="/project"
|
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-level-up
|
|
|
|
|
|
|
|
span(ng-controller="PdfViewToggleController")
|
|
|
|
a(
|
|
|
|
href,
|
|
|
|
ng-show="ui.pdfLayout == 'flat' && fileTreeClosed",
|
|
|
|
tooltip="PDF",
|
|
|
|
tooltip-placement="bottom",
|
|
|
|
tooltip-append-to-body="true",
|
|
|
|
ng-click="togglePdfView()",
|
|
|
|
ng-class="{ 'active': ui.view == 'pdf' }"
|
|
|
|
)
|
|
|
|
i.fa.fa-file-pdf-o
|
|
|
|
|
|
|
|
.toolbar-center.project-name(ng-controller="ProjectNameController")
|
|
|
|
span.name(
|
|
|
|
ng-dblclick="!permissions.admin || startRenaming()",
|
|
|
|
ng-show="!state.renaming"
|
|
|
|
) {{ project.name }}
|
|
|
|
|
|
|
|
input.form-control(
|
|
|
|
type="text"
|
|
|
|
ng-model="inputs.name",
|
|
|
|
ng-show="state.renaming",
|
|
|
|
on-enter="finishRenaming()",
|
|
|
|
ng-blur="finishRenaming()",
|
|
|
|
select-name-when="state.renaming"
|
|
|
|
)
|
|
|
|
|
|
|
|
a.rename(
|
|
|
|
ng-if="permissions.admin",
|
|
|
|
href='#',
|
|
|
|
tooltip-placement="bottom",
|
|
|
|
tooltip="#{translate('rename')}",
|
|
|
|
tooltip-append-to-body="true",
|
|
|
|
ng-click="startRenaming()",
|
|
|
|
ng-show="!state.renaming"
|
|
|
|
)
|
|
|
|
i.fa.fa-pencil
|
|
|
|
|
|
|
|
.toolbar-right
|
|
|
|
span.online-users(
|
|
|
|
ng-show="onlineUsersArray.length > 0"
|
|
|
|
ng-controller="OnlineUsersController"
|
|
|
|
)
|
|
|
|
span(ng-if="onlineUsersArray.length < 4")
|
|
|
|
span.online-user(
|
|
|
|
ng-repeat="user in onlineUsersArray",
|
|
|
|
ng-style="{ 'background-color': 'hsl({{ getHueForUserId(user.user_id) }}, 70%, 50%)' }",
|
|
|
|
popover="{{ user.name }}"
|
|
|
|
popover-placement="bottom"
|
|
|
|
popover-append-to-body="true"
|
|
|
|
popover-trigger="mouseenter"
|
|
|
|
ng-click="gotoUser(user)"
|
|
|
|
) {{ user.name.slice(0,1) }}
|
|
|
|
|
|
|
|
span.dropdown(dropdown, ng-if="onlineUsersArray.length >= 4")
|
|
|
|
span.online-user.online-user-multi(
|
|
|
|
dropdown-toggle,
|
|
|
|
tooltip="#{translate('connected_users')}",
|
|
|
|
tooltip-placement="left"
|
|
|
|
)
|
|
|
|
strong {{ onlineUsersArray.length }}
|
|
|
|
i.fa.fa-fw.fa-user
|
|
|
|
ul.dropdown-menu.pull-right
|
|
|
|
li.dropdown-header #{translate('connected_users')}
|
|
|
|
li(ng-repeat="user in onlineUsersArray")
|
|
|
|
a(href, ng-click="gotoUser(user)")
|
|
|
|
span.online-user(
|
|
|
|
ng-style="{ 'background-color': 'hsl({{ getHueForUserId(user.user_id) }}, 70%, 50%)' }"
|
|
|
|
) {{ user.name.slice(0,1) }}
|
|
|
|
| {{ user.name }}
|
|
|
|
|
|
|
|
|
|
|
|
a.btn.btn-full-height(
|
|
|
|
href,
|
|
|
|
ng-if="permissions.admin",
|
2016-09-27 11:01:56 -04:00
|
|
|
ng-mouseenter="trackHover('share'); trackABTestConversion('share');"
|
2016-09-27 06:50:34 -04:00
|
|
|
ng-click="openShareProjectModal()",
|
|
|
|
ng-controller="ShareController",
|
|
|
|
sixpack-convert="editor-header"
|
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-group
|
|
|
|
p.toolbar-label #{translate("share")}
|
|
|
|
a.btn.btn-full-height(
|
|
|
|
href,
|
|
|
|
ng-mouseenter="trackHover('track-changes')"
|
2016-09-27 11:01:56 -04:00
|
|
|
ng-click="toggleTrackChanges(); trackABTestConversion('history');",
|
2016-09-27 06:50:34 -04:00
|
|
|
ng-class="{ active: (ui.view == 'track-changes') }",
|
|
|
|
sixpack-convert="editor-header"
|
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-history
|
|
|
|
p.toolbar-label #{translate("history")}
|
|
|
|
a.btn.btn-full-height(
|
|
|
|
href,
|
|
|
|
ng-class="{ active: ui.chatOpen }",
|
|
|
|
ng-mouseenter="trackHover('chat')"
|
2016-09-27 11:01:56 -04:00
|
|
|
ng-click="toggleChat(); trackABTestConversion('chat');",
|
2016-09-27 06:50:34 -04:00
|
|
|
ng-controller="ChatButtonController",
|
|
|
|
ng-show="!anonymous",
|
|
|
|
sixpack-convert="editor-header"
|
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-comment(
|
|
|
|
ng-class="{ 'bounce': unreadMessages > 0 }"
|
|
|
|
)
|
|
|
|
span.label.label-info(
|
|
|
|
ng-show="unreadMessages > 0"
|
|
|
|
) {{ unreadMessages }}
|
|
|
|
p.toolbar-label #{translate("chat")}
|