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

100 lines
2.6 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"
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
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(
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",
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,
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 }}