overleaf/services/web/app/views/project/list/project-list.pug

186 lines
5.9 KiB
Text
Raw Normal View History

2014-07-16 13:59:52 +00:00
.row
.col-xs-12(ng-cloak)
2014-07-16 13:59:52 +00:00
form.project-search.form-horizontal(role="form")
2014-07-23 10:12:12 +00:00
.form-group.has-feedback.has-feedback-left.col-md-7.col-xs-12
input.form-control.col-md-7.col-xs-12(
2017-01-31 14:57:22 +00:00
placeholder=translate('search_projects')+"…",
aria-label=translate('search_projects')+"…",
2014-07-16 13:59:52 +00:00
autofocus='autofocus',
ng-model="searchText.value",
focus-on='search:clear',
ng-keyup="searchProjects()"
2014-07-16 13:59:52 +00:00
)
i.fa.fa-search.form-control-feedback-left
i.fa.fa-times.form-control-feedback(
ng-click="clearSearchText()",
style="cursor: pointer;",
ng-show="searchText.value.length > 0"
2014-07-16 13:59:52 +00:00
)
//- i.fa.fa-remove
.project-tools(ng-cloak)
.btn-toolbar(ng-show="filter != 'archived'")
.btn-group(ng-hide="selectedProjects.length < 1")
a.btn.btn-default(
href,
2017-01-31 14:57:22 +00:00
tooltip=translate('download'),
2014-07-16 13:59:52 +00:00
tooltip-placement="bottom",
2014-07-16 16:04:17 +00:00
tooltip-append-to-body="true",
2014-07-16 13:59:52 +00:00
ng-click="downloadSelectedProjects()"
)
i.fa.fa-cloud-download
- var archiveButtonString = settings.overleaf ? translate("archive") : translate("delete")
- var archiveButtonIcon = settings.overleaf ? "fa-inbox" : "fa-trash-o"
2014-07-16 13:59:52 +00:00
a.btn.btn-default(
href,
tooltip=`{{ isArchiveableProjectSelected ? '${archiveButtonString}' : '${translate("leave")}' }}`,
2014-07-16 13:59:52 +00:00
tooltip-placement="bottom",
2014-07-16 16:04:17 +00:00
tooltip-append-to-body="true",
2014-07-16 13:59:52 +00:00
ng-click="openArchiveProjectsModal()"
)
i.fa(ng-class=`isArchiveableProjectSelected ? '${archiveButtonIcon}' : 'fa-sign-out'`)
2014-07-16 13:59:52 +00:00
.btn-group.dropdown(ng-hide="selectedProjects.length < 1", dropdown)
2014-07-16 13:59:52 +00:00
a.btn.btn-default.dropdown-toggle(
href,
2014-07-16 13:59:52 +00:00
data-toggle="dropdown",
dropdown-toggle,
2017-01-31 14:57:22 +00:00
tooltip=translate('add_to_folders'),
2014-07-16 16:04:17 +00:00
tooltip-append-to-body="true",
2014-07-16 13:59:52 +00:00
tooltip-placement="bottom"
)
i.fa.fa-folder-open-o
|
span.caret
ul.dropdown-menu.dropdown-menu-right.js-tags-dropdown-menu.tags-dropdown-menu(
2014-07-16 13:59:52 +00:00
role="menu"
ng-controller="TagListController"
)
li.dropdown-header #{translate("add_to_folder")}
2014-07-16 13:59:52 +00:00
li(
2016-01-28 15:11:57 +00:00
ng-repeat="tag in tags | orderBy:'name'",
2014-07-16 13:59:52 +00:00
ng-controller="TagDropdownItemController"
ng-if="!tag.isV1"
2014-07-16 13:59:52 +00:00
)
a(href="#", ng-click="addOrRemoveProjectsFromTag()", stop-propagation="click")
i.fa(
ng-class="{\
'fa-check-square-o': areSelectedProjectsInTag == true,\
'fa-square-o': areSelectedProjectsInTag == false,\
'fa-minus-square-o': areSelectedProjectsInTag == 'partial'\
}"
)
| {{tag.name}}
li.divider
li
a(href, ng-click="openNewTagModal()", stop-propagation="click") #{translate("create_new_folder")}
2014-07-16 13:59:52 +00:00
.btn-group(ng-hide="selectedProjects.length != 1", dropdown).dropdown
2014-07-16 13:59:52 +00:00
a.btn.btn-default.dropdown-toggle(
href,
data-toggle="dropdown",
dropdown-toggle
2016-01-28 15:11:57 +00:00
) #{translate("more")}
2014-07-16 13:59:52 +00:00
span.caret
ul.dropdown-menu.dropdown-menu-right(role="menu")
li(ng-show="getFirstSelectedProject().accessLevel == 'owner'")
a(
href,
2014-07-16 13:59:52 +00:00
ng-click="openRenameProjectModal()"
) #{translate("rename")}
2014-07-16 13:59:52 +00:00
li
a(
href,
2014-07-16 13:59:52 +00:00
ng-click="openCloneProjectModal()"
) #{translate("make_copy")}
2014-07-16 13:59:52 +00:00
.btn-toolbar(ng-show="filter == 'archived'")
.btn-group(ng-hide="selectedProjects.length < 1")
a.btn.btn-default(
href,
2014-07-16 13:59:52 +00:00
data-original-title="Restore",
data-toggle="tooltip",
data-placement="bottom",
ng-click="restoreSelectedProjects()"
) #{translate("restore")}
2014-07-16 13:59:52 +00:00
.btn-group(ng-hide="selectedProjects.length < 1")
a.btn.btn-danger(
href,
2014-07-16 13:59:52 +00:00
data-original-title="Delete Forever",
data-toggle="tooltip",
data-placement="bottom",
ng-click="openDeleteProjectsModal()"
) #{translate("delete_forever")}
2014-07-16 13:59:52 +00:00
.row.row-spaced
each warning in warnings
.col-xs-12
2017-12-01 11:00:13 +00:00
.alert.alert-warning(role="alert")= warning
.col-xs-12
2014-07-24 13:00:01 +00:00
.card.card-thin.project-list-card
2014-07-16 13:59:52 +00:00
ul.list-unstyled.project-list.structured-list(
select-all-list,
ng-if="projects.length > 0",
2014-07-24 13:00:01 +00:00
max-height="projectListHeight - 25",
2014-07-16 13:59:52 +00:00
ng-cloak
)
li.container-fluid
.row
2018-05-16 17:05:33 +00:00
- var titleClasses = settings.overleaf ? " col-xs-6 col-sm-4 col-md-6" : "col-xs-6"
- var lastUpdatedClasses = settings.overleaf ? " col-xs-4 col-sm-3 col-md-2" : "col-xs-4"
div(class=titleClasses)
2014-07-16 13:59:52 +00:00
input.select-all(
select-all,
type="checkbox"
aria-label=translate('select_all_projects')
2014-07-16 13:59:52 +00:00
)
span.header.clickable(ng-click="changePredicate('name')") #{translate("title")}
i.tablesort.fa(ng-class="getSortIconClass('name')")
.col-xs-2
span.header.clickable(ng-click="changePredicate('accessLevel')") #{translate("owner")}
i.tablesort.fa(ng-class="getSortIconClass('accessLevel')")
2018-05-16 17:05:33 +00:00
div(class=lastUpdatedClasses)
span.header.clickable(ng-click="changePredicate('lastUpdated')") #{translate("last_modified")}
i.tablesort.fa(ng-class="getSortIconClass('lastUpdated')")
2018-05-16 17:05:33 +00:00
if settings.overleaf
2018-05-17 10:12:52 +00:00
.hidden-xs.col-sm-3.col-md-2.action-btn-row-header
2018-05-16 17:05:33 +00:00
span.header #{translate("actions")}
2014-07-16 13:59:52 +00:00
li.project_entry.container-fluid(
ng-repeat="project in visibleProjects | orderBy:predicate:reverse",
2014-07-16 13:59:52 +00:00
ng-controller="ProjectListItemController"
)
.row(
2017-10-30 15:32:54 +00:00
ng-if="!project.isV1Project"
select-row
)
include ./item
.row(
2017-10-30 15:32:54 +00:00
ng-if="project.isV1Project"
)
include ./v1-item
2014-07-16 13:59:52 +00:00
li(
ng-if="visibleProjects.length == 0",
ng-cloak
)
.row
.col-xs-12.text-centered
small #{translate("no_projects")}
2014-07-16 13:59:52 +00:00
div.welcome.text-centered(ng-if="projects.length == 0", ng-cloak)
h2 #{translate("welcome_to_sl")}
2014-09-01 19:14:49 +00:00
p #{translate("new_to_latex_look_at")}
a(href="/templates") #{translate("templates").toLowerCase()}
| #{translate("or")}
a(href="/learn") #{translate("latex_help_guide")}
2014-07-16 13:59:52 +00:00
| ,
br
| #{translate("or_create_project_left")}