2014-06-26 11:39:52 -04:00
|
|
|
header.toolbar.toolbar-header(ng-cloak, ng-hide="state.loading")
|
|
|
|
a.btn.btn-full-height(
|
|
|
|
href,
|
|
|
|
ng-click="ui.leftMenuShown = true"
|
2014-08-20 08:47:45 -04:00
|
|
|
tooltip='#{translate("menu")}',
|
2014-07-21 06:38:19 -04:00
|
|
|
tooltip-placement="bottom",
|
|
|
|
tooltip-append-to-body="true"
|
2014-06-26 11:39:52 -04:00
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-bars
|
2014-07-15 15:44:13 -04:00
|
|
|
a(
|
|
|
|
href="/project"
|
2014-08-20 08:47:45 -04:00
|
|
|
tooltip="#{translate('back_to_projects')}",
|
2014-07-21 06:38:19 -04:00
|
|
|
tooltip-placement="bottom",
|
|
|
|
tooltip-append-to-body="true"
|
2014-07-15 15:44:13 -04:00
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-level-up
|
2014-08-12 08:18:22 -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
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2014-07-03 11:18:49 -04:00
|
|
|
.toolbar-center.project-name(ng-controller="ProjectNameController")
|
|
|
|
span.name(
|
2015-05-28 07:59:02 -04:00
|
|
|
ng-dblclick="!permissions.admin || startRenaming()",
|
2014-07-03 11:18:49 -04:00
|
|
|
ng-show="!state.renaming"
|
|
|
|
) {{ project.name }}
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2014-07-03 11:18:49 -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"
|
|
|
|
)
|
|
|
|
|
|
|
|
a.rename(
|
2015-05-28 07:59:02 -04:00
|
|
|
ng-if="permissions.admin",
|
2014-07-03 11:18:49 -04:00
|
|
|
href='#',
|
|
|
|
tooltip-placement="bottom",
|
2014-08-20 08:47:45 -04:00
|
|
|
tooltip="#{translate('rename')}",
|
2014-07-03 11:18:49 -04:00
|
|
|
tooltip-append-to-body="true",
|
|
|
|
ng-click="startRenaming()",
|
|
|
|
ng-show="!state.renaming"
|
|
|
|
)
|
|
|
|
i.fa.fa-pencil
|
2014-06-26 11:39:52 -04:00
|
|
|
|
|
|
|
.toolbar-right
|
2014-07-17 10:25:22 -04:00
|
|
|
span.online-users(
|
|
|
|
ng-show="onlineUsersArray.length > 0"
|
|
|
|
ng-controller="OnlineUsersController"
|
|
|
|
)
|
|
|
|
span.online-user(
|
|
|
|
ng-repeat="user in onlineUsersArray",
|
2014-07-17 10:33:38 -04:00
|
|
|
ng-style="{ 'background-color': 'hsl({{ getHueForUserId(user.user_id) }}, 70%, 50%)' }",
|
2014-07-17 10:25:22 -04:00
|
|
|
popover="{{ user.name }}"
|
|
|
|
popover-placement="bottom"
|
|
|
|
popover-append-to-body="true"
|
|
|
|
popover-trigger="mouseenter"
|
|
|
|
ng-click="gotoUser(user)"
|
|
|
|
) {{ user.name.slice(0,1) }}
|
|
|
|
|
2014-07-01 09:12:28 -04:00
|
|
|
a.btn.btn-full-height(
|
|
|
|
href,
|
2014-07-03 10:05:35 -04:00
|
|
|
ng-if="permissions.admin",
|
2014-08-20 08:47:45 -04:00
|
|
|
tooltip="#{translate('share')}",
|
2014-07-01 09:12:28 -04:00
|
|
|
tooltip-placement="bottom",
|
|
|
|
ng-click="openShareProjectModal()",
|
|
|
|
ng-controller="ShareController"
|
|
|
|
)
|
2014-06-26 11:39:52 -04:00
|
|
|
i.fa.fa-fw.fa-group
|
|
|
|
a.btn.btn-full-height(
|
|
|
|
href,
|
|
|
|
ng-click="toggleTrackChanges()",
|
|
|
|
ng-class="{ active: (ui.view == 'track-changes') }"
|
2014-08-20 08:47:45 -04:00
|
|
|
tooltip="#{translate('recent_changes')}",
|
2014-06-26 11:39:52 -04:00
|
|
|
tooltip-placement="bottom"
|
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-history
|
2014-07-15 13:25:12 -04:00
|
|
|
a.btn.btn-full-height(
|
|
|
|
href,
|
2014-08-20 08:47:45 -04:00
|
|
|
tooltip="#{translate('chat')}",
|
2014-07-15 13:25:12 -04:00
|
|
|
tooltip-placement="bottom",
|
|
|
|
ng-class="{ active: ui.chatOpen }",
|
|
|
|
ng-click="toggleChat()",
|
2014-07-21 06:56:49 -04:00
|
|
|
ng-controller="ChatButtonController",
|
|
|
|
ng-show="!anonymous"
|
2014-07-15 13:25:12 -04:00
|
|
|
)
|
2014-07-17 06:05:08 -04:00
|
|
|
i.fa.fa-fw.fa-comment(
|
|
|
|
ng-class="{ 'bounce': unreadMessages > 0 }"
|
|
|
|
)
|
|
|
|
span.label.label-info(
|
|
|
|
ng-show="unreadMessages > 0"
|
|
|
|
) {{ unreadMessages }}
|