overleaf/services/web/app/views/project/list/side-bar.jade

161 lines
5 KiB
Text
Raw Normal View History

.dropdown(dropdown)
2014-08-14 11:33:01 -04:00
a.btn.btn-primary.dropdown-toggle(
2014-07-16 09:59:52 -04:00
href="#",
data-toggle="dropdown",
dropdown-toggle
)
| #{translate("new_project")}
2014-07-16 09:59:52 -04:00
ul.dropdown-menu(role="menu")
li
a(
href,
sixpack-convert="first_sign_up",
2014-07-16 09:59:52 -04:00
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,
sixpack-convert="first_sign_up",
2014-07-16 09:59:52 -04:00
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,
sixpack-convert="first_sign_up",
2014-07-16 09:59:52 -04:00
ng-click="openUploadProjectModal()"
2014-07-29 10:33:31 -04:00
) #{translate("upload_project")}
!= moduleIncludes("newProjectMenu", locals)
if (templates)
li.divider
li.dropdown-header #{translate("templates")}
each item in templates
li
a.menu-indent(href=item.url, sixpack-convert="first_sign_up") #{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")}
li(ng-class="{active: (filter == 'archived')}", ng-click="filterProjects('archived')")
a(href) #{translate("deleted_projects")}
2014-07-16 09:59:52 -04:00
li
2014-07-31 12:07:43 -04:00
h2 #{translate("folders")}
2016-01-28 10:11:57 -05:00
li.tag(
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="{\
'fa-folder-open-o': tag.selected,\
'fa-folder-o': !tag.selected\
}"
)
span.name {{tag.name}}
span.subdued ({{tag.project_ids.length}})
2016-01-28 10:11:57 -05:00
span.dropdown.tag-menu(dropdown)
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")}
2014-07-16 09:59:52 -04:00
li(ng-cloak)
2014-07-23 06:12:12 -04:00
a.tag(href, ng-click="openNewTagModal()")
2014-07-16 09:59:52 -04:00
i.fa.fa-fw.fa-plus
2014-07-29 10:33:31 -04:00
span.name #{translate("new_folder")}
2014-07-16 09:59:52 -04:00
.row-spaced(ng-if="projects.length == 0", ng-cloak)
.first-project
div
i.fa.fa-arrow-up.fa-2x
div
2014-07-29 10:33:31 -04:00
strong #{translate("create_your_first_project")}
2014-07-16 09:59:52 -04:00
- if (showUserDetailsArea)
span(ng-controller="LeftHandMenuPromoController", ng-cloak)
.row-spaced#userProfileInformation(ng-if="hasProjects")
div(ng-controller="UserProfileController")
hr(ng-show="percentComplete < 100")
.text-centered.user-profile(ng-show="percentComplete < 100")
.progress
.progress-bar.progress-bar-info(ng-style="{'width' : (percentComplete+'%')}")
p.small #{translate("profile_complete_percentage", {percentval:"{{percentComplete}}"})}
button#completeUserProfileInformation.btn.btn-info(
ng-hide="formVisable",
ng-click="openUserProfileModal()"
) #{translate("complete")}
2014-07-16 09:59:52 -04:00
.row-spaced(ng-if="hasProjects && userHasSubscription", ng-cloak, sixpack-switch="left-menu-upgraed-rotation").text-centered
span(sixpack-default).text-centered
hr
p.small #{translate("on_free_sl")}
p
a(href="/user/subscription/plans", sixpack-convert="left-menu-upgraed-rotation").btn.btn-primary #{translate("upgrade")}
p.small.text-centered
| #{translate("or_unlock_features_bonus")}
a(href="/user/bonus") #{translate("sharing_sl")} .
span(sixpack-when="random").text-centered
span(ng-if="randomView == 'default'")
hr
p.small #{translate("on_free_sl")}
p
a(href="/user/subscription/plans", sixpack-convert="left-menu-upgraed-rotation").btn.btn-primary #{translate("upgrade")}
p.small.text-centered
| #{translate("or_unlock_features_bonus")}
a(href="/user/bonus") #{translate("sharing_sl")} .
span(ng-if="randomView == 'dropbox'")
hr
.card.card-thin
p
span Get Dropbox Sync
p
img(src="/img/dropbox/simple_logo.png")
p
a(href="/user/subscription/plans", sixpack-convert="left-menu-upgraed-rotation").btn.btn-primary #{translate("upgrade")}
p.small.text-centered
| #{translate("or_unlock_features_bonus")}
a(href="/user/bonus") #{translate("sharing_sl")} .
span(ng-if="randomView == 'github'")
hr
.card.card-thin
p
span Get Github Sync
p
img(src="/img/github/octocat.jpg")
p
a(href="/user/subscription/plans", sixpack-convert="left-menu-upgraed-rotation").btn.btn-primary #{translate("upgrade")}
p.small.text-centered
| #{translate("or_unlock_features_bonus")}
a(href="/user/bonus") #{translate("sharing_sl")} .
script.
window.userHasSubscription = #{settings.enableSubscriptions && !hasSubscription}