overleaf/services/web/app/views/project/editor/header.jade

89 lines
2.2 KiB
Text
Raw Normal View History

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"
tooltip="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"
tooltip="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-06-26 11:39:52 -04:00
2014-07-03 11:18:49 -04:00
.toolbar-center.project-name(ng-controller="ProjectNameController")
span.name(
ng-dblclick="startRenaming()",
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(
href='#',
tooltip-placement="bottom",
tooltip="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
.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,
ng-if="permissions.admin",
2014-07-01 09:12:28 -04:00
tooltip="Share",
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') }"
tooltip="Recent Changes",
tooltip-placement="bottom"
)
i.fa.fa-fw.fa-history
2014-07-15 13:25:12 -04:00
a.btn.btn-full-height(
href,
tooltip="Chat",
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 }}