2018-08-31 10:37:22 -04:00
|
|
|
.dropdown(
|
|
|
|
dropdown
|
|
|
|
dropdown-append-to-body
|
|
|
|
)
|
2017-10-06 05:50:59 -04:00
|
|
|
a.btn.btn-primary.sidebar-new-proj-btn.dropdown-toggle(
|
2014-07-16 09:59:52 -04:00
|
|
|
href="#",
|
2015-06-03 06:14:26 -04:00
|
|
|
data-toggle="dropdown",
|
|
|
|
dropdown-toggle
|
2014-07-30 12:17:13 -04:00
|
|
|
)
|
|
|
|
| #{translate("new_project")}
|
|
|
|
|
2014-07-16 09:59:52 -04:00
|
|
|
ul.dropdown-menu(role="menu")
|
|
|
|
li
|
|
|
|
a(
|
|
|
|
href,
|
|
|
|
ng-click="openCreateProjectModal()"
|
2014-07-29 10:33:31 -04:00
|
|
|
) #{translate("blank_project")}
|
2014-07-16 09:59:52 -04:00
|
|
|
li
|
|
|
|
a(
|
|
|
|
href,
|
|
|
|
ng-click="openCreateProjectModal('example')"
|
2014-07-29 10:33:31 -04:00
|
|
|
) #{translate("example_project")}
|
2014-07-16 09:59:52 -04:00
|
|
|
li
|
|
|
|
a(
|
|
|
|
href,
|
|
|
|
ng-click="openUploadProjectModal()"
|
2014-07-29 10:33:31 -04:00
|
|
|
) #{translate("upload_project")}
|
2015-02-23 05:18:48 -05:00
|
|
|
!= moduleIncludes("newProjectMenu", locals)
|
2018-12-03 13:58:26 -05:00
|
|
|
|
|
|
|
if portalTemplates.length > 0
|
|
|
|
//- portalTemplates is set in ProjectController
|
|
|
|
li.divider
|
|
|
|
li.dropdown-header #{translate("institution")} #{translate("templates")}
|
|
|
|
for portal in portalTemplates
|
|
|
|
li
|
2019-03-18 06:24:54 -04:00
|
|
|
a.menu-indent(
|
|
|
|
href=portal.url + "#templates",
|
|
|
|
ng-non-bindable
|
|
|
|
) #{portal.name}
|
2018-12-03 13:58:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-08-18 13:26:47 -04:00
|
|
|
if (templates)
|
2018-12-03 13:58:26 -05:00
|
|
|
//- templates is an express local var, via settings.templateLinks
|
2014-08-18 13:26:47 -04:00
|
|
|
li.divider
|
|
|
|
li.dropdown-header #{translate("templates")}
|
|
|
|
each item in templates
|
|
|
|
li
|
2018-04-12 14:53:26 -04:00
|
|
|
a.menu-indent(href=item.url) #{translate(item.name)}
|
2014-07-16 09:59:52 -04:00
|
|
|
|
|
|
|
.row-spaced(ng-if="projects.length > 0", ng-cloak)
|
|
|
|
ul.list-unstyled.folders-menu(
|
|
|
|
ng-controller="TagListController"
|
|
|
|
)
|
2016-01-28 10:11:57 -05:00
|
|
|
li(ng-class="{active: (filter == 'all')}", ng-click="filterProjects('all')")
|
|
|
|
a(href) #{translate("all_projects")}
|
|
|
|
li(ng-class="{active: (filter == 'owned')}", ng-click="filterProjects('owned')")
|
|
|
|
a(href) #{translate("your_projects")}
|
|
|
|
li(ng-class="{active: (filter == 'shared')}", ng-click="filterProjects('shared')")
|
|
|
|
a(href) #{translate("shared_with_you")}
|
2021-04-01 04:18:21 -04:00
|
|
|
li(ng-class="{active: (filter == 'archived')}", ng-click="filterProjects('archived')")
|
2022-04-16 00:06:25 -04:00
|
|
|
a(href) #{translate("archived_projects")}
|
2021-04-01 04:18:21 -04:00
|
|
|
li(ng-class="{active: (filter == 'trashed')}", ng-click="filterProjects('trashed')")
|
2019-11-25 10:41:12 -05:00
|
|
|
a(href) #{translate("trashed_projects")}
|
2017-10-05 10:26:49 -04:00
|
|
|
li.separator
|
2018-02-05 11:59:19 -05:00
|
|
|
h2 #{translate("tags_slash_folders")}
|
|
|
|
li.tag(ng-cloak)
|
|
|
|
a.tag-name(href, ng-click="openNewTagModal()")
|
2018-11-19 04:41:34 -05:00
|
|
|
i.fa.fa-fw.fa-plus(aria-hidden="true")
|
2018-02-05 11:59:19 -05:00
|
|
|
span.name #{translate("new_folder")}
|
2016-01-28 10:11:57 -05:00
|
|
|
li.tag(
|
2017-07-19 05:34:50 -04:00
|
|
|
ng-repeat="tag in tags | orderBy:'name'",
|
2014-07-16 09:59:52 -04:00
|
|
|
ng-class="{active: tag.selected}",
|
2016-01-28 10:11:57 -05:00
|
|
|
ng-cloak,
|
|
|
|
ng-click="selectTag(tag)"
|
2014-07-16 09:59:52 -04:00
|
|
|
)
|
2016-01-28 10:11:57 -05:00
|
|
|
a.tag-name(href)
|
2014-07-16 09:59:52 -04:00
|
|
|
i.icon.fa.fa-fw(
|
|
|
|
ng-class="{\
|
2019-04-25 10:21:35 -04:00
|
|
|
'fa-folder-open': tag.selected,\
|
|
|
|
'fa-folder': !tag.selected\
|
2014-07-16 09:59:52 -04:00
|
|
|
}"
|
2019-04-25 10:21:35 -04:00
|
|
|
ng-style="{ 'color': 'hsl({{ getHueForTagId(tag._id) }}, 70%, 45%)' }"
|
2018-11-19 04:41:34 -05:00
|
|
|
aria-hidden="true"
|
2014-07-16 09:59:52 -04:00
|
|
|
)
|
2014-07-16 10:24:30 -04:00
|
|
|
span.name {{tag.name}}
|
2019-06-27 06:13:59 -04:00
|
|
|
span.subdued ({{countProjectsForTag(tag)}})
|
2020-05-19 15:05:36 -04:00
|
|
|
|
|
|
|
span.dropdown.tag-menu(dropdown)
|
2016-01-28 10:11:57 -05:00
|
|
|
a.dropdown-toggle(
|
|
|
|
href="#",
|
|
|
|
data-toggle="dropdown",
|
|
|
|
dropdown-toggle,
|
|
|
|
stop-propagation="click"
|
|
|
|
)
|
|
|
|
span.caret
|
|
|
|
ul.dropdown-menu.dropdown-menu-right(
|
|
|
|
role="menu"
|
|
|
|
)
|
|
|
|
li
|
2016-01-28 13:18:22 -05:00
|
|
|
a(href, ng-click="renameTag(tag)", stop-propagation="click")
|
2016-01-28 10:11:57 -05:00
|
|
|
| #{translate("rename")}
|
|
|
|
li
|
2016-01-28 13:18:22 -05:00
|
|
|
a(href, ng-click="deleteTag(tag)", stop-propagation="click")
|
2016-01-28 10:11:57 -05:00
|
|
|
| #{translate("delete")}
|
2017-04-28 12:09:34 -04:00
|
|
|
li.tag.untagged(
|
2017-04-28 07:11:51 -04:00
|
|
|
ng-if="tags.length",
|
|
|
|
ng-cloak,
|
|
|
|
ng-click="selectUntagged()"
|
2017-04-28 11:57:37 -04:00
|
|
|
ng-class="{active: filter === 'untagged'}",
|
|
|
|
)
|
2017-04-28 12:09:34 -04:00
|
|
|
a.tag-name(href)
|
2018-02-05 11:59:19 -05:00
|
|
|
span.name
|
|
|
|
| #{translate("uncategorized")}
|
2017-04-28 11:57:37 -04:00
|
|
|
span.subdued ({{ nUntagged }})
|
2014-07-16 09:59:52 -04:00
|
|
|
|
|
|
|
.row-spaced(ng-if="projects.length == 0", ng-cloak)
|
|
|
|
.first-project
|
|
|
|
div
|
2018-11-19 04:41:34 -05:00
|
|
|
i.fa.fa-arrow-up.fa-2x(aria-hidden="true")
|
2014-07-16 09:59:52 -04:00
|
|
|
div
|
2014-07-29 10:33:31 -04:00
|
|
|
strong #{translate("create_your_first_project")}
|
2021-03-24 06:09:43 -04:00
|
|
|
|
2021-05-27 09:50:55 -04:00
|
|
|
if (isOverleaf)
|
2015-11-23 10:12:17 -05:00
|
|
|
span(ng-controller="LeftHandMenuPromoController", ng-cloak)
|
|
|
|
|
2016-06-21 08:28:08 -04:00
|
|
|
.row-spaced#userProfileInformation(ng-if="hasProjects")
|
2021-02-02 09:26:10 -05:00
|
|
|
div(ng-hide="withAffiliations", ng-cloak)
|
2018-09-18 08:06:26 -04:00
|
|
|
hr
|
|
|
|
.text-centered.user-profile
|
2018-09-13 07:22:27 -04:00
|
|
|
p Are you affiliated with an institution?
|
2015-06-09 10:36:16 -04:00
|
|
|
|
2018-09-13 07:22:27 -04:00
|
|
|
a.btn.btn-info(
|
|
|
|
href="/user/settings"
|
2018-09-13 08:54:43 -04:00
|
|
|
) Add Affiliation
|